http://git.etherboot.org
/
people
/
dverkamp
/
gpxe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c2f0e1
)
Added __umoddi3
author
Michael Brown
<mcb30@etherboot.org>
Wed, 31 Jan 2007 22:26:14 +0000
(22:26 +0000)
committer
Michael Brown
<mcb30@etherboot.org>
Wed, 31 Jan 2007 22:26:14 +0000
(22:26 +0000)
src/arch/i386/core/udivmod64.c
patch
|
blob
|
history
diff --git
a/src/arch/i386/core/udivmod64.c
b/src/arch/i386/core/udivmod64.c
index
61d4092
..
bb58102
100644
(file)
--- 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;
+}