www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 5418] New: std.math.lround not implemented on win32 and not documented

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5418

           Summary: std.math.lround not implemented on win32 and not
                    documented
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: major
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: spam extrawurst.org



---
lround and possibly other functions are implemented as assert(false) which is
simply a HLT instruction in release under win32:

version (Posix)
    return core.stdc.math.llroundl(x);
else
    assert (0, "lround not implemented");

This is frustrating since it is not documented and if someone comes across this
he just gets it if he looks into the phobos source.

(tested with dmd 2.051)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 06 2011
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5418


Lars T. Kyllingstad <bugzilla kyllingen.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla kyllingen.net,
                   |                            |sean invisibleduck.org



03:16:39 PST ---
It seems the DMC standard library doesn't contain llroundl, nor is it specified
by ANSI C.  Therefore, it should probably be removed from core.stdc.math as
well, or moved to core.sys.posix.math if it isn't defined there already.

Sean, I'm adding you to the CC list of this bug since it is partly a druntime
thing.  Hope you don't mind.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 06 2011
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5418


Nick Sabalausky <cbkbbejeap mailinator.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |cbkbbejeap mailinator.com



15:19:10 PDT ---
Ping.

I just spent half an hour tracking down a seemingly-bizarre bug that turned out
to be this. :(

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 08 2013