summaryrefslogtreecommitdiff
path: root/libavcodec/cbrt_tablegen.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-10-15 20:06:44 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-10-15 21:03:03 +0200
commit59352a07d856a67b81fe3480ac4644a92beac113 (patch)
treee3ba1af18e69daf1f9842bf6df3de3736d9704a1 /libavcodec/cbrt_tablegen.h
parente51692114354b8e460bf5c9f6def7089a6b969c0 (diff)
downloadffmpeg-59352a07d856a67b81fe3480ac4644a92beac113.tar.gz
avcodec: improve precission for cbrtf() emulation
cbrtf() took floats but it represented 1/3 exactly and even if not more precission should be better in theory for the table generation Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/cbrt_tablegen.h')
-rw-r--r--libavcodec/cbrt_tablegen.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/cbrt_tablegen.h b/libavcodec/cbrt_tablegen.h
index 5ef97c8545..0db64fcf95 100644
--- a/libavcodec/cbrt_tablegen.h
+++ b/libavcodec/cbrt_tablegen.h
@@ -42,7 +42,7 @@ static void cbrt_tableinit(void)
float f;
uint32_t i;
} f;
- f.f = powf(i, 1.0 / 3.0) * i;
+ f.f = pow(i, 1.0 / 3.0) * i;
cbrt_tab[i] = f.i;
}
}