Lines Matching defs:out

19   MAKECRCH can be #defined to write out crc32.h. A main() routine is also
307 (which is shifting right by one and adding x^32 mod p if the bit shifted out
349 and writes out the tables for the case that z_word_t is 32 bits.
354 FILE *out;
359 out = fopen("crc32.h", "w");
360 if (out == NULL) return;
362 /* write out little-endian CRC table to crc32.h */
363 fprintf(out,
369 write_table(out, crc_table, 256);
370 fprintf(out,
373 /* write out big-endian CRC table for 64-bit z_word_t to crc32.h */
374 fprintf(out,
382 write_table64(out, crc_big_table, 256);
383 fprintf(out,
386 /* write out big-endian CRC table for 32-bit z_word_t to crc32.h */
387 fprintf(out,
393 write_table32hi(out, crc_big_table, 256);
394 fprintf(out,
399 /* write out braid tables for each value of N */
401 fprintf(out,
408 /* write out braid tables for 64-bit z_word_t to crc32.h */
409 fprintf(out,
415 fprintf(out, " {");
416 write_table(out, ltl[k], 256);
417 fprintf(out, "}%s", k < 7 ? ",\n" : "");
419 fprintf(out,
424 fprintf(out, " {");
425 write_table64(out, big[k], 256);
426 fprintf(out, "}%s", k < 7 ? ",\n" : "");
428 fprintf(out,
434 /* write out braid tables for 32-bit z_word_t to crc32.h */
435 fprintf(out,
441 fprintf(out, " {");
442 write_table(out, ltl[k], 256);
443 fprintf(out, "}%s", k < 3 ? ",\n" : "");
445 fprintf(out,
450 fprintf(out, " {");
451 write_table32hi(out, big[k], 256);
452 fprintf(out, "}%s", k < 3 ? ",\n" : "");
454 fprintf(out,
461 fprintf(out,
465 /* write out zeros operator table to crc32.h */
466 fprintf(out,
470 write_table(out, x2n_table, 32);
471 fprintf(out,
473 fclose(out);
481 Write the 32-bit values in table[0..k-1] to out, five per line in
484 local void write_table(FILE *out, const z_crc_t FAR *table, int k) {
488 fprintf(out, "%s0x%08lx%s", n == 0 || n % 5 ? "" : " ",
494 Write the high 32-bits of each value in table[0..k-1] to out, five per line
497 local void write_table32hi(FILE *out, const z_word_t FAR *table, int k) {
501 fprintf(out, "%s0x%08lx%s", n == 0 || n % 5 ? "" : " ",
507 Write the 64-bit values in table[0..k-1] to out, three per line in
513 local void write_table64(FILE *out, const z_word_t FAR *table, int k) {
517 fprintf(out, "%s0x%016llx%s", n == 0 || n % 3 ? "" : " ",
739 compiler knows what the endianness will be, it can optimize out the