4 * Licensed under the terms of the GNU GPL License version 2.
6 * Binary output routines.
12 void binary(unsigned int n, unsigned long value)
16 for (i = 0; i < n; i++, value<<=1)
17 (void)putchar( (1<<(n-1) & value) ? '1' : '0' );
21 void binary32(unsigned long value)
25 for (i = 0; i < 32; i++,value<<=1) {
26 (void)putchar( (1<<31 & value) ? '1' : '0' );
28 if (i == 23 || i == 15 || i == 7)
34 void binary64(unsigned long long value)