[Issue 17003] New: std.bigint: CTFE not available for win32

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Dec 22 08:20:42 PST 2016


https://issues.dlang.org/show_bug.cgi?id=17003

          Issue ID: 17003
           Summary: std.bigint: CTFE not available for win32
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: greeenify at gmail.com

From: https://github.com/andersonpd/eris/issues/6

> The ongoing problem with std.bigint is that CTFE is not available for
the 32-bit Windows version. Because of this eris.decimal will not
compile with std.bigint. The fundamental issue is that std.bigint uses
assembly language routines for speed-up in the 32-bit Windows versions
and asm instructions cannot be evaluated at compile time.

I have, as noted, created a separate big integer type which I am sure is
not as fast as std.bigint, but it is correctly implemented. I just hate
to see two different bigint implementations in phobos, so I have not
pushed to move my eris.decimal to std.decimal until std.bigint is modified.

--


More information about the Digitalmars-d-bugs mailing list