by geokon · 8y ago · 0 comments
The few times I've had to do similar things - I usually work by tweaking the code to give me the desired compiler output and I really try to avoid inline assembly. This usually helps me learn some limitations of C/C++ and what the compiler can deduce
edit: curious as to how you perform this optimisation.
Godbolt seems like a good solution now-a-days, but you still need to run benchmarks