[Issue 5812] Power expression optimisation: constant fold (x^^0) = 1
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Apr 4 11:36:32 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5812
--- Comment #1 from Iain Buclaw <ibuclaw at ubuntu.com> 2011-04-04 11:32:56 PDT ---
You can also optimize:
x^^1 => (x)
x^^-1 => (1/x)
And that will remove two other scenarios from requiring std.math to compute the
result.
Regards
--
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