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 cbrt_tableinit_fixed()
>> #include "libavcodec/cbrt_fixed_tables.
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
Sign
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 "libavcodec/cbrt_tables.h"
> #endif
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