]> git.kaiwu.me - njs.git/commit
Ensuring that double type is always evaluated at standard precision.
authorDmitry Volyntsev <xeioex@nginx.com>
Wed, 6 Jul 2022 05:58:12 +0000 (22:58 -0700)
committerDmitry Volyntsev <xeioex@nginx.com>
Wed, 6 Jul 2022 05:58:12 +0000 (22:58 -0700)
commite0e56b0da80406a01d8c3e733c96b4bdfb7409ac
tree9fbb05f6f049420236a889d5112951473b0f853f
parent404553896792b8f5f429dc8852d15784a59d8d3e
Ensuring that double type is always evaluated at standard precision.

Previously, GCC on x86 uses extended precision for intermediate
calculations by default.  This might conflict with njs_diyfp_t because
GCC is not always rounds back the intermediate values to standard
precision.

The fix is to explicitly tell to a compiler to do so.

This closes #507 issue on Github.
auto/types