Source
- URL: https://x.com/FUZxxl/status/2060885487858880689
- Author: Robert Clausecker (@FUZxxl)
- Posted: 2026-05-31 00:46:04
Branch
1/ @FUZxxl
@NOTimothyLottes
If you do the multiply in uint128_t and then right-shift by 64 places, the compiler should do the right thing.
2/ @NOTimothyLottes
@FUZxxl
“Should” is exactly why I prefer the actual instruction instrinsics or just inline asm (which is what I use on C CPU land)
3/ @FUZxxl
@NOTimothyLottes
Have fun with a solution that the compiler optimises worse and that is not portable.