blob: 40bbec7f87a2ae96b65758df190c418adc5a17dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# test of 32-bit binary prints
# Also tests big_endian4()
probe begin
{
printf("%4b", big_endian4(0x12))
printf("%4b", big_endian4(0x34))
printf("%4b%4b", big_endian4(0xabcdef00), big_endian4(0x5678))
a = big_endian4(0x12345678)
b = big_endian4(0x11112222)
c = big_endian4(0x88889999)
d = big_endian4(0xcdef0000)
printf("%4b%4b%4b%4b", a, b, c, d)
printf("a=%4b b=%4b c=%4b d=%4b",a,b,c,d)
exit()
}
|