Stolen from a hellsite user
-
Stolen from a hellsite user
-
Stolen from a hellsite user
@soatok wtf did you override "3" with?
-
@soatok wtf did you override "3" with?
@RueNahcMohr Compiler optimizations are black magic
-
@RueNahcMohr Compiler optimizations are black magic
@soatok can that really be faster than a shift?surely there is an MMX instruction that does the divide and whatever the next instruction in the program is supposed to do too. :]
-
@soatok can that really be faster than a shift?surely there is an MMX instruction that does the divide and whatever the next instruction in the program is supposed to do too. :]
@RueNahcMohr @soatok A multiplication is always faster than a division. And thanks to the limited number range in a register, you can in many cases represent division via multiplication. But it doesn't always work.
-
@RueNahcMohr Compiler optimizations are black magic
@soatok @RueNahcMohr if you enjoy black magic compiler optimizations, I can very much recommend Advent of Compiler Optimisations 2025 by @mattgodbolt:
https://www.youtube.com/playlist?list=PL2HVqYf7If8cY4wLk7JUQ2f0JXY_xMQm2
-
undefined oblomov@sociale.network shared this topic on