]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/netbsd-tests/include/d_bitstring_8.out
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / contrib / netbsd-tests / include / d_bitstring_8.out
1 Testing with TEST_LENGTH = 8
2
3 test _bit_byte, _bit_mask, and bitstr_size
4   i   _bit_byte(i)   _bit_mask(i) bitstr_size(i)
5   0              0              1              0
6   1              0              2              1
7   2              0              4              1
8   3              0              8              1
9   4              0             16              1
10   5              0             32              1
11   6              0             64              1
12   7              0            128              1
13
14 test bit_alloc, clearbits, bit_ffc, bit_ffs
15 be:   0  -1 00000000
16 is:   0  -1 00000000
17
18 test bit_set
19 be:   1   0 10010010
20 is:   1   0 10010010
21
22 test bit_clear
23 be:   0   3 00010000
24 is:   0   3 00010000
25
26 test bit_test using previous bitstring
27   i    bit_test(i)
28   0              0
29   1              0
30   2              0
31   3              8
32   4              0
33   5              0
34   6              0
35   7              0
36
37 test clearbits
38 be:   0  -1 00000000
39 is:   0  -1 00000000
40
41 test bit_nset and bit_nclear
42 be:   0   1 01111110
43 is:   0   1 01111110
44 be:   0   1 01000010
45 is:   0   1 01000010
46 be:   0  -1 00000000
47 is:   0  -1 00000000
48 be:   7   0 11111110
49 is:   7   0 11111110
50 be:   0  -1 00000000
51 is:   0  -1 00000000
52
53 first 1 bit should move right 1 position each line
54   0  -1   0 11111111
55   1   0   1 01111111
56   2   0   2 00111111
57   3   0   3 00011111
58   4   0   4 00001111
59   5   0   5 00000111
60   6   0   6 00000011
61   7   0   7 00000001
62
63 first 0 bit should move right 1 position each line
64   0   0  -1 00000000
65   1   1   0 10000000
66   2   2   0 11000000
67   3   3   0 11100000
68   4   4   0 11110000
69   5   5   0 11111000
70   6   6   0 11111100
71   7   7   0 11111110
72
73 first 0 bit should move left 1 position each line
74   0  -1   0 11111111
75   1   7   0 11111110
76   2   6   0 11111100
77   3   5   0 11111000
78   4   4   0 11110000
79   5   3   0 11100000
80   6   2   0 11000000
81   7   1   0 10000000
82
83 first 1 bit should move left 1 position each line
84   0   0  -1 00000000
85   1   0   7 00000001
86   2   0   6 00000011
87   3   0   5 00000111
88   4   0   4 00001111
89   5   0   3 00011111
90   6   0   2 00111111
91   7   0   1 01111111
92
93 0 bit should move right 1 position each line
94   0   0   1 01111111
95   1   1   0 10111111
96   2   2   0 11011111
97   3   3   0 11101111
98   4   4   0 11110111
99   5   5   0 11111011
100   6   6   0 11111101
101   7   7   0 11111110
102
103 1 bit should move right 1 position each line
104   0   1   0 10000000
105   1   0   1 01000000
106   2   0   2 00100000
107   3   0   3 00010000
108   4   0   4 00001000
109   5   0   5 00000100
110   6   0   6 00000010
111   7   0   7 00000001