|
|
|
@@ -185,8 +185,8 @@ static void init_pow2table(COOKContext *q){ |
|
|
|
int i; |
|
|
|
q->pow2tab[63] = 1.0; |
|
|
|
for (i=1 ; i<64 ; i++){ |
|
|
|
q->pow2tab[63+i]=(float)pow(2.0,(double)i); |
|
|
|
q->pow2tab[63-i]=1.0/(float)pow(2.0,(double)i); |
|
|
|
q->pow2tab[63+i]=(float)((uint64_t)1<<i); |
|
|
|
q->pow2tab[63-i]=1.0/(float)((uint64_t)1<<i); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@@ -195,8 +195,8 @@ static void init_rootpow2table(COOKContext *q){ |
|
|
|
int i; |
|
|
|
q->rootpow2tab[63] = 1.0; |
|
|
|
for (i=1 ; i<64 ; i++){ |
|
|
|
q->rootpow2tab[63+i]=sqrt((float)powf(2.0,(float)i)); |
|
|
|
q->rootpow2tab[63-i]=sqrt(1.0/(float)powf(2.0,(float)i)); |
|
|
|
q->rootpow2tab[63+i]=sqrt((float)((uint64_t)1<<i)); |
|
|
|
q->rootpow2tab[63-i]=sqrt(1.0/(float)((uint64_t)1<<i)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|