diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-10-15 20:06:44 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-10-15 21:03:03 +0200 |
commit | 59352a07d856a67b81fe3480ac4644a92beac113 (patch) | |
tree | e3ba1af18e69daf1f9842bf6df3de3736d9704a1 /libavcodec/cbrt_tablegen.h | |
parent | e51692114354b8e460bf5c9f6def7089a6b969c0 (diff) | |
download | ffmpeg-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.h | 2 |
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; } } |