tableprint: use the type name as-is for the functions' names.
This drops one parameter from the functions' macros, and require structures to be typedeffed, but ensures that it is possible to map 1-to-1 the type to the function name. Originally committed as revision 23820 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -32,15 +32,15 @@ int main(void)
|
||||
write_fileheader();
|
||||
|
||||
printf("static const int8_t table_4_3_exp[TABLE_4_3_SIZE] = {\n");
|
||||
write_int8_array(table_4_3_exp, TABLE_4_3_SIZE);
|
||||
write_int8_t_array(table_4_3_exp, TABLE_4_3_SIZE);
|
||||
printf("};\n");
|
||||
|
||||
printf("static const uint32_t table_4_3_value[TABLE_4_3_SIZE] = {\n");
|
||||
write_uint32_array(table_4_3_value, TABLE_4_3_SIZE);
|
||||
write_uint32_t_array(table_4_3_value, TABLE_4_3_SIZE);
|
||||
printf("};\n");
|
||||
|
||||
printf("static const uint32_t exp_table[512] = {\n");
|
||||
write_uint32_array(exp_table, 512);
|
||||
write_uint32_t_array(exp_table, 512);
|
||||
printf("};\n");
|
||||
|
||||
printf("static const float exp_table_float[512] = {\n");
|
||||
@@ -48,7 +48,7 @@ int main(void)
|
||||
printf("};\n");
|
||||
|
||||
printf("static const uint32_t expval_table[512][16] = {\n");
|
||||
write_uint32_2d_array(expval_table, 512, 16);
|
||||
write_uint32_t_2d_array(expval_table, 512, 16);
|
||||
printf("};\n");
|
||||
|
||||
printf("static const float expval_table_float[512][16] = {\n");
|
||||
|
Reference in New Issue
Block a user