April 01, 2015 [Issue 13929] nothrow @nogc gcd with signed integers | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=13929 weaselcat <r9shackleford@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |r9shackleford@gmail.com --- Comment #1 from weaselcat <r9shackleford@gmail.com> --- gcd(a,b) = gcd(|a|,|b|) = gcd(|a|,b) = gcd(a,|b|) - is there a technical reason we reject negative instead of using abs on possible negative(i.e, T.min < 0)? -- |
March 26, 2018 [Issue 13929] nothrow @nogc gcd with signed integers | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=13929 Seb <greensunny12@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |greensunny12@gmail.com Resolution|--- |FIXED --- Comment #2 from Seb <greensunny12@gmail.com> --- This works since 2.072.2: https://run.dlang.io/is/1CXrc8 > gcd(a,b) = gcd(|a|,|b|) = gcd(|a|,b) = gcd(a,|b|) - is there a technical reason we reject negative instead of using abs on possible negative(i.e, T.min < 0)? Please open a separate issue or thread on NG.learn for this. -- |
Copyright © 1999-2021 by the D Language Foundation