Discussion about this post

User's avatar
Craig's avatar

How does using mulhsu avoid the shift for the 32-bit div5 case. The magic constant is 0x66666667 which is a positive number so mulh and mulhsu are equivalent.

3 more comments...

No posts

Ready for more?