Lines Matching defs:out

19   MAKECRCH can be #defined to write out crc32.h. A main() routine is also
301 (which is shifting right by one and adding x^32 mod p if the bit shifted out
342 and writes out the tables for the case that z_word_t is 32 bits.
347 FILE *out;
352 out = fopen("crc32.h", "w");
353 if (out == NULL) return;
355 /* write out little-endian CRC table to crc32.h */
356 fprintf(out,
362 write_table(out, crc_table, 256);
363 fprintf(out,
366 /* write out big-endian CRC table for 64-bit z_word_t to crc32.h */
367 fprintf(out,
375 write_table64(out, crc_big_table, 256);
376 fprintf(out,
379 /* write out big-endian CRC table for 32-bit z_word_t to crc32.h */
380 fprintf(out,
386 write_table32hi(out, crc_big_table, 256);
387 fprintf(out,
392 /* write out braid tables for each value of N */
394 fprintf(out,
401 /* write out braid tables for 64-bit z_word_t to crc32.h */
402 fprintf(out,
408 fprintf(out, " {");
409 write_table(out, ltl[k], 256);
410 fprintf(out, "}%s", k < 7 ? ",\n" : "");
412 fprintf(out,
417 fprintf(out, " {");
418 write_table64(out, big[k], 256);
419 fprintf(out, "}%s", k < 7 ? ",\n" : "");
421 fprintf(out,
427 /* write out braid tables for 32-bit z_word_t to crc32.h */
428 fprintf(out,
434 fprintf(out, " {");
435 write_table(out, ltl[k], 256);
436 fprintf(out, "}%s", k < 3 ? ",\n" : "");
438 fprintf(out,
443 fprintf(out, " {");
444 write_table32hi(out, big[k], 256);
445 fprintf(out, "}%s", k < 3 ? ",\n" : "");
447 fprintf(out,
454 fprintf(out,
458 /* write out zeros operator table to crc32.h */
459 fprintf(out,
463 write_table(out, x2n_table, 32);
464 fprintf(out,
466 fclose(out);
474 Write the 32-bit values in table[0..k-1] to out, five per line in
477 local void write_table(FILE *out, const z_crc_t FAR *table, int k) {
481 fprintf(out, "%s0x%08lx%s", n == 0 || n % 5 ? "" : " ",
487 Write the high 32-bits of each value in table[0..k-1] to out, five per line
490 local void write_table32hi(FILE *out, const z_word_t FAR *table, int k) {
494 fprintf(out, "%s0x%08lx%s", n == 0 || n % 5 ? "" : " ",
500 Write the 64-bit values in table[0..k-1] to out, three per line in
506 local void write_table64(FILE *out, const z_word_t FAR *table, int k) {
510 fprintf(out, "%s0x%016llx%s", n == 0 || n % 3 ? "" : " ",
728 compiler knows what the endianness will be, it can optimize out the