4 ms·
Many of the older, business-driven mainframe designs have hardware BCD instructions--for faithful/performant implementation of grade-school-style dollars-and-ce
by jstewartmobile 7y ago
Many of the older, business-driven mainframe designs have hardware BCD instructions--for faithful/performant implementation of grade-school-style dollars-and-cents base-10 arithmetic.
On the other hand, a great deal of PC evolution has been driven by games--where performance is king. Hard to beat IEEE floating point on performance & storage efficiency!
Then there are the rusty sharp edges of x86, but that is life...
I wonder if `-O0` would solve the inconsistency? I don't particularly trust many compiler optimizations--too much temptation for a compiler writer to go performance-crazy, and start treating this computer voodoo like it was actual algebra.
- saagarjha 7y ago> I don't particularly trust many compiler optimizations They're pretty decent most of the time, unless you go do something undefined.
- jstewartmobile 7y agothe basic math in his article wasn't undefined