|
|
|
|
|
by duckingtest
4295 days ago
|
|
>In general, you might be better off always using long unless there is a specific reason not to I don't agree. That's trading off useful cache for almost invisible micro optimizations. As a general rule, it's always better to use the smallest size possible. |
|
Most of the time the argument starts in a register, is passed in a register, and returned in a register. Using a smaller size often just means that the compiler adds some unneeded conversions as in this case. Usually this doesn't matter, but when it does, the benefit is almost always in favor of the simpler rule of always using 64-bit variables.