[Bug libc/1498] New: Wrong result for some integer divisions on Alpha

falk at debian dot org sourceware-bugzilla@sourceware.org
Tue Oct 18 20:46:00 GMT 2005


When x has bit 63 set, then the unsigned integer division x/x will give 0
instead of 1. This is due to a typo in __divqu. The same problem exists in 
__remqu. This breaks gmp (see http://bugs.debian.org/324455). The attached
patch fixes it. This patch has been in use in Debian's glibc for a while.

-- 
           Summary: Wrong result for some integer divisions on Alpha
           Product: glibc
           Version: 2.3.5
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: falk at debian dot org
                CC: glibc-bugs at sources dot redhat dot com
GCC target triplet: alpha-*-*


http://sourceware.org/bugzilla/show_bug.cgi?id=1498

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the Glibc-bugs mailing list