[Issue 7993] BigInt divide-by-1 error

2012-07-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7993 Don changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 7993] BigInt divide-by-1 error

2012-07-01 Thread d-bugmail
/a79bb20ea79955da2422b32b6291ed464530c86d Fix issue 7993 BigInt divide-by-1 error Thanks to c.m.brandeburg for the fix. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---

[Issue 7993] BigInt divide-by-1 error

2012-04-28 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7993 --- Comment #6 from c.m.brandenb...@gmail.com 2012-04-28 03:38:38 PDT --- Here's my modified BigUint.divInt() as a proof-of-concept of the fix. // return x / y static BigUint divInt(T)(BigUint x, T y) if ( is(T==uint) ) { ui

[Issue 7993] BigInt divide-by-1 error

2012-04-28 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7993 --- Comment #5 from c.m.brandenb...@gmail.com 2012-04-28 03:34:45 PDT --- After debugging the code, I discovered the root cause. (Code snippets below.) BigInt uses BigUint.divInt() for performing the underlying division operation. BigUint.divIn

[Issue 7993] BigInt divide-by-1 error

2012-04-28 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7993 --- Comment #4 from c.m.brandenb...@gmail.com 2012-04-28 03:05:39 PDT --- $ dmd | head -n3 DMD64 D Compiler v2.059 Copyright (c) 1999-2012 by Digital Mars written by Walter Bright Documentation: http://www.dlang.org/index.html I do _not_ get t

[Issue 7993] BigInt divide-by-1 error

2012-04-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7993 --- Comment #2 from c.m.brandenb...@gmail.com 2012-04-27 09:06:38 PDT --- (In reply to comment #1) > Which version are you using ? I get the correct result (10, 5) with dmd 2.059 $ dmd | head -n3 DMD64 D Compiler v2.059 Copyright (c) 1999-2012

[Issue 7993] BigInt divide-by-1 error

2012-04-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7993 --- Comment #3 from c.m.brandenb...@gmail.com 2012-04-27 09:08:30 PDT --- (In reply to comment #1) > Which version are you using ? I get the correct result (10, 5) with dmd 2.059 By the way, these are all on x86_64. I've modified the 'Platform'

[Issue 7993] BigInt divide-by-1 error

2012-04-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7993 SomeDude changed: What|Removed |Added CC||lovelyd...@mailmetrash.com --- Comment #1 f