2
0
mirror of https://github.com/xcat2/xNBA.git synced 2025-03-02 17:20:16 +00:00

Added __umoddi3

This commit is contained in:
Michael Brown 2007-01-31 22:26:14 +00:00
parent 6c2f0e1bf4
commit c789e8640b

View File

@ -317,3 +317,16 @@ UDItype __udivdi3 ( UDItype x, UDItype d ) {
UDItype r;
return __udivmoddi4 ( x, d, &r );
}
/**
* 64-bit modulus
*
* @v x Dividend
* @v d Divisor
* @ret q Quotient
*/
UDItype __umoddi3 ( UDItype x, UDItype d ) {
UDItype r;
__udivmoddi4 ( x, d, &r );
return r;
}