07-05-2025, 09:06 PM
Nobody has really given you a straight answer
The reason SINGLE can be faster is because "/" division is always floating point. When you use it with integer types they first get converted to SINGLE and then those get divided the same as regular SINGLEs, so making them integers just adds an extra step.
I'd also say separately the advice of "native integer size" is less relevant for modern processors, x86 can handle all the sizes just fine. The issue is a bigger deal for less powerful processors with more limited instruction sets, no cache, etc.
The reason SINGLE can be faster is because "/" division is always floating point. When you use it with integer types they first get converted to SINGLE and then those get divided the same as regular SINGLEs, so making them integers just adds an extra step.I'd also say separately the advice of "native integer size" is less relevant for modern processors, x86 can handle all the sizes just fine. The issue is a bigger deal for less powerful processors with more limited instruction sets, no cache, etc.

