4 ms·
The original post said he'd be happy to trade performance for consistency. He could also use fdlibm ( http://netlib.org/fdlibm/index.html http://netlib.org/fdl
by maxlybbert 12y ago
The original post said he'd be happy to trade performance for consistency.
He could also use fdlibm ( http://netlib.org/fdlibm/index.html http://netlib.org/fdlibm/index.html ), at least for anything other than primitive operations. But, again, it trades performance for consistency.
- maxlybbert 12y agoThis week I learned that C99 and C11 have an FP_CONTRACT pragma, that can be set "off" for this reason ( http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1570.pdf http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1570.pdf , section 6.5, paragraph 8).