[FFmpeg-cvslog] r9142 - trunk/tests/tiny_psnr.c
diego
subversion
Sun May 27 17:52:57 CEST 2007
Author: diego
Date: Sun May 27 17:52:57 2007
New Revision: 9142
Log:
10l: Revert accidental removal of unused code.
Modified:
trunk/tests/tiny_psnr.c
Modified: trunk/tests/tiny_psnr.c
==============================================================================
--- trunk/tests/tiny_psnr.c (original)
+++ trunk/tests/tiny_psnr.c Sun May 27 17:52:57 2007
@@ -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;
More information about the ffmpeg-cvslog
mailing list