3 ms·
Most CPUs do just fine on floating point too.
by saagarjha 3y ago
Most CPUs do just fine on floating point too.
- actionfromafar 3y agoI'm still getting used to that.
- dartos 3y agoFloating point arithmetic _is_ integer arithmetic on the cpu level because of how floating point numbers work.
- fwip 3y agoThat's a good point - floating point operations are implemented with integer-math circuits (or at least can be - I'm not privy to how modern chip manufacturers implement them). E.g: your ALU may have an 11-bit adder specifically to add your f64 exponents. Some slides to get the gist of it: https://users.encs.concordia.ca/~asim/COEN_6501/Lecture_Notes/L4_Slides.pdf https://users.encs.concordia.ca/~asim/COEN_6501/Lecture_Note...