Thread overview
[Issue 5418] New: std.math.lround not implemented on win32 and not documented
Jan 06, 2011
Stephan Dilly
Jun 08, 2013
Nick Sabalausky
January 06, 2011
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


--- Comment #0 from Stephan Dilly <spam@extrawurst.org> 2011-01-06 02:54:35 PST ---
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: -------
January 06, 2011
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


--- Comment #1 from Lars T. Kyllingstad <bugzilla@kyllingen.net> 2011-01-06 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: -------
June 08, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=5418


Nick Sabalausky <cbkbbejeap@mailinator.com> changed:

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


--- Comment #2 from Nick Sabalausky <cbkbbejeap@mailinator.com> 2013-06-08 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: -------