1 We always forget those:
10 BYTES_N(log2) shl(1,log2)
11 MSK_LO(log2) (BYTES_N(log2) - 1)
12 MSK_HI(log2) not(MSK_LO(log2))
14 Dangerous x86_64 ISA with its bitwise operators with sign extension from negative 32bits numbers to
16 MSK_HI_S32(log2) (-BYTES_N(log2))
17 MSK_HI_S32(log2) (-MSK_LO(log2) - 1)
19 ALIGN_DOWN(val,log2) val & MSK_HI(log2)
20 ALIGN_UP(val,log2) (val + MSK_LO(log2) & MSK_HI(log2)
22 -X = ~X + 1, 2 complement.