mirror of
https://github.com/ipxe/ipxe
synced 2025-12-13 15:31:42 +03:00
Added __umoddi3
This commit is contained in:
@@ -317,3 +317,16 @@ UDItype __udivdi3 ( UDItype x, UDItype d ) {
|
|||||||
UDItype r;
|
UDItype r;
|
||||||
return __udivmoddi4 ( x, d, &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;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user