[FFmpeg-devel] [PATCHv3 3/3] avcodec/cbrt_tablegen: avoid pow and speed up cbrt_tableinit
Ronald S. Bultje
rsbultje at gmail.com
Thu Nov 26 16:39:13 CET 2015
Hi,
On Thu, Nov 26, 2015 at 10:23 AM, Ganesh Ajjanagadde <gajjanagadde at gmail.com
> 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
> #else
> +#include "libavutil/libm.h"
> static uint32_t cbrt_tab[1 << 13];
In cbrt_tablegen_template.c:
#include <stdlib.h>
#define CONFIG_HARDCODED_TABLES 0
#include "cbrt_tablegen.h"
#include "tableprint.h"
So same comment as for the other patch. (Rest looks good, I think.)
Ronald
More information about the ffmpeg-devel
mailing list