[Issue 21757] New: log2 does not work with reals on CTFE with FreeBSD

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Mar 24 09:27:42 UTC 2021


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 at puremagic.com
          Reporter: bugzilla at 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.

--


More information about the Digitalmars-d-bugs mailing list