Browse Source

perf: hex format of bitwise constant

master
Dnomd343 2 years ago
parent
commit
675541c20f
  1. 18
      src/raw_code/raw_code.h

18
src/raw_code/raw_code.h

@ -10,15 +10,15 @@
#define B_1x1 0b011
#define B_2x2 0b100
#define C_1x1 (uint64_t)0b011 // 011 (0x3)
#define C_1x2 (uint64_t)0b111001 // 111 001 (0x39)
#define C_2x1 (uint64_t)0b111000000000010 // 111 000 000 000 010 (0x7002)
#define C_2x2 (uint64_t)0b111111000000111100 // 111 111 000 000 111 100 (0x3F03C)
#define F_1x1 (uint64_t)0b111 // 111 (0x7)
#define F_1x2 (uint64_t)0b111111 // 111 111 (0x3F)
#define F_2x1 (uint64_t)0b111000000000111 // 111 000 000 000 111 (0x7007)
#define F_2x2 (uint64_t)0b111111000000111111 // 111 111 000 000 111 111 (0x3F03F)
#define C_1x1 (uint64_t)0x3 // 011
#define C_1x2 (uint64_t)0x39 // 111 001
#define C_2x1 (uint64_t)0x7002 // 111 000 000 000 010
#define C_2x2 (uint64_t)0x3F03C // 111 111 000 000 111 100
#define F_1x1 (uint64_t)0x7 // 111
#define F_1x2 (uint64_t)0x3F // 111 111
#define F_2x1 (uint64_t)0x7007 // 111 000 000 000 111
#define F_2x2 (uint64_t)0x3F03F // 111 111 000 000 111 111
class RawCode {
public:

Loading…
Cancel
Save