And the same for udivdi3, [TPG]: you are a ning-nong
authorJohn Hodge <[email protected]>
Tue, 13 Jul 2010 13:07:27 +0000 (21:07 +0800)
committerJohn Hodge <[email protected]>
Tue, 13 Jul 2010 13:07:27 +0000 (21:07 +0800)
Usermode/Libraries/libgcc.so_src/libgcc.c

index f88b663..8f6021f 100644 (file)
@@ -53,7 +53,7 @@ uint64_t __udivdi3(uint64_t Num, uint64_t Den)
        if(Den == 0)    __asm__ __volatile__ ("int $0x0");
        // Common speedups
        if(Num <= 0xFFFFFFFF && Den <= 0xFFFFFFFF)
-               return Num / Den;
+               return (uint32_t)Num / (uint32_t)Den;
        if(Den == 1)    return Num;
        if(Den == 2)    return Num >> 1;
        if(Den == 16)   return Num >> 4;

UCC git Repository :: git.ucc.asn.au