-
Notifications
You must be signed in to change notification settings - Fork 0
/
backward_bytes.h
256 lines (256 loc) · 7.25 KB
/
backward_bytes.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
[0b00000000u] = 0b00000000u,
[0b00000001u] = 0b10000000u,
[0b00000010u] = 0b01000000u,
[0b00000011u] = 0b11000000u,
[0b00000100u] = 0b00100000u,
[0b00000101u] = 0b10100000u,
[0b00000110u] = 0b01100000u,
[0b00000111u] = 0b11100000u,
[0b00001000u] = 0b00010000u,
[0b00001001u] = 0b10010000u,
[0b00001010u] = 0b01010000u,
[0b00001011u] = 0b11010000u,
[0b00001100u] = 0b00110000u,
[0b00001101u] = 0b10110000u,
[0b00001110u] = 0b01110000u,
[0b00001111u] = 0b11110000u,
[0b00010000u] = 0b00001000u,
[0b00010001u] = 0b10001000u,
[0b00010010u] = 0b01001000u,
[0b00010011u] = 0b11001000u,
[0b00010100u] = 0b00101000u,
[0b00010101u] = 0b10101000u,
[0b00010110u] = 0b01101000u,
[0b00010111u] = 0b11101000u,
[0b00011000u] = 0b00011000u,
[0b00011001u] = 0b10011000u,
[0b00011010u] = 0b01011000u,
[0b00011011u] = 0b11011000u,
[0b00011100u] = 0b00111000u,
[0b00011101u] = 0b10111000u,
[0b00011110u] = 0b01111000u,
[0b00011111u] = 0b11111000u,
[0b00100000u] = 0b00000100u,
[0b00100001u] = 0b10000100u,
[0b00100010u] = 0b01000100u,
[0b00100011u] = 0b11000100u,
[0b00100100u] = 0b00100100u,
[0b00100101u] = 0b10100100u,
[0b00100110u] = 0b01100100u,
[0b00100111u] = 0b11100100u,
[0b00101000u] = 0b00010100u,
[0b00101001u] = 0b10010100u,
[0b00101010u] = 0b01010100u,
[0b00101011u] = 0b11010100u,
[0b00101100u] = 0b00110100u,
[0b00101101u] = 0b10110100u,
[0b00101110u] = 0b01110100u,
[0b00101111u] = 0b11110100u,
[0b00110000u] = 0b00001100u,
[0b00110001u] = 0b10001100u,
[0b00110010u] = 0b01001100u,
[0b00110011u] = 0b11001100u,
[0b00110100u] = 0b00101100u,
[0b00110101u] = 0b10101100u,
[0b00110110u] = 0b01101100u,
[0b00110111u] = 0b11101100u,
[0b00111000u] = 0b00011100u,
[0b00111001u] = 0b10011100u,
[0b00111010u] = 0b01011100u,
[0b00111011u] = 0b11011100u,
[0b00111100u] = 0b00111100u,
[0b00111101u] = 0b10111100u,
[0b00111110u] = 0b01111100u,
[0b00111111u] = 0b11111100u,
[0b01000000u] = 0b00000010u,
[0b01000001u] = 0b10000010u,
[0b01000010u] = 0b01000010u,
[0b01000011u] = 0b11000010u,
[0b01000100u] = 0b00100010u,
[0b01000101u] = 0b10100010u,
[0b01000110u] = 0b01100010u,
[0b01000111u] = 0b11100010u,
[0b01001000u] = 0b00010010u,
[0b01001001u] = 0b10010010u,
[0b01001010u] = 0b01010010u,
[0b01001011u] = 0b11010010u,
[0b01001100u] = 0b00110010u,
[0b01001101u] = 0b10110010u,
[0b01001110u] = 0b01110010u,
[0b01001111u] = 0b11110010u,
[0b01010000u] = 0b00001010u,
[0b01010001u] = 0b10001010u,
[0b01010010u] = 0b01001010u,
[0b01010011u] = 0b11001010u,
[0b01010100u] = 0b00101010u,
[0b01010101u] = 0b10101010u,
[0b01010110u] = 0b01101010u,
[0b01010111u] = 0b11101010u,
[0b01011000u] = 0b00011010u,
[0b01011001u] = 0b10011010u,
[0b01011010u] = 0b01011010u,
[0b01011011u] = 0b11011010u,
[0b01011100u] = 0b00111010u,
[0b01011101u] = 0b10111010u,
[0b01011110u] = 0b01111010u,
[0b01011111u] = 0b11111010u,
[0b01100000u] = 0b00000110u,
[0b01100001u] = 0b10000110u,
[0b01100010u] = 0b01000110u,
[0b01100011u] = 0b11000110u,
[0b01100100u] = 0b00100110u,
[0b01100101u] = 0b10100110u,
[0b01100110u] = 0b01100110u,
[0b01100111u] = 0b11100110u,
[0b01101000u] = 0b00010110u,
[0b01101001u] = 0b10010110u,
[0b01101010u] = 0b01010110u,
[0b01101011u] = 0b11010110u,
[0b01101100u] = 0b00110110u,
[0b01101101u] = 0b10110110u,
[0b01101110u] = 0b01110110u,
[0b01101111u] = 0b11110110u,
[0b01110000u] = 0b00001110u,
[0b01110001u] = 0b10001110u,
[0b01110010u] = 0b01001110u,
[0b01110011u] = 0b11001110u,
[0b01110100u] = 0b00101110u,
[0b01110101u] = 0b10101110u,
[0b01110110u] = 0b01101110u,
[0b01110111u] = 0b11101110u,
[0b01111000u] = 0b00011110u,
[0b01111001u] = 0b10011110u,
[0b01111010u] = 0b01011110u,
[0b01111011u] = 0b11011110u,
[0b01111100u] = 0b00111110u,
[0b01111101u] = 0b10111110u,
[0b01111110u] = 0b01111110u,
[0b01111111u] = 0b11111110u,
[0b10000000u] = 0b00000001u,
[0b10000001u] = 0b10000001u,
[0b10000010u] = 0b01000001u,
[0b10000011u] = 0b11000001u,
[0b10000100u] = 0b00100001u,
[0b10000101u] = 0b10100001u,
[0b10000110u] = 0b01100001u,
[0b10000111u] = 0b11100001u,
[0b10001000u] = 0b00010001u,
[0b10001001u] = 0b10010001u,
[0b10001010u] = 0b01010001u,
[0b10001011u] = 0b11010001u,
[0b10001100u] = 0b00110001u,
[0b10001101u] = 0b10110001u,
[0b10001110u] = 0b01110001u,
[0b10001111u] = 0b11110001u,
[0b10010000u] = 0b00001001u,
[0b10010001u] = 0b10001001u,
[0b10010010u] = 0b01001001u,
[0b10010011u] = 0b11001001u,
[0b10010100u] = 0b00101001u,
[0b10010101u] = 0b10101001u,
[0b10010110u] = 0b01101001u,
[0b10010111u] = 0b11101001u,
[0b10011000u] = 0b00011001u,
[0b10011001u] = 0b10011001u,
[0b10011010u] = 0b01011001u,
[0b10011011u] = 0b11011001u,
[0b10011100u] = 0b00111001u,
[0b10011101u] = 0b10111001u,
[0b10011110u] = 0b01111001u,
[0b10011111u] = 0b11111001u,
[0b10100000u] = 0b00000101u,
[0b10100001u] = 0b10000101u,
[0b10100010u] = 0b01000101u,
[0b10100011u] = 0b11000101u,
[0b10100100u] = 0b00100101u,
[0b10100101u] = 0b10100101u,
[0b10100110u] = 0b01100101u,
[0b10100111u] = 0b11100101u,
[0b10101000u] = 0b00010101u,
[0b10101001u] = 0b10010101u,
[0b10101010u] = 0b01010101u,
[0b10101011u] = 0b11010101u,
[0b10101100u] = 0b00110101u,
[0b10101101u] = 0b10110101u,
[0b10101110u] = 0b01110101u,
[0b10101111u] = 0b11110101u,
[0b10110000u] = 0b00001101u,
[0b10110001u] = 0b10001101u,
[0b10110010u] = 0b01001101u,
[0b10110011u] = 0b11001101u,
[0b10110100u] = 0b00101101u,
[0b10110101u] = 0b10101101u,
[0b10110110u] = 0b01101101u,
[0b10110111u] = 0b11101101u,
[0b10111000u] = 0b00011101u,
[0b10111001u] = 0b10011101u,
[0b10111010u] = 0b01011101u,
[0b10111011u] = 0b11011101u,
[0b10111100u] = 0b00111101u,
[0b10111101u] = 0b10111101u,
[0b10111110u] = 0b01111101u,
[0b10111111u] = 0b11111101u,
[0b11000000u] = 0b00000011u,
[0b11000001u] = 0b10000011u,
[0b11000010u] = 0b01000011u,
[0b11000011u] = 0b11000011u,
[0b11000100u] = 0b00100011u,
[0b11000101u] = 0b10100011u,
[0b11000110u] = 0b01100011u,
[0b11000111u] = 0b11100011u,
[0b11001000u] = 0b00010011u,
[0b11001001u] = 0b10010011u,
[0b11001010u] = 0b01010011u,
[0b11001011u] = 0b11010011u,
[0b11001100u] = 0b00110011u,
[0b11001101u] = 0b10110011u,
[0b11001110u] = 0b01110011u,
[0b11001111u] = 0b11110011u,
[0b11010000u] = 0b00001011u,
[0b11010001u] = 0b10001011u,
[0b11010010u] = 0b01001011u,
[0b11010011u] = 0b11001011u,
[0b11010100u] = 0b00101011u,
[0b11010101u] = 0b10101011u,
[0b11010110u] = 0b01101011u,
[0b11010111u] = 0b11101011u,
[0b11011000u] = 0b00011011u,
[0b11011001u] = 0b10011011u,
[0b11011010u] = 0b01011011u,
[0b11011011u] = 0b11011011u,
[0b11011100u] = 0b00111011u,
[0b11011101u] = 0b10111011u,
[0b11011110u] = 0b01111011u,
[0b11011111u] = 0b11111011u,
[0b11100000u] = 0b00000111u,
[0b11100001u] = 0b10000111u,
[0b11100010u] = 0b01000111u,
[0b11100011u] = 0b11000111u,
[0b11100100u] = 0b00100111u,
[0b11100101u] = 0b10100111u,
[0b11100110u] = 0b01100111u,
[0b11100111u] = 0b11100111u,
[0b11101000u] = 0b00010111u,
[0b11101001u] = 0b10010111u,
[0b11101010u] = 0b01010111u,
[0b11101011u] = 0b11010111u,
[0b11101100u] = 0b00110111u,
[0b11101101u] = 0b10110111u,
[0b11101110u] = 0b01110111u,
[0b11101111u] = 0b11110111u,
[0b11110000u] = 0b00001111u,
[0b11110001u] = 0b10001111u,
[0b11110010u] = 0b01001111u,
[0b11110011u] = 0b11001111u,
[0b11110100u] = 0b00101111u,
[0b11110101u] = 0b10101111u,
[0b11110110u] = 0b01101111u,
[0b11110111u] = 0b11101111u,
[0b11111000u] = 0b00011111u,
[0b11111001u] = 0b10011111u,
[0b11111010u] = 0b01011111u,
[0b11111011u] = 0b11011111u,
[0b11111100u] = 0b00111111u,
[0b11111101u] = 0b10111111u,
[0b11111110u] = 0b01111111u,
[0b11111111u] = 0b11111111u,