27 float vorbis_coslook(
float a){
28 double d=a*(.31830989*(
float)COS_LOOKUP_SZ);
29 int i=vorbis_ftoi(d-.5);
31 return COS_LOOKUP[
i]+ (d-
i)*(COS_LOOKUP[
i+1]-COS_LOOKUP[
i]);
35 float vorbis_invsqlook(
float a){
36 double d=a*(2.f*(
float)INVSQ_LOOKUP_SZ)-(
float)INVSQ_LOOKUP_SZ;
37 int i=vorbis_ftoi(d-.5
f);
38 return INVSQ_LOOKUP[
i]+ (d-
i)*(INVSQ_LOOKUP[
i+1]-INVSQ_LOOKUP[
i]);
42 float vorbis_invsq2explook(
int a){
43 return INVSQ2EXP_LOOKUP[a-INVSQ2EXP_LOOKUP_MIN];
48 float vorbis_fromdBlook(
float a){
62 long vorbis_invsqlook_i(
long a,
long e){
63 long i=(a&0x7fff)>>(INVSQ_LOOKUP_I_SHIFT-1);
64 long d=(a&INVSQ_LOOKUP_I_MASK)<<(16-INVSQ_LOOKUP_I_SHIFT);
65 long val=INVSQ_LOOKUP_I[
i]-
66 (((INVSQ_LOOKUP_I[
i]-INVSQ_LOOKUP_I[i+1])*
70 if(e&1)val=(val*5792)>>13;
78 float vorbis_fromdBlook_i(
long a){
87 long vorbis_coslook_i(
long a){
88 int i=a>>COS_LOOKUP_I_SHIFT;
89 int d=a&COS_LOOKUP_I_MASK;
90 return COS_LOOKUP_I[
i]- ((d*(COS_LOOKUP_I[
i]-COS_LOOKUP_I[i+1]))>>
GLubyte GLubyte GLubyte a