[Issue 7691] A pure std.math.floor
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Mar 28 11:12:19 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7691
Don <clugdbug at yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |clugdbug at yahoo.com.au
--- Comment #4 from Don <clugdbug at yahoo.com.au> 2012-03-28 11:12:44 PDT ---
(In reply to comment #3)
> Does dmd even support pureness checking for asm blocks? If not, I'm not sure
> when we will be able to mark asm functions as pure.
asm blocks are ignored for pureness checking.
And I think it has to be that way. In the asm for BigInt, at one point I write
to a static variable. That variable is never read from, EVER. It's a trick to
force Intel processors to stay in sync every pass through the loop.
It would be impossible to enforce, anyway.
BTW: floor() isn't pure, because floorl() isn't pure, because floorl(), being
a C function, may set the matherr variable.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list