summaryrefslogtreecommitdiff
path: root/libavcodec/cbrt_tablegen_template.c
diff options
context:
space:
mode:
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-11-25 16:59:07 -0500
committerGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-12-01 19:05:19 -0500
commit2f5075f5513fdec21ddba802af0f2433fcfd430e (patch)
treee7851f6ef3e2ee88cd828208ea342240118e95f2 /libavcodec/cbrt_tablegen_template.c
parent1d0c94ddaef8225c75f72d5d8c54c34270f88d80 (diff)
avcodec/cbrt_tablegen: speed up dynamic table creation
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 <rsbultje@gmail.com> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Diffstat (limited to 'libavcodec/cbrt_tablegen_template.c')
-rw-r--r--libavcodec/cbrt_tablegen_template.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/cbrt_tablegen_template.c b/libavcodec/cbrt_tablegen_template.c
index 9dd2cf5de6..1d71d342ec 100644
--- a/libavcodec/cbrt_tablegen_template.c
+++ b/libavcodec/cbrt_tablegen_template.c
@@ -23,6 +23,7 @@
#include <stdlib.h>
#define CONFIG_HARDCODED_TABLES 0
#include "cbrt_tablegen.h"
+#include "libavutil/tablegen.h"
#include "tableprint.h"
int main(void)