Understanding Bitwise & Bitshift in Move
Note from Move Doc:
For Bitshift: Bit shifts can abort if the number of bits to shift by is greater than or equal to 8, 16, 32, 64, 128 or 256 for u8, u16, u32, u64, u128 and u256 respectively.
In table:
TypeBitsMax safe shift
u880–7
u16160–1...
noob6t5.hashnode.dev5 min read