[Bug 284905] __builtin_powf produces incorrect result on FreeBSD

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 19 Feb 2025 20:38:23 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=284905

--- Comment #6 from sgk@troutmask.apl.washington.edu ---
(In reply to Dimitry Andric from comment #4)

IMHO, there isn't an issue.  10^11 > 8^11 = 2^33 > 2^24.
The integer result isn't exactly representable in IEEE
binary32, so I would expect pow(10.f,11.f) to give neither
an exact result nor a result that matches binary64.

% hex 10.e11
binary32: 9.99999996e+11         0x5368d4a5            0x1.d1a94ap+39
binary64: 1.0000000000000000e+12 0x426d1a94 0xa2000000 0x1.d1a94a2p+39

The trailing '2' in hex output is telling.

-- 
You are receiving this mail because:
You are the assignee for the bug.