10l: Revert accidental removal of unused code.
authorDiego Biurrun <diego@biurrun.de>
Sun, 27 May 2007 15:52:57 +0000 (15:52 +0000)
committerDiego Biurrun <diego@biurrun.de>
Sun, 27 May 2007 15:52:57 +0000 (15:52 +0000)
Originally committed as revision 9142 to svn://svn.ffmpeg.org/ffmpeg/trunk

tests/tiny_psnr.c

index af37803b6c97151afb6b2e058df9c5214952e03c..91225f2b3e0fc1ef8f00ed991d74778e6edeb829 100644 (file)
@@ -49,7 +49,19 @@ uint64_t exp16_table[21]={
  195360063,
  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()
 static int64_t log16(uint64_t a){
     int i;
@@ -68,6 +80,7 @@ static int64_t log16(uint64_t a){
     return out;
 }
 
+#endif
 static uint64_t int_sqrt(uint64_t a)
 {
     uint64_t ret=0;