]> xenbits.xensource.com Git - people/jgross/xen.git/commitdiff
lib: correct __moddi3() description
authorJan Beulich <jbeulich@suse.com>
Wed, 9 Sep 2020 15:55:41 +0000 (17:55 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 9 Sep 2020 15:55:41 +0000 (17:55 +0200)
The remainder of a division, when non-zero, is specified to always be of
the same sign as the dividend. Bring a comment in line with the code it
describes.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/common/lib.c

index 8ebec811b3345f2004433302bba0a9756d36fa79..b2b799da44c59547b0efd3ca6733610826814420 100644 (file)
@@ -390,7 +390,7 @@ u64 __umoddi3(u64 a, u64 b)
  *  11 %  5 =  1
  * -11 %  5 = -1
  *  11 % -5 =  1
- * -11 % -5 =  1
+ * -11 % -5 = -1
  */
 s64 __moddi3(s64 a, s64 b)
 {