[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [MINIOS PATCH] lib/math.c: implement __udivmoddi4



Some code compiled by gcc 7 requires this.

Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx>
---
 lib/math.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/lib/math.c b/lib/math.c
index 561393e..6ac8669 100644
--- a/lib/math.c
+++ b/lib/math.c
@@ -6,6 +6,7 @@
  *        File: math.c
  *      Author: Rolf Neugebauer (neugebar@xxxxxxxxxxxxx)
  *     Changes: 
+ *        Implement __udivmoddi4 (Wei Liu <wei.liu2@xxxxxxxxxx>)
  *              
  *        Date: Aug 2003
  * 
@@ -396,6 +397,15 @@ __umoddi3(u_quad_t a, u_quad_t b)
        return (r);
 }
 
+/*
+ * Returns the quotient and place remainder in r
+ */
+u_quad_t
+__udivmoddi4(u_quad_t a, u_quad_t b, u_quad_t *r)
+{
+       return __qdivrem(a, b, r);
+}
+
 /*
  * From
  * moddi3.c
-- 
2.11.0


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.