/* ** Copyright (C) Sebastian Pipping and Katrin Lang ** Licensed under GPL v3 or later ** ** 2011-08-13 20:06 UTC+2 */ #include #include #include static void dump_header() { printf("Index 31 24 16 8 0\n"); printf(" |"); signed int bit_index = sizeof(int) * 8 - 2; for (; bit_index >= 0; bit_index--) { putchar(bit_index % 8 ? '.' : '|'); } putchar('\n'); } int main(int argc, char ** argv) { assert(sizeof(unsigned int) == sizeof(float)); dump_header(); for (int i= 1; i