News for hackers. Stuff that matters.
Re:How do compilers optimize divisions? by lfowles on Monday February 20, 2017 @05:11PM (#13691463)
I'm not sure I follow your line of thought given the post is talking integer division and FDIV is floating point division.
Re:How do compilers optimize divisions? by amelius on Monday February 20, 2017 @05:51PM (#13691758)
Well, you can build a floating point DIV out of an integer DIV, I suppose. Roughly speaking, you divide the (integer) mantissa, and subtract the exponent, and you normalize.