www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9061] New: BigInt | BigInt, BigInt & int

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9061

           Summary: BigInt | BigInt, BigInt & int
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: bearophile_hugs eml.cc



Two missing BigInt operations:


import std.bigint: BigInt;
void main() {
    auto x = BigInt(1) | BigInt(1);
    auto y = BigInt(1) & 1;
}



Those operations are used in a Binary GCD:
http://en.wikipedia.org/wiki/Binary_GCD_algorithm#Iterative_version_in_C

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 22 2012
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9061




*** Issue 8919 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 01 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9061




*** Issue 9432 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 01 2013