summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;
+}