[Issue 4220] I cannot apply @safe to intrinsic operation(eg: std.math.sqrt)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun May 23 21:26:31 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=4220



--- Comment #2 from Walter Bright <bugzilla at digitalmars.com> 2010-05-23 21:26:31 PDT ---
Requires the following changes to std.math:

317c317
< pure nothrow real cos(real x);       /* intrinsic */
---
> @safe pure nothrow real cos(real x);       /* intrinsic */
332c332
< pure nothrow real sin(real x);       /* intrinsic */
---
> @safe pure nothrow real sin(real x);       /* intrinsic */
397c397
< pure nothrow real tan(real x)
---
> @trusted pure nothrow real tan(real x)
808c808
< pure nothrow long rndtol(real x);    /* intrinsic */
---
> @safe pure nothrow long rndtol(real x);    /* intrinsic */
830c830
< pure nothrow
---
> @safe pure nothrow
1388c1388
< pure nothrow real ldexp(real n, int exp);    /* intrinsic */
---
> @safe pure nothrow real ldexp(real n, int exp);    /* intrinsic */
1582c1582
< pure nothrow real fabs(real x);      /* intrinsic */
---
> @safe pure nothrow real fabs(real x);      /* intrinsic */
1781c1781
< pure nothrow real rint(real x);      /* intrinsic */
---
> @safe pure nothrow real rint(real x);      /* intrinsic */
3610,3611c3610,3611
< pure nothrow real yl2x(real x, real y);         // y * log2(x)
< pure nothrow real yl2xp1(real x, real y);       // y * log2(x + 1)
---
> @safe pure nothrow real yl2x(real x, real y);         // y * log2(x)
> @safe pure nothrow real yl2xp1(real x, real y);       // y * log2(x + 1)

-- 
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