HomeFreeBSD

Fix incorrect hypotl(3) result with subnormal numbers

Description

Fix incorrect hypotl(3) result with subnormal numbers

This adjusts the factor used to scale the subnormal numbers, so it
becomes the right value after adjusting its exponent. Thanks to Steve
Kargl for finding the most elegant fix.

Also enable the hypot tests, and add a test case for this bug.

PR: 253313

(cherry picked from commit d3338f3355a612cf385632291f46c5777bba8d18)

Fix lib/msun/test builds on platforms without 80-bit long doubles

After d3338f3355a612cf385632291f46c5777bba8d18, the lib/msun test case
'hypotl_near_underflow' would fail to compile on platforms where long
doubles weren't 80 bit, like on x86. Disable this particular test on
such platforms for now.

PR: 253313

(cherry picked from commit 25120662284466ecef976df8f86e97bafdedf991)

Details

Provenance
dimAuthored on Feb 10 2021, 10:28 PM
Parents
rG2dcaecea30c0: OpenSSL: Fix Null pointer deref in X509_issuer_and_serial_hash()
Branches
Unknown
Tags
Unknown