Commit 2d2fe557 authored by Diego Biurrun's avatar Diego Biurrun

10l: Revert accidental removal of unused code.

Originally committed as revision 9142 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 0fd5a1b9
...@@ -49,7 +49,19 @@ uint64_t exp16_table[21]={ ...@@ -49,7 +49,19 @@ uint64_t exp16_table[21]={
195360063, 195360063,
582360139072LL, 582360139072LL,
}; };
#if 1
// 16.16 fixpoint exp()
static unsigned int exp16(unsigned int a){
int i;
int out= 1<<16;
for(i=19;i>=0;i--){
if(a&(1<<i))
out= (out*exp16_table[i] + (1<<15))>>16;
}
return out;
}
// 16.16 fixpoint log() // 16.16 fixpoint log()
static int64_t log16(uint64_t a){ static int64_t log16(uint64_t a){
int i; int i;
...@@ -68,6 +80,7 @@ static int64_t log16(uint64_t a){ ...@@ -68,6 +80,7 @@ static int64_t log16(uint64_t a){
return out; return out;
} }
#endif
static uint64_t int_sqrt(uint64_t a) static uint64_t int_sqrt(uint64_t a)
{ {
uint64_t ret=0; uint64_t ret=0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment