[FFmpeg-devel] [PATCHv3 3/3] avcodec/cbrt_tablegen: avoid pow and speed up cbrt_tableinit

2015-11-26 Thread Ganesh Ajjanagadde
On systems having cbrt, there is no reason to use the slow pow function. Sample benchmark (x86-64, Haswell, GNU/Linux): new: 5124920 decicycles in cbrt_tableinit, 1 runs, 0 skips old: 12321680 decicycles in cbrt_tableinit, 1 runs, 0 skips Signed-off-by: Ganesh Ajjanagadde

Re: [FFmpeg-devel] [PATCHv3 3/3] avcodec/cbrt_tablegen: avoid pow and speed up cbrt_tableinit

2015-11-26 Thread Ronald S. Bultje
Hi, On Thu, Nov 26, 2015 at 10:23 AM, Ganesh Ajjanagadde wrote: > #if CONFIG_HARDCODED_TABLES > +#include "libavutil/tablegen.h" > #if USE_FIXED > #define cbrt_tableinit_fixed() > #include "libavcodec/cbrt_fixed_tables.h" > @@ -43,19 +45,19 @@ > #include

[FFmpeg-devel] [PATCHv3 3/3] avcodec/cbrt_tablegen: avoid pow and speed up cbrt_tableinit

2015-11-26 Thread Ganesh Ajjanagadde
On systems having cbrt, there is no reason to use the slow pow function. Sample benchmark (x86-64, Haswell, GNU/Linux): new: 5124920 decicycles in cbrt_tableinit, 1 runs, 0 skips old: 12321680 decicycles in cbrt_tableinit, 1 runs, 0 skips Reviewed-by: Ronald S. Bultje

Re: [FFmpeg-devel] [PATCHv3 3/3] avcodec/cbrt_tablegen: avoid pow and speed up cbrt_tableinit

2015-11-26 Thread Ganesh Ajjanagadde
On Thu, Nov 26, 2015 at 10:39 AM, Ronald S. Bultje wrote: > Hi, > > On Thu, Nov 26, 2015 at 10:23 AM, Ganesh Ajjanagadde > wrote: >> >> #if CONFIG_HARDCODED_TABLES >> +#include "libavutil/tablegen.h" >> #if USE_FIXED >> #define