Home | History | Annotate | Download | only in src

Lines Matching refs:var1

42  Description: Updated definition of var1 to be the same as that in the
54 var1 = 16 bit signed integer of type Word16, whose value falls
55 in the range: 0x8000 <= var1 <= 0x7fff
64 var_out = number of left shifts need to normalize var1 (Word16)
79 bit variable var1 for positive values on the interval with minimum of 0x4000
81 of 0x8000 and maximum of 0xc000. Note that when var1 is zero, the resulting
97 Word16 norm_s (Word16 var1)
101 if (var1 == 0)
107 if (var1 == (Word16) 0xffff)
113 if (var1 < 0)
115 var1 = ~var1;
117 for (var_out = 0; var1 < 0x4000; var_out++)
119 var1 <<= 1;
197 Word16 norm_s(register Word16 var1)
209 if (var1)
211 Word16 y = var1 - (var1 < 0);
212 var1 = y ^(y >> 15);
214 while (!(0x4000 & var1))
217 if ((0x2000 & var1))
222 if ((0x1000 & var1))
227 if ((0x0800 & var1))
232 var1 <<= 4;