summaryrefslogtreecommitdiffstats
path: root/src/arch
diff options
context:
space:
mode:
authorMichael Brown2007-01-31 23:26:14 +0100
committerMichael Brown2007-01-31 23:26:14 +0100
commitc789e8640bbc928edd6780b1defb67aca3a0c9b2 (patch)
tree83784301395a4e364a3dfc0516486ab67b326cda /src/arch
parentOriginal axtls RSA code (diff)
downloadipxe-c789e8640bbc928edd6780b1defb67aca3a0c9b2.tar.gz
ipxe-c789e8640bbc928edd6780b1defb67aca3a0c9b2.tar.xz
ipxe-c789e8640bbc928edd6780b1defb67aca3a0c9b2.zip
Added __umoddi3
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/i386/core/udivmod64.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/arch/i386/core/udivmod64.c b/src/arch/i386/core/udivmod64.c
index 61d409216..bb58102cd 100644
--- a/src/arch/i386/core/udivmod64.c
+++ b/src/arch/i386/core/udivmod64.c
@@ -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;
+}