-There are a couple of functions where the constexpr versions are not direct replacements for the standard library versions. constexpr ```cxcm::sqrt()``` should be a 100% match to ```std::sqrt()``` when the type is ```float```, but when the type is ```double``` we get ~75.6% the same results, with the remaining results only 1 ulp away from the answer given by the standard library. Similarly, for the function constexpr ```cxcm::rsqrt()```, which is not in ```<cmath>``` but is the same as ```1 / sqrt()```, there is a 100% match for ```float``` and ```1.0f / std::sqrt(float_value)```. For ```double```, we get ~85.7% the same results as ```1.0 / std::sqrt(double_value)```, with the remaining results either within 1 ulp (~12.4%) or 2 ulps (~1.9%).
0 commit comments