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

Store biased exponent instead of unbiased in fast type #657

Open mborland opened 2 weeks ago

mborland commented 2 weeks ago

Nearly every operation ends up calling T::biased_exponent() so just store this directly and offer a way to extract the unbiased exponent in the event that it is required.