I expect a sufficiently good macro assembler should be able to do it as well.
Re:Machine Code Isn't Scary
by WalterBright on Wednesday June 04, 2025 @06:12PM
(#44186097)
Then you might as well use a HLL.
This post was very helpful when I tried to figure it out: https://dougallj.wordpress.com/2021/10/30/bit-twiddling-opti...
Re:Machine Code Isn't Scary
by WalterBright on Wednesday June 04, 2025 @08:31PM
(#44187115)
I could have used that during the hours I spent figuring it out!
Once I got the code sequences for this right on my AArch64 code generator, I don't have to ever figure it out again!