Fix memory leak.
[ffmpeg.git] / tests / tiny_psnr.c
index af37803b6c97151afb6b2e058df9c5214952e03c..31a7a1b5e4c52ded69cfec567c41172d03674fdb 100644 (file)
@@ -50,6 +50,21 @@ uint64_t exp16_table[21]={
  582360139072LL,
 };
 
+#if 0
+// 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;
+}
+#endif
+
 // 16.16 fixpoint log()
 static int64_t log16(uint64_t a){
     int i;