|
Boost : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2025-01-21 17:48:16
Some random observations:
The class doesn't need to be marked as EXPORT, because
all its members are constexpr (or templated), and hence,
nothing is actually exported.
The special inf value is higher than the special NaN values,
which causes isnan() to perform a biased compare
https://godbolt.org/z/78P73r986
instead of a straight one
https://godbolt.org/z/ebr3EsxWf
(I've changed the exponent type here to uint16_t to avoid
the pessimization identified earlier.)
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk