| 1 |
# test of 64-bit binary prints |
| 2 |
# need to use big_endian8() to get consistent results across |
| 3 |
# different-endian architectures. |
| 4 |
|
| 5 |
probe begin |
| 6 |
{ |
| 7 |
printf("%8b", big_endian8(0x12)) |
| 8 |
printf("%8b", big_endian8(0x34)) |
| 9 |
printf("%8b%8b", big_endian8(0xabcd000011112222), big_endian8(0x5678567856785678)) |
| 10 |
a = big_endian8(0x0012345678abcdef) |
| 11 |
b = big_endian8(0x1111222233334444) |
| 12 |
c = big_endian8(0x88889999aaaabbbb) |
| 13 |
d = big_endian8(0xcdef000011112222) |
| 14 |
printf("%8b%8b%8b%8b", a, b, c, d) |
| 15 |
printf("a=%8b b=%8b c=%8b d=%8b",a,b,c,d) |
| 16 |
exit() |
| 17 |
} |