From 59352a07d856a67b81fe3480ac4644a92beac113 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 15 Oct 2013 20:06:44 +0200 Subject: 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 --- libavcodec/cbrt_tablegen.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/cbrt_tablegen.h') 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; } } -- cgit v1.2.1