Re:Bitwise Division
by pantalaimon on Wednesday March 01, 2023 @08:38AM
(#34982233)
An assert() also does the trick: https://godbolt.org/z/MecvMGPdW
Re:Bitwise Division
by RenThraysk on Wednesday March 01, 2023 @03:46PM
(#34988083)
9*x/64 still reduces to 2 instructions
You can use __builtin_assume for this: https://godbolt.org/z/K4jKhxnTq