Bug 21757 – log2 does not work with reals on CTFE with FreeBSD

Status
NEW
Severity
regression
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
FreeBSD
Creation time
2021-03-24T09:27:42Z
Last change time
2024-12-01T16:38:35Z
Assigned to
No Owner
Creator
Berni44
Moved to GitHub: phobos#9819 →

Comments

Comment #0 by bugzilla — 2021-03-24T09:27:42Z
enum r1 = 3.05e2312L; enum r2 = log2(3.05e2312L); On FreeBSD_32 and FreeBSD_64_64 r1 is the correct real value, while r2 is infinity (and not ~7681.91). I remember I found a fixed issue yesterday, which is about this, but can't find it anymore (therefore I judged this a regression). It pointed to a bug in the C routine, which is called underneath, and can't handle reals. It was fixed with a workaround.
Comment #1 by robert.schadek — 2024-12-01T16:38:35Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/9819 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB