summaryrefslogtreecommitdiff
path: root/lib/libm/src/s_exp2f.c
AgeCommit message (Collapse)Author
2014-03-16Fix overflow and underflow on i386.dsl
The return value of a 'float' function is in the x87 %st(0) register. This is an 80bit 'long double' register. If you multiply 0x1p100f by 0x1p100f the caller sees 0x1p200 - not the expected infinity. So use a 'double' value which goes through a store-load sequence to generate the required exception and value.
2010-01-11Add exp2 and exp2mchristos