Lines Matching refs:res

64    int res;  in NEG16()  local
72 res = -x; in NEG16()
73 if (!VERIFY_SHORT(res)) in NEG16()
75 fprintf (stderr, "NEG16: output is not short: %d\n", (int)res); in NEG16()
81 return res; in NEG16()
85 opus_int64 res; in NEG32() local
93 res = -x; in NEG32()
94 if (!VERIFY_INT(res)) in NEG32()
96 fprintf (stderr, "NEG16: output is not int: %d\n", (int)res); in NEG32()
102 return res; in NEG32()
108 int res; in EXTRACT16_() local
116 res = x; in EXTRACT16_()
118 return res; in EXTRACT16_()
124 int res; in EXTEND32_() local
132 res = x; in EXTEND32_()
134 return res; in EXTEND32_()
140 int res; in SHR16_() local
148 res = a>>shift; in SHR16_()
149 if (!VERIFY_SHORT(res)) in SHR16_()
151 fprintf (stderr, "SHR16: output is not short: %d in %s: line %d\n", res, file, line); in SHR16_()
157 return res; in SHR16_()
162 int res; in SHL16_() local
170 res = a<<shift; in SHL16_()
171 if (!VERIFY_SHORT(res)) in SHL16_()
173 fprintf (stderr, "SHL16: output is not short: %d in %s: line %d\n", res, file, line); in SHL16_()
179 return res; in SHL16_()
184 opus_int64 res; in SHR32() local
192 res = a>>shift; in SHR32()
193 if (!VERIFY_INT(res)) in SHR32()
195 fprintf (stderr, "SHR32: output is not int: %d\n", (int)res); in SHR32()
201 return res; in SHR32()
206 opus_int64 res; in SHL32_() local
214 res = a<<shift; in SHL32_()
215 if (!VERIFY_INT(res)) in SHL32_()
217 …fprintf (stderr, "SHL32: output is not int: %lld<<%d = %lld in %s: line %d\n", a, shift, res, file… in SHL32_()
223 return res; in SHL32_()
239 int res; in ADD16_() local
247 res = a+b; in ADD16_()
248 if (!VERIFY_SHORT(res)) in ADD16_()
250 … fprintf (stderr, "ADD16: output is not short: %d+%d=%d in %s: line %d\n", a,b,res, file, line); in ADD16_()
256 return res; in ADD16_()
262 int res; in SUB16_() local
270 res = a-b; in SUB16_()
271 if (!VERIFY_SHORT(res)) in SUB16_()
273 fprintf (stderr, "SUB16: output is not short: %d in %s: line %d\n", res, file, line); in SUB16_()
279 return res; in SUB16_()
285 opus_int64 res; in ADD32_() local
293 res = a+b; in ADD32_()
294 if (!VERIFY_INT(res)) in ADD32_()
296 fprintf (stderr, "ADD32: output is not int: %d in %s: line %d\n", (int)res, file, line); in ADD32_()
302 return res; in ADD32_()
308 opus_int64 res; in SUB32_() local
316 res = a-b; in SUB32_()
317 if (!VERIFY_INT(res)) in SUB32_()
319 fprintf (stderr, "SUB32: output is not int: %d in %s: line %d\n", (int)res, file, line); in SUB32_()
325 return res; in SUB32_()
332 opus_uint64 res; in UADD32_() local
340 res = a+b; in UADD32_()
341 if (!VERIFY_UINT(res)) in UADD32_()
343 fprintf (stderr, "UADD32: output is not uint32: %llu in %s: line %d\n", res, file, line); in UADD32_()
349 return res; in UADD32_()
356 opus_uint64 res; in USUB32_() local
371 res = a-b; in USUB32_()
372 if (!VERIFY_UINT(res)) in USUB32_()
374 …tderr, "USUB32: output is not uint32: %llu - %llu = %llu in %s: line %d\n", a, b, res, file, line); in USUB32_()
380 return res; in USUB32_()
386 int res; in MULT16_16_16() local
394 res = a*b; in MULT16_16_16()
395 if (!VERIFY_SHORT(res)) in MULT16_16_16()
397 fprintf (stderr, "MULT16_16_16: output is not short: %d\n", res); in MULT16_16_16()
403 return res; in MULT16_16_16()
409 opus_int64 res; in MULT16_16_() local
417 res = ((opus_int64)a)*b; in MULT16_16_()
418 if (!VERIFY_INT(res)) in MULT16_16_()
420 fprintf (stderr, "MULT16_16: output is not int: %d in %s: line %d\n", (int)res, file, line); in MULT16_16_()
426 return res; in MULT16_16_()
434 opus_int64 res; in MULT16_32_QX_() local
449 res = (((opus_int64)a)*(opus_int64)b) >> Q; in MULT16_32_QX_()
450 if (!VERIFY_INT(res)) in MULT16_32_QX_()
452 …T16_32_Q%d: output is not int: %d*%d=%d in %s: line %d\n", Q, (int)a, (int)b,(int)res, file, line); in MULT16_32_QX_()
461 return res; in MULT16_32_QX_()
467 opus_int64 res; in MULT16_32_PX_() local
482 res = ((((opus_int64)a)*(opus_int64)b) + (((opus_val32)(1)<<Q)>>1))>> Q; in MULT16_32_PX_()
483 if (!VERIFY_INT(res)) in MULT16_32_PX_()
485 …6_32_P%d: output is not int: %d*%d=%d in %s: line %d\n\n", Q, (int)a, (int)b,(int)res, file, line); in MULT16_32_PX_()
494 return res; in MULT16_32_PX_()
522 opus_int64 res; in MULT16_16_Q11_32() local
530 res = ((opus_int64)a)*b; in MULT16_16_Q11_32()
531 res >>= 11; in MULT16_16_Q11_32()
532 if (!VERIFY_INT(res)) in MULT16_16_Q11_32()
534 fprintf (stderr, "MULT16_16_Q11: output is not short: %d*%d=%d\n", (int)a, (int)b, (int)res); in MULT16_16_Q11_32()
540 return res; in MULT16_16_Q11_32()
544 opus_int64 res; in MULT16_16_Q13() local
552 res = ((opus_int64)a)*b; in MULT16_16_Q13()
553 res >>= 13; in MULT16_16_Q13()
554 if (!VERIFY_SHORT(res)) in MULT16_16_Q13()
556 fprintf (stderr, "MULT16_16_Q13: output is not short: %d*%d=%d\n", a, b, (int)res); in MULT16_16_Q13()
562 return res; in MULT16_16_Q13()
566 opus_int64 res; in MULT16_16_Q14() local
574 res = ((opus_int64)a)*b; in MULT16_16_Q14()
575 res >>= 14; in MULT16_16_Q14()
576 if (!VERIFY_SHORT(res)) in MULT16_16_Q14()
578 fprintf (stderr, "MULT16_16_Q14: output is not short: %d\n", (int)res); in MULT16_16_Q14()
584 return res; in MULT16_16_Q14()
590 opus_int64 res; in MULT16_16_Q15_() local
598 res = ((opus_int64)a)*b; in MULT16_16_Q15_()
599 res >>= 15; in MULT16_16_Q15_()
600 if (!VERIFY_SHORT(res)) in MULT16_16_Q15_()
602 … fprintf (stderr, "MULT16_16_Q15: output is not short: %d in %s: line %d\n", (int)res, file, line); in MULT16_16_Q15_()
608 return res; in MULT16_16_Q15_()
613 opus_int64 res; in MULT16_16_P13() local
621 res = ((opus_int64)a)*b; in MULT16_16_P13()
622 res += 4096; in MULT16_16_P13()
623 if (!VERIFY_INT(res)) in MULT16_16_P13()
625 fprintf (stderr, "MULT16_16_P13: overflow: %d*%d=%d\n", a, b, (int)res); in MULT16_16_P13()
630 res >>= 13; in MULT16_16_P13()
631 if (!VERIFY_SHORT(res)) in MULT16_16_P13()
633 fprintf (stderr, "MULT16_16_P13: output is not short: %d*%d=%d\n", a, b, (int)res); in MULT16_16_P13()
639 return res; in MULT16_16_P13()
643 opus_int64 res; in MULT16_16_P14() local
651 res = ((opus_int64)a)*b; in MULT16_16_P14()
652 res += 8192; in MULT16_16_P14()
653 if (!VERIFY_INT(res)) in MULT16_16_P14()
655 fprintf (stderr, "MULT16_16_P14: overflow: %d*%d=%d\n", a, b, (int)res); in MULT16_16_P14()
660 res >>= 14; in MULT16_16_P14()
661 if (!VERIFY_SHORT(res)) in MULT16_16_P14()
663 fprintf (stderr, "MULT16_16_P14: output is not short: %d*%d=%d\n", a, b, (int)res); in MULT16_16_P14()
669 return res; in MULT16_16_P14()
673 opus_int64 res; in MULT16_16_P15() local
681 res = ((opus_int64)a)*b; in MULT16_16_P15()
682 res += 16384; in MULT16_16_P15()
683 if (!VERIFY_INT(res)) in MULT16_16_P15()
685 fprintf (stderr, "MULT16_16_P15: overflow: %d*%d=%d\n", a, b, (int)res); in MULT16_16_P15()
690 res >>= 15; in MULT16_16_P15()
691 if (!VERIFY_SHORT(res)) in MULT16_16_P15()
693 fprintf (stderr, "MULT16_16_P15: output is not short: %d*%d=%d\n", a, b, (int)res); in MULT16_16_P15()
699 return res; in MULT16_16_P15()
706 opus_int64 res; in DIV32_16_() local
722 res = a/b; in DIV32_16_()
723 if (!VERIFY_SHORT(res)) in DIV32_16_()
725 …DIV32_16: output is not short: %d / %d = %d in %s: line %d\n", (int)a,(int)b,(int)res, file, line); in DIV32_16_()
726 if (res>32767) in DIV32_16_()
727 res = 32767; in DIV32_16_()
728 if (res<-32768) in DIV32_16_()
729 res = -32768; in DIV32_16_()
735 return res; in DIV32_16_()
741 opus_int64 res; in DIV32_() local
758 res = a/b; in DIV32_()
759 if (!VERIFY_INT(res)) in DIV32_()
761 fprintf (stderr, "DIV32: output is not int: %d in %s: line %d\n", (int)res, file, line); in DIV32_()
767 return res; in DIV32_()