Home
last modified time | relevance | path

Searched refs:L_product_arr (Results 1 – 5 of 5) sorted by relevance

/frameworks/av/media/libstagefright/codecs/amrnb/common/src/
Dmult_r.cpp193 Word32 L_product_arr; in mult_r() local
195 L_product_arr = ((Word32) var1) * var2; /* product */ in mult_r()
196 L_product_arr += (Word32) 0x00004000L; /* round */ in mult_r()
197 L_product_arr >>= 15; /* shift */ in mult_r()
200 L_product_arr |= (Word32) - (L_product_arr & (Word32) 0x00010000L); in mult_r()
206 if (L_product_arr > 0X00007fffL) in mult_r()
209 L_product_arr = MAX_16; in mult_r()
211 else if (L_product_arr < (Word32) 0xffff8000L) in mult_r()
214 L_product_arr = MIN_16; in mult_r()
217 return ((Word16) L_product_arr); in mult_r()
/frameworks/av/media/libstagefright/codecs/amrwb/src/
Dpvamrwb_math_op.cpp96 int32 L_product_arr; in mult_int16_r() local
98 L_product_arr = (int32) var1 * (int32) var2; /* product */ in mult_int16_r()
99 L_product_arr += (int32) 0x00004000L; /* round */ in mult_int16_r()
100 L_product_arr >>= 15; /* shift */ in mult_int16_r()
101 if ((L_product_arr >> 15) != (L_product_arr >> 31)) in mult_int16_r()
103 L_product_arr = (L_product_arr >> 31) ^ MAX_16; in mult_int16_r()
106 return ((int16)L_product_arr); in mult_int16_r()
/frameworks/av/media/libstagefright/codecs/aacenc/basic_op/
Dbasicop2.c907 Word32 L_product_arr; in mult_r() local
909 L_product_arr = (Word32) var1 *(Word32) var2; /* product */ in mult_r()
910 L_product_arr += (Word32) 0x00004000L; /* round */ in mult_r()
911 L_product_arr &= (Word32) 0xffff8000L; in mult_r()
912 L_product_arr >>= 15; /* shift */ in mult_r()
914 if (L_product_arr & (Word32) 0x00010000L) /* sign extend when necessary */ in mult_r()
916 L_product_arr |= (Word32) 0xffff0000L; in mult_r()
918 var_out = saturate(L_product_arr); in mult_r()
Dbasic_op.h1062 Word32 L_product_arr; in mult_r() local
1064 L_product_arr = (Word32)var1 *(Word32)var2; /* product */ in mult_r()
1065 L_product_arr += (Word32)0x00004000L; /* round */ in mult_r()
1066 L_product_arr >>= 15; /* shift */ in mult_r()
1068 var_out = saturate(L_product_arr); in mult_r()
/frameworks/av/media/libstagefright/codecs/amrwbenc/inc/
Dbasic_op.h668 Word32 L_product_arr; in mult_r() local
669 L_product_arr = (Word32) var1 *(Word32) var2; /* product */ in mult_r()
670 L_product_arr += (Word32) 0x00004000L; /* round */ in mult_r()
671 L_product_arr &= (Word32) 0xffff8000L; in mult_r()
672 L_product_arr >>= 15; /* shift */ in mult_r()
673 if (L_product_arr & (Word32) 0x00010000L) /* sign extend when necessary */ in mult_r()
675 L_product_arr |= (Word32) 0xffff0000L; in mult_r()
677 var_out = saturate (L_product_arr); in mult_r()