Hacker Times
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
lfowles
on Feb 20, 2017
|
parent
|
context
|
favorite
| on:
How do compilers optimize divisions?
I'm not sure I follow your line of thought given the post is talking integer division and FDIV is floating point division.
amelius
on Feb 20, 2017
[–]
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.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: