Home | History | Annotate | Download | only in Tremolo

Lines Matching defs:pi

86 /* interpolated lookup based cos function, domain 0 to PI only */
87 /* a is in 0.16 format, where 0==0, 2^^16-1==PI, return 0.14 */
96 /* a is in 0.16 format, where 0==0, 2^^16==PI, return .LSP_FRACBITS */
179 /* lsp is in 8.24, range 0 to PI; coslook wants it in .16 0 to 1*/
199 ogg_uint32_t pi=46341; /* 2**-.5 in 0.16 */
208 lsp_loop_asm(&qi,&pi,&qexp,ilsp,wi,m);
210 pi=((pi*pi)>>16);
215 pi*=(1<<14)-((wi*wi)>>14);
216 qi+=pi>>14;
220 pi*=(1<<14)-wi;
223 qi=(qi+pi)>>14;
234 pi*=labs(ilsp[1]-wi);
237 if(!(shift=MLOOP_1[(pi|qi)>>25]))
238 if(!(shift=MLOOP_2[(pi|qi)>>19]))
239 shift=MLOOP_3[(pi|qi)>>16];
242 pi=(pi>>shift)*labs(ilsp[j]-wi);
245 if(!(shift=MLOOP_1[(pi|qi)>>25]))
246 if(!(shift=MLOOP_2[(pi|qi)>>19]))
247 shift=MLOOP_3[(pi|qi)>>16];
249 /* pi,qi normalized collectively, both tracked using qexp */
255 pi=(pi>>shift)<<14;
258 if(!(shift=MLOOP_1[(pi|qi)>>25]))
259 if(!(shift=MLOOP_2[(pi|qi)>>19]))
260 shift=MLOOP_3[(pi|qi)>>16];
262 pi>>=shift;
266 pi=((pi*pi)>>16);
270 pi*=(1<<14)-((wi*wi)>>14);
271 qi+=pi>>14;
279 pi>>=shift;
283 pi=((pi*pi)>>16);
287 pi*=(1<<14)-wi;
289 qi=(qi+pi)>>14;