You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

516 lines
10KB

  1. #ifndef Binary_h
  2. #define Binary_h
  3. #define B0 0
  4. #define B00 0
  5. #define B000 0
  6. #define B0000 0
  7. #define B00000 0
  8. #define B000000 0
  9. #define B0000000 0
  10. #define B00000000 0
  11. #define B1 1
  12. #define B01 1
  13. #define B001 1
  14. #define B0001 1
  15. #define B00001 1
  16. #define B000001 1
  17. #define B0000001 1
  18. #define B00000001 1
  19. #define B10 2
  20. #define B010 2
  21. #define B0010 2
  22. #define B00010 2
  23. #define B000010 2
  24. #define B0000010 2
  25. #define B00000010 2
  26. #define B11 3
  27. #define B011 3
  28. #define B0011 3
  29. #define B00011 3
  30. #define B000011 3
  31. #define B0000011 3
  32. #define B00000011 3
  33. #define B100 4
  34. #define B0100 4
  35. #define B00100 4
  36. #define B000100 4
  37. #define B0000100 4
  38. #define B00000100 4
  39. #define B101 5
  40. #define B0101 5
  41. #define B00101 5
  42. #define B000101 5
  43. #define B0000101 5
  44. #define B00000101 5
  45. #define B110 6
  46. #define B0110 6
  47. #define B00110 6
  48. #define B000110 6
  49. #define B0000110 6
  50. #define B00000110 6
  51. #define B111 7
  52. #define B0111 7
  53. #define B00111 7
  54. #define B000111 7
  55. #define B0000111 7
  56. #define B00000111 7
  57. #define B1000 8
  58. #define B01000 8
  59. #define B001000 8
  60. #define B0001000 8
  61. #define B00001000 8
  62. #define B1001 9
  63. #define B01001 9
  64. #define B001001 9
  65. #define B0001001 9
  66. #define B00001001 9
  67. #define B1010 10
  68. #define B01010 10
  69. #define B001010 10
  70. #define B0001010 10
  71. #define B00001010 10
  72. #define B1011 11
  73. #define B01011 11
  74. #define B001011 11
  75. #define B0001011 11
  76. #define B00001011 11
  77. #define B1100 12
  78. #define B01100 12
  79. #define B001100 12
  80. #define B0001100 12
  81. #define B00001100 12
  82. #define B1101 13
  83. #define B01101 13
  84. #define B001101 13
  85. #define B0001101 13
  86. #define B00001101 13
  87. #define B1110 14
  88. #define B01110 14
  89. #define B001110 14
  90. #define B0001110 14
  91. #define B00001110 14
  92. #define B1111 15
  93. #define B01111 15
  94. #define B001111 15
  95. #define B0001111 15
  96. #define B00001111 15
  97. #define B10000 16
  98. #define B010000 16
  99. #define B0010000 16
  100. #define B00010000 16
  101. #define B10001 17
  102. #define B010001 17
  103. #define B0010001 17
  104. #define B00010001 17
  105. #define B10010 18
  106. #define B010010 18
  107. #define B0010010 18
  108. #define B00010010 18
  109. #define B10011 19
  110. #define B010011 19
  111. #define B0010011 19
  112. #define B00010011 19
  113. #define B10100 20
  114. #define B010100 20
  115. #define B0010100 20
  116. #define B00010100 20
  117. #define B10101 21
  118. #define B010101 21
  119. #define B0010101 21
  120. #define B00010101 21
  121. #define B10110 22
  122. #define B010110 22
  123. #define B0010110 22
  124. #define B00010110 22
  125. #define B10111 23
  126. #define B010111 23
  127. #define B0010111 23
  128. #define B00010111 23
  129. #define B11000 24
  130. #define B011000 24
  131. #define B0011000 24
  132. #define B00011000 24
  133. #define B11001 25
  134. #define B011001 25
  135. #define B0011001 25
  136. #define B00011001 25
  137. #define B11010 26
  138. #define B011010 26
  139. #define B0011010 26
  140. #define B00011010 26
  141. #define B11011 27
  142. #define B011011 27
  143. #define B0011011 27
  144. #define B00011011 27
  145. #define B11100 28
  146. #define B011100 28
  147. #define B0011100 28
  148. #define B00011100 28
  149. #define B11101 29
  150. #define B011101 29
  151. #define B0011101 29
  152. #define B00011101 29
  153. #define B11110 30
  154. #define B011110 30
  155. #define B0011110 30
  156. #define B00011110 30
  157. #define B11111 31
  158. #define B011111 31
  159. #define B0011111 31
  160. #define B00011111 31
  161. #define B100000 32
  162. #define B0100000 32
  163. #define B00100000 32
  164. #define B100001 33
  165. #define B0100001 33
  166. #define B00100001 33
  167. #define B100010 34
  168. #define B0100010 34
  169. #define B00100010 34
  170. #define B100011 35
  171. #define B0100011 35
  172. #define B00100011 35
  173. #define B100100 36
  174. #define B0100100 36
  175. #define B00100100 36
  176. #define B100101 37
  177. #define B0100101 37
  178. #define B00100101 37
  179. #define B100110 38
  180. #define B0100110 38
  181. #define B00100110 38
  182. #define B100111 39
  183. #define B0100111 39
  184. #define B00100111 39
  185. #define B101000 40
  186. #define B0101000 40
  187. #define B00101000 40
  188. #define B101001 41
  189. #define B0101001 41
  190. #define B00101001 41
  191. #define B101010 42
  192. #define B0101010 42
  193. #define B00101010 42
  194. #define B101011 43
  195. #define B0101011 43
  196. #define B00101011 43
  197. #define B101100 44
  198. #define B0101100 44
  199. #define B00101100 44
  200. #define B101101 45
  201. #define B0101101 45
  202. #define B00101101 45
  203. #define B101110 46
  204. #define B0101110 46
  205. #define B00101110 46
  206. #define B101111 47
  207. #define B0101111 47
  208. #define B00101111 47
  209. #define B110000 48
  210. #define B0110000 48
  211. #define B00110000 48
  212. #define B110001 49
  213. #define B0110001 49
  214. #define B00110001 49
  215. #define B110010 50
  216. #define B0110010 50
  217. #define B00110010 50
  218. #define B110011 51
  219. #define B0110011 51
  220. #define B00110011 51
  221. #define B110100 52
  222. #define B0110100 52
  223. #define B00110100 52
  224. #define B110101 53
  225. #define B0110101 53
  226. #define B00110101 53
  227. #define B110110 54
  228. #define B0110110 54
  229. #define B00110110 54
  230. #define B110111 55
  231. #define B0110111 55
  232. #define B00110111 55
  233. #define B111000 56
  234. #define B0111000 56
  235. #define B00111000 56
  236. #define B111001 57
  237. #define B0111001 57
  238. #define B00111001 57
  239. #define B111010 58
  240. #define B0111010 58
  241. #define B00111010 58
  242. #define B111011 59
  243. #define B0111011 59
  244. #define B00111011 59
  245. #define B111100 60
  246. #define B0111100 60
  247. #define B00111100 60
  248. #define B111101 61
  249. #define B0111101 61
  250. #define B00111101 61
  251. #define B111110 62
  252. #define B0111110 62
  253. #define B00111110 62
  254. #define B111111 63
  255. #define B0111111 63
  256. #define B00111111 63
  257. #define B1000000 64
  258. #define B01000000 64
  259. #define B1000001 65
  260. #define B01000001 65
  261. #define B1000010 66
  262. #define B01000010 66
  263. #define B1000011 67
  264. #define B01000011 67
  265. #define B1000100 68
  266. #define B01000100 68
  267. #define B1000101 69
  268. #define B01000101 69
  269. #define B1000110 70
  270. #define B01000110 70
  271. #define B1000111 71
  272. #define B01000111 71
  273. #define B1001000 72
  274. #define B01001000 72
  275. #define B1001001 73
  276. #define B01001001 73
  277. #define B1001010 74
  278. #define B01001010 74
  279. #define B1001011 75
  280. #define B01001011 75
  281. #define B1001100 76
  282. #define B01001100 76
  283. #define B1001101 77
  284. #define B01001101 77
  285. #define B1001110 78
  286. #define B01001110 78
  287. #define B1001111 79
  288. #define B01001111 79
  289. #define B1010000 80
  290. #define B01010000 80
  291. #define B1010001 81
  292. #define B01010001 81
  293. #define B1010010 82
  294. #define B01010010 82
  295. #define B1010011 83
  296. #define B01010011 83
  297. #define B1010100 84
  298. #define B01010100 84
  299. #define B1010101 85
  300. #define B01010101 85
  301. #define B1010110 86
  302. #define B01010110 86
  303. #define B1010111 87
  304. #define B01010111 87
  305. #define B1011000 88
  306. #define B01011000 88
  307. #define B1011001 89
  308. #define B01011001 89
  309. #define B1011010 90
  310. #define B01011010 90
  311. #define B1011011 91
  312. #define B01011011 91
  313. #define B1011100 92
  314. #define B01011100 92
  315. #define B1011101 93
  316. #define B01011101 93
  317. #define B1011110 94
  318. #define B01011110 94
  319. #define B1011111 95
  320. #define B01011111 95
  321. #define B1100000 96
  322. #define B01100000 96
  323. #define B1100001 97
  324. #define B01100001 97
  325. #define B1100010 98
  326. #define B01100010 98
  327. #define B1100011 99
  328. #define B01100011 99
  329. #define B1100100 100
  330. #define B01100100 100
  331. #define B1100101 101
  332. #define B01100101 101
  333. #define B1100110 102
  334. #define B01100110 102
  335. #define B1100111 103
  336. #define B01100111 103
  337. #define B1101000 104
  338. #define B01101000 104
  339. #define B1101001 105
  340. #define B01101001 105
  341. #define B1101010 106
  342. #define B01101010 106
  343. #define B1101011 107
  344. #define B01101011 107
  345. #define B1101100 108
  346. #define B01101100 108
  347. #define B1101101 109
  348. #define B01101101 109
  349. #define B1101110 110
  350. #define B01101110 110
  351. #define B1101111 111
  352. #define B01101111 111
  353. #define B1110000 112
  354. #define B01110000 112
  355. #define B1110001 113
  356. #define B01110001 113
  357. #define B1110010 114
  358. #define B01110010 114
  359. #define B1110011 115
  360. #define B01110011 115
  361. #define B1110100 116
  362. #define B01110100 116
  363. #define B1110101 117
  364. #define B01110101 117
  365. #define B1110110 118
  366. #define B01110110 118
  367. #define B1110111 119
  368. #define B01110111 119
  369. #define B1111000 120
  370. #define B01111000 120
  371. #define B1111001 121
  372. #define B01111001 121
  373. #define B1111010 122
  374. #define B01111010 122
  375. #define B1111011 123
  376. #define B01111011 123
  377. #define B1111100 124
  378. #define B01111100 124
  379. #define B1111101 125
  380. #define B01111101 125
  381. #define B1111110 126
  382. #define B01111110 126
  383. #define B1111111 127
  384. #define B01111111 127
  385. #define B10000000 128
  386. #define B10000001 129
  387. #define B10000010 130
  388. #define B10000011 131
  389. #define B10000100 132
  390. #define B10000101 133
  391. #define B10000110 134
  392. #define B10000111 135
  393. #define B10001000 136
  394. #define B10001001 137
  395. #define B10001010 138
  396. #define B10001011 139
  397. #define B10001100 140
  398. #define B10001101 141
  399. #define B10001110 142
  400. #define B10001111 143
  401. #define B10010000 144
  402. #define B10010001 145
  403. #define B10010010 146
  404. #define B10010011 147
  405. #define B10010100 148
  406. #define B10010101 149
  407. #define B10010110 150
  408. #define B10010111 151
  409. #define B10011000 152
  410. #define B10011001 153
  411. #define B10011010 154
  412. #define B10011011 155
  413. #define B10011100 156
  414. #define B10011101 157
  415. #define B10011110 158
  416. #define B10011111 159
  417. #define B10100000 160
  418. #define B10100001 161
  419. #define B10100010 162
  420. #define B10100011 163
  421. #define B10100100 164
  422. #define B10100101 165
  423. #define B10100110 166
  424. #define B10100111 167
  425. #define B10101000 168
  426. #define B10101001 169
  427. #define B10101010 170
  428. #define B10101011 171
  429. #define B10101100 172
  430. #define B10101101 173
  431. #define B10101110 174
  432. #define B10101111 175
  433. #define B10110000 176
  434. #define B10110001 177
  435. #define B10110010 178
  436. #define B10110011 179
  437. #define B10110100 180
  438. #define B10110101 181
  439. #define B10110110 182
  440. #define B10110111 183
  441. #define B10111000 184
  442. #define B10111001 185
  443. #define B10111010 186
  444. #define B10111011 187
  445. #define B10111100 188
  446. #define B10111101 189
  447. #define B10111110 190
  448. #define B10111111 191
  449. #define B11000000 192
  450. #define B11000001 193
  451. #define B11000010 194
  452. #define B11000011 195
  453. #define B11000100 196
  454. #define B11000101 197
  455. #define B11000110 198
  456. #define B11000111 199
  457. #define B11001000 200
  458. #define B11001001 201
  459. #define B11001010 202
  460. #define B11001011 203
  461. #define B11001100 204
  462. #define B11001101 205
  463. #define B11001110 206
  464. #define B11001111 207
  465. #define B11010000 208
  466. #define B11010001 209
  467. #define B11010010 210
  468. #define B11010011 211
  469. #define B11010100 212
  470. #define B11010101 213
  471. #define B11010110 214
  472. #define B11010111 215
  473. #define B11011000 216
  474. #define B11011001 217
  475. #define B11011010 218
  476. #define B11011011 219
  477. #define B11011100 220
  478. #define B11011101 221
  479. #define B11011110 222
  480. #define B11011111 223
  481. #define B11100000 224
  482. #define B11100001 225
  483. #define B11100010 226
  484. #define B11100011 227
  485. #define B11100100 228
  486. #define B11100101 229
  487. #define B11100110 230
  488. #define B11100111 231
  489. #define B11101000 232
  490. #define B11101001 233
  491. #define B11101010 234
  492. #define B11101011 235
  493. #define B11101100 236
  494. #define B11101101 237
  495. #define B11101110 238
  496. #define B11101111 239
  497. #define B11110000 240
  498. #define B11110001 241
  499. #define B11110010 242
  500. #define B11110011 243
  501. #define B11110100 244
  502. #define B11110101 245
  503. #define B11110110 246
  504. #define B11110111 247
  505. #define B11111000 248
  506. #define B11111001 249
  507. #define B11111010 250
  508. #define B11111011 251
  509. #define B11111100 252
  510. #define B11111101 253
  511. #define B11111110 254
  512. #define B11111111 255
  513. #endif