[Issue 3202] std.math.pow cause dead loop
https://issues.dlang.org/show_bug.cgi?id=3202 Andrei Alexandrescu changed: What|Removed |Added Version|2.031 |D2 --
[Issue 3202] std.math.pow cause dead loop
http://d.puremagic.com/issues/show_bug.cgi?id=3202 --- Comment #3 from Lars T. Kyllingstad 2010-08-11 02:43:44 PDT --- Fixed DMD 2.048 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3202] std.math.pow cause dead loop
http://d.puremagic.com/issues/show_bug.cgi?id=3202 ZY Zhou changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution||FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3202] std.math.pow cause dead loop
http://d.puremagic.com/issues/show_bug.cgi?id=3202 Lars T. Kyllingstad changed: What|Removed |Added CC||bugzi...@kyllingen.net AssignedTo|and...@metalanguage.com |bugzi...@kyllingen.net --- Comment #2 from Lars T. Kyllingstad 2010-06-22 00:14:42 PDT --- http://www.dsource.org/projects/phobos/changeset/1677 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3202] std.math.pow cause dead loop
http://d.puremagic.com/issues/show_bug.cgi?id=3202 Andrei Alexandrescu changed: What|Removed |Added Status|NEW |ASSIGNED CC||and...@metalanguage.com AssignedTo|nob...@puremagic.com|and...@metalanguage.com -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3202] std.math.pow cause dead loop
http://d.puremagic.com/issues/show_bug.cgi?id=3202 --- Comment #1 from ZHOU Zhenyu 2009-07-21 22:54:26 PDT --- (In reply to comment #0) > Maybe the while loop should be put into pow(F, uint) instead of pow(F, int) > like the following: what about: pure nothrow F pow(F)(F x, int n) if (isFloatingPoint!(F)) { if (n < 0) return 1 / pow(x, cast(uint)(-n)); else return pow(x, cast(uint)n); } pure nothrow F pow(F)(F x, uint n) // allow integer if n is uint { ... } This also solve #2973 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---