Home | History | Annotate | Download | only in src

Lines Matching defs:out

21   DYNAMIC_CRC_TABLE and MAKECRCH can be #defined to write out crc32.h.
81 out is a one). We start with the highest power (least significant bit) of
141 /* write out CRC tables to crc32.h */
143 FILE *out;
145 out = fopen("crc32.h", "w");
146 if (out == NULL) return;
147 fprintf(out, "/* crc32.h -- tables for rapid CRC calculation\n");
148 fprintf(out, " * Generated automatically by crc32.c\n */\n\n");
149 fprintf(out, "local const z_crc_t FAR ");
150 fprintf(out, "crc_table[TBLS][256] =\n{\n {\n");
151 write_table(out, crc_table[0]);
153 fprintf(out, "#ifdef BYFOUR\n");
155 fprintf(out, " },\n {\n");
156 write_table(out, crc_table[k]);
158 fprintf(out, "#endif\n");
160 fprintf(out, " }\n};\n");
161 fclose(out);
167 local void write_table(out, table)
168 FILE *out;
174 fprintf(out, "%s0x%08lxUL%s", n % 5 ? "" : " ",