All of lore.kernel.org
 help / color / mirror / Atom feed
* [MINIOS PATCH] lib/math.c: implement __udivmoddi4
@ 2017-08-09 12:15 Wei Liu
  2017-08-09 12:29 ` Samuel Thibault
  0 siblings, 1 reply; 2+ messages in thread
From: Wei Liu @ 2017-08-09 12:15 UTC (permalink / raw)
  To: Minios-devel; +Cc: Xen-devel, Olaf Hering, Wei Liu, Samuel Thibault

Some code compiled by gcc 7 requires this.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
---
 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@dcs.gla.ac.uk)
  *     Changes: 
+ *        Implement __udivmoddi4 (Wei Liu <wei.liu2@citrix.com>)
  *              
  *        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@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [MINIOS PATCH] lib/math.c: implement __udivmoddi4
  2017-08-09 12:15 [MINIOS PATCH] lib/math.c: implement __udivmoddi4 Wei Liu
@ 2017-08-09 12:29 ` Samuel Thibault
  0 siblings, 0 replies; 2+ messages in thread
From: Samuel Thibault @ 2017-08-09 12:29 UTC (permalink / raw)
  To: Wei Liu; +Cc: Minios-devel, Xen-devel, Olaf Hering

Wei Liu, on mer. 09 août 2017 13:15:48 +0100, wrote:
> Some code compiled by gcc 7 requires this.
> 
> Signed-off-by: Wei Liu <wei.liu2@citrix.com>

Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>

> ---
>  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@dcs.gla.ac.uk)
>   *     Changes: 
> + *        Implement __udivmoddi4 (Wei Liu <wei.liu2@citrix.com>)
>   *              
>   *        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
> 

-- 
Samuel
> 	dvips -o $@ $<     
Faut faire gffe de pas te couper avec ton truc, t'as mis des ciseaux ($<)
partout :))
-+- Dom in Guide du linuxien pervers - "J'aime pas les Makefile !" -+-

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-08-09 12:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-09 12:15 [MINIOS PATCH] lib/math.c: implement __udivmoddi4 Wei Liu
2017-08-09 12:29 ` Samuel Thibault

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.