[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen staging] lib: correct __moddi3() description
commit 033b534be50b0c53cf32171e8b013df505758c13 Author: Jan Beulich <jbeulich@xxxxxxxx> AuthorDate: Wed Sep 9 17:55:41 2020 +0200 Commit: Jan Beulich <jbeulich@xxxxxxxx> CommitDate: Wed Sep 9 17:55:41 2020 +0200 lib: correct __moddi3() description 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@xxxxxxxx> Acked-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> --- xen/common/lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/common/lib.c b/xen/common/lib.c index 8ebec811b3..b2b799da44 100644 --- a/xen/common/lib.c +++ b/xen/common/lib.c @@ -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) { -- generated by git-patchbot for /home/xen/git/xen.git#staging
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |