3 ms·
That's only for a fully general 64-bit value though. Most constants in practical use can be loaded/recomputed a lot more easily.
by zozbot234 4y ago
That's only for a fully general 64-bit value though. Most constants in practical use can be loaded/recomputed a lot more easily.
- sparkie 4y agoPractical use is double-precision floating-point constants, preprocessor generated bit-flags, high-bits pointer tagging in dynamic languages, etc. Having to read them from memory or expend multiple cycles to materialize them into a register defeats the point on even having them constant.