www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 24106] New: core.stdc.math provides an implementation of

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

          Issue ID: 24106
           Summary: core.stdc.math provides an implementation of modfl for
                    uClibc that only works when real and double are the
                    same size
           Product: D
           Version: D2
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: druntime
          Assignee: nobody puremagic.com
          Reporter: n8sh.secondary hotmail.com

https://github.com/dlang/dmd/blob/df2606c3c544e818dde32593ce2e7850f77cd0e7/druntime/src/core/stdc/math.d#L4132

---
extern(D) pure real modfl(real value, real *iptr)
{
    return modf(cast(double) value, cast(double*) iptr);
}
---

--
Aug 23 2023