[mini-os master] lib/math.c: implement __udivmoddi4

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[mini-os master] lib/math.c: implement __udivmoddi4

patchbot
commit d991bdbc062248221511ecb795617c36b37e1d2e
Author:     Wei Liu <[hidden email]>
AuthorDate: Wed Aug 9 13:15:48 2017 +0100
Commit:     Wei Liu <[hidden email]>
CommitDate: Wed Aug 9 14:01:12 2017 +0100

    lib/math.c: implement __udivmoddi4
   
    Some code compiled by gcc 7 requires this.
   
    Signed-off-by: Wei Liu <[hidden email]>
    Reviewed-by: Samuel Thibault <[hidden email]>
---
 lib/math.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/lib/math.c b/lib/math.c
index 561393e..b98cc1d 100644
--- a/lib/math.c
+++ b/lib/math.c
@@ -6,6 +6,7 @@
  *        File: math.c
  *      Author: Rolf Neugebauer ([hidden email])
  *     Changes:
+ *        Implement __udivmoddi4 (Wei Liu <[hidden email]>)
  *              
  *        Date: Aug 2003
  *
@@ -397,6 +398,15 @@ __umoddi3(u_quad_t a, u_quad_t b)
 }
 
 /*
+ * Returns the quotient and places 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
  */
--
generated by git-patchbot for /home/xen/git/mini-os.git#master

_______________________________________________
Xen-changelog mailing list
[hidden email]
https://lists.xenproject.org/xen-changelog
Loading...