cppalliance / decimal

A C++14 implementation of IEEE 754 decimal floating point numbers
https://cppalliance.org/decimal/decimal.html
Boost Software License 1.0
17 stars 1 forks source link

Add `BOOST_DECIMAL_FAST_MATH` #623

Closed mborland closed 1 month ago

mborland commented 1 month ago

Since we have no control over compiler flags we could allow a macro BOOST_DECIMAL_FAST_MATH that makes similar bold optimizations such as removing all checks for infs, nans, etc. That would nearly wipe out all branches in basic arithmetic.