comparison cbrt_tablegen.c @ 11570:e03e3df6fb7d libavcodec

Change/simplify the tableprint/tablegen API.
author reimar
date Thu, 01 Apr 2010 17:11:47 +0000
parents 1aba21918874
children 59f399926c12
comparison
equal deleted inserted replaced
11569:731050abce41 11570:e03e3df6fb7d
23 #include <stdlib.h> 23 #include <stdlib.h>
24 #define CONFIG_HARDCODED_TABLES 0 24 #define CONFIG_HARDCODED_TABLES 0
25 #include "cbrt_tablegen.h" 25 #include "cbrt_tablegen.h"
26 #include "tableprint.h" 26 #include "tableprint.h"
27 27
28 void tableinit(void) 28 int main(void)
29 { 29 {
30 cbrt_tableinit(); 30 cbrt_tableinit();
31
32 write_fileheader();
33
34 printf("static const uint32_t cbrt_tab[1<<13] = {\n");
35 write_uint32_array(cbrt_tab, 1 << 13);
36 printf("};\n");
37
38 return 0;
31 } 39 }
32
33 const struct tabledef tables[] = {
34 {
35 "static const uint32_t cbrt_tab[1<<13]",
36 write_uint32_array,
37 cbrt_tab,
38 1 << 13,
39 0
40 },
41 { NULL }
42 };