digitalmars.D.bugs - [Issue 21757] New: log2 does not work with reals on CTFE with FreeBSD
- d-bugmail puremagic.com (22/22) Mar 24 2021 https://issues.dlang.org/show_bug.cgi?id=21757
https://issues.dlang.org/show_bug.cgi?id=21757 Issue ID: 21757 Summary: log2 does not work with reals on CTFE with FreeBSD Product: D Version: D2 Hardware: All OS: FreeBSD Status: NEW Severity: regression Priority: P1 Component: phobos Assignee: nobody puremagic.com Reporter: bugzilla bernis-buecher.de 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. --
Mar 24 2021