• Home
  • Raw
  • Download

Lines Matching refs:res

72    int res;  in NEG16()  local
80 res = -x; in NEG16()
81 if (!VERIFY_SHORT(res)) in NEG16()
83 fprintf (stderr, "NEG16: output is not short: %d\n", (int)res); in NEG16()
89 return res; in NEG16()
93 opus_int64 res; in NEG32() local
101 res = -x; in NEG32()
102 if (!VERIFY_INT(res)) in NEG32()
104 fprintf (stderr, "NEG16: output is not int: %d\n", (int)res); in NEG32()
110 return res; in NEG32()
116 int res; in EXTRACT16_() local
124 res = x; in EXTRACT16_()
126 return res; in EXTRACT16_()
132 int res; in EXTEND32_() local
140 res = x; in EXTEND32_()
142 return res; in EXTEND32_()
148 int res; in SHR16_() local
156 res = a>>shift; in SHR16_()
157 if (!VERIFY_SHORT(res)) in SHR16_()
159 fprintf (stderr, "SHR16: output is not short: %d in %s: line %d\n", res, file, line); in SHR16_()
165 return res; in SHR16_()
170 int res; in SHL16_() local
178 res = a<<shift; in SHL16_()
179 if (!VERIFY_SHORT(res)) in SHL16_()
181 fprintf (stderr, "SHL16: output is not short: %d in %s: line %d\n", res, file, line); in SHL16_()
187 return res; in SHL16_()
192 opus_int64 res; in SHR32() local
200 res = a>>shift; in SHR32()
201 if (!VERIFY_INT(res)) in SHR32()
203 fprintf (stderr, "SHR32: output is not int: %d\n", (int)res); in SHR32()
209 return res; in SHR32()
214 opus_int64 res; in SHL32_() local
222 res = a<<shift; in SHL32_()
223 if (!VERIFY_INT(res)) in SHL32_()
225 …fprintf (stderr, "SHL32: output is not int: %lld<<%d = %lld in %s: line %d\n", a, shift, res, file… in SHL32_()
231 return res; in SHL32_()
246 int res; in ADD16_() local
254 res = a+b; in ADD16_()
255 if (!VERIFY_SHORT(res)) in ADD16_()
257 … fprintf (stderr, "ADD16: output is not short: %d+%d=%d in %s: line %d\n", a,b,res, file, line); in ADD16_()
263 return res; in ADD16_()
269 int res; in SUB16_() local
277 res = a-b; in SUB16_()
278 if (!VERIFY_SHORT(res)) in SUB16_()
280 fprintf (stderr, "SUB16: output is not short: %d in %s: line %d\n", res, file, line); in SUB16_()
286 return res; in SUB16_()
292 opus_int64 res; in ADD32_() local
300 res = a+b; in ADD32_()
301 if (!VERIFY_INT(res)) in ADD32_()
303 fprintf (stderr, "ADD32: output is not int: %d in %s: line %d\n", (int)res, file, line); in ADD32_()
309 return res; in ADD32_()
315 opus_int64 res; in SUB32_() local
323 res = a-b; in SUB32_()
324 if (!VERIFY_INT(res)) in SUB32_()
326 fprintf (stderr, "SUB32: output is not int: %d in %s: line %d\n", (int)res, file, line); in SUB32_()
332 return res; in SUB32_()
339 opus_uint64 res; in UADD32_() local
347 res = a+b; in UADD32_()
348 if (!VERIFY_UINT(res)) in UADD32_()
350 fprintf (stderr, "UADD32: output is not uint32: %llu in %s: line %d\n", res, file, line); in UADD32_()
356 return res; in UADD32_()
363 opus_uint64 res; in USUB32_() local
378 res = a-b; in USUB32_()
379 if (!VERIFY_UINT(res)) in USUB32_()
381 …tderr, "USUB32: output is not uint32: %llu - %llu = %llu in %s: line %d\n", a, b, res, file, line); in USUB32_()
387 return res; in USUB32_()
393 int res; in MULT16_16_16() local
401 res = a*b; in MULT16_16_16()
402 if (!VERIFY_SHORT(res)) in MULT16_16_16()
404 fprintf (stderr, "MULT16_16_16: output is not short: %d\n", res); in MULT16_16_16()
410 return res; in MULT16_16_16()
416 opus_int64 res; in MULT16_16_() local
424 res = ((opus_int64)a)*b; in MULT16_16_()
425 if (!VERIFY_INT(res)) in MULT16_16_()
427 fprintf (stderr, "MULT16_16: output is not int: %d in %s: line %d\n", (int)res, file, line); in MULT16_16_()
433 return res; in MULT16_16_()
441 opus_int64 res; in MULT16_32_QX_() local
456 res = (((opus_int64)a)*(opus_int64)b) >> Q; in MULT16_32_QX_()
457 if (!VERIFY_INT(res)) in MULT16_32_QX_()
459 …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_()
468 return res; in MULT16_32_QX_()
474 opus_int64 res; in MULT16_32_PX_() local
489 res = ((((opus_int64)a)*(opus_int64)b) + (((opus_val32)(1)<<Q)>>1))>> Q; in MULT16_32_PX_()
490 if (!VERIFY_INT(res)) in MULT16_32_PX_()
492 …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_()
501 return res; in MULT16_32_PX_()
530 opus_int64 res; in MULT16_16_Q11_32() local
538 res = ((opus_int64)a)*b; in MULT16_16_Q11_32()
539 res >>= 11; in MULT16_16_Q11_32()
540 if (!VERIFY_INT(res)) in MULT16_16_Q11_32()
542 fprintf (stderr, "MULT16_16_Q11: output is not short: %d*%d=%d\n", (int)a, (int)b, (int)res); in MULT16_16_Q11_32()
548 return res; in MULT16_16_Q11_32()
552 opus_int64 res; in MULT16_16_Q13() local
560 res = ((opus_int64)a)*b; in MULT16_16_Q13()
561 res >>= 13; in MULT16_16_Q13()
562 if (!VERIFY_SHORT(res)) in MULT16_16_Q13()
564 fprintf (stderr, "MULT16_16_Q13: output is not short: %d*%d=%d\n", a, b, (int)res); in MULT16_16_Q13()
570 return res; in MULT16_16_Q13()
574 opus_int64 res; in MULT16_16_Q14() local
582 res = ((opus_int64)a)*b; in MULT16_16_Q14()
583 res >>= 14; in MULT16_16_Q14()
584 if (!VERIFY_SHORT(res)) in MULT16_16_Q14()
586 fprintf (stderr, "MULT16_16_Q14: output is not short: %d\n", (int)res); in MULT16_16_Q14()
592 return res; in MULT16_16_Q14()
598 opus_int64 res; in MULT16_16_Q15_() local
606 res = ((opus_int64)a)*b; in MULT16_16_Q15_()
607 res >>= 15; in MULT16_16_Q15_()
608 if (!VERIFY_SHORT(res)) in MULT16_16_Q15_()
610 … fprintf (stderr, "MULT16_16_Q15: output is not short: %d in %s: line %d\n", (int)res, file, line); in MULT16_16_Q15_()
616 return res; in MULT16_16_Q15_()
621 opus_int64 res; in MULT16_16_P13() local
629 res = ((opus_int64)a)*b; in MULT16_16_P13()
630 res += 4096; in MULT16_16_P13()
631 if (!VERIFY_INT(res)) in MULT16_16_P13()
633 fprintf (stderr, "MULT16_16_P13: overflow: %d*%d=%d\n", a, b, (int)res); in MULT16_16_P13()
638 res >>= 13; in MULT16_16_P13()
639 if (!VERIFY_SHORT(res)) in MULT16_16_P13()
641 fprintf (stderr, "MULT16_16_P13: output is not short: %d*%d=%d\n", a, b, (int)res); in MULT16_16_P13()
647 return res; in MULT16_16_P13()
651 opus_int64 res; in MULT16_16_P14() local
659 res = ((opus_int64)a)*b; in MULT16_16_P14()
660 res += 8192; in MULT16_16_P14()
661 if (!VERIFY_INT(res)) in MULT16_16_P14()
663 fprintf (stderr, "MULT16_16_P14: overflow: %d*%d=%d\n", a, b, (int)res); in MULT16_16_P14()
668 res >>= 14; in MULT16_16_P14()
669 if (!VERIFY_SHORT(res)) in MULT16_16_P14()
671 fprintf (stderr, "MULT16_16_P14: output is not short: %d*%d=%d\n", a, b, (int)res); in MULT16_16_P14()
677 return res; in MULT16_16_P14()
681 opus_int64 res; in MULT16_16_P15() local
689 res = ((opus_int64)a)*b; in MULT16_16_P15()
690 res += 16384; in MULT16_16_P15()
691 if (!VERIFY_INT(res)) in MULT16_16_P15()
693 fprintf (stderr, "MULT16_16_P15: overflow: %d*%d=%d\n", a, b, (int)res); in MULT16_16_P15()
698 res >>= 15; in MULT16_16_P15()
699 if (!VERIFY_SHORT(res)) in MULT16_16_P15()
701 fprintf (stderr, "MULT16_16_P15: output is not short: %d*%d=%d\n", a, b, (int)res); in MULT16_16_P15()
707 return res; in MULT16_16_P15()
714 opus_int64 res; in DIV32_16_() local
730 res = a/b; in DIV32_16_()
731 if (!VERIFY_SHORT(res)) in DIV32_16_()
733 …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_()
734 if (res>32767) in DIV32_16_()
735 res = 32767; in DIV32_16_()
736 if (res<-32768) in DIV32_16_()
737 res = -32768; in DIV32_16_()
743 return res; in DIV32_16_()
749 opus_int64 res; in DIV32_() local
766 res = a/b; in DIV32_()
767 if (!VERIFY_INT(res)) in DIV32_()
769 fprintf (stderr, "DIV32: output is not int: %d in %s: line %d\n", (int)res, file, line); in DIV32_()
775 return res; in DIV32_()