Browse Source

Added __umoddi3

tags/v0.9.3
Michael Brown 18 years ago
parent
commit
c789e8640b
1 changed files with 13 additions and 0 deletions
  1. 13
    0
      src/arch/i386/core/udivmod64.c

+ 13
- 0
src/arch/i386/core/udivmod64.c View File

@@ -317,3 +317,16 @@ UDItype __udivdi3 ( UDItype x, UDItype d ) {
317 317
 	UDItype r;
318 318
 	return __udivmoddi4 ( x, d, &r );
319 319
 }
320
+
321
+/**
322
+ * 64-bit modulus
323
+ *
324
+ * @v x			Dividend
325
+ * @v d			Divisor
326
+ * @ret q		Quotient
327
+ */
328
+UDItype __umoddi3 ( UDItype x, UDItype d ) {
329
+	UDItype r;
330
+	__udivmoddi4 ( x, d, &r );
331
+	return r;
332
+}

Loading…
Cancel
Save