diff options
author | jmc <> | 2022-12-27 17:10:06 +0000 |
---|---|---|
committer | jmc <> | 2022-12-27 17:10:06 +0000 |
commit | ddf0e80229d300fb3367dd1d2ca494b2baf147a0 (patch) | |
tree | c3a822c8accd682f0e2bcf3a5ae1934ce73dcaa5 /src/lib/libc/stdlib/div.c | |
parent | ec80cc02af7fb5b42ef1b159a7175ab18d7464c0 (diff) | |
download | openbsd-ddf0e80229d300fb3367dd1d2ca494b2baf147a0.tar.gz openbsd-ddf0e80229d300fb3367dd1d2ca494b2baf147a0.tar.bz2 openbsd-ddf0e80229d300fb3367dd1d2ca494b2baf147a0.zip |
spelling fixes; from paul tagliamonte
any changes not taken noted on tech, but chiefly here i did not take the
cancelation - cancellation changes;
Diffstat (limited to 'src/lib/libc/stdlib/div.c')
-rw-r--r-- | src/lib/libc/stdlib/div.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libc/stdlib/div.c b/src/lib/libc/stdlib/div.c index beaa428c7a..5e6164f0bb 100644 --- a/src/lib/libc/stdlib/div.c +++ b/src/lib/libc/stdlib/div.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: div.c,v 1.6 2015/09/13 08:31:47 guenther Exp $ */ | 1 | /* $OpenBSD: div.c,v 1.7 2022/12/27 17:10:06 jmc Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 1990 Regents of the University of California. | 3 | * Copyright (c) 1990 Regents of the University of California. |
4 | * All rights reserved. | 4 | * All rights reserved. |
@@ -46,7 +46,7 @@ div(int num, int denom) | |||
46 | * words, we should always truncate the quotient towards | 46 | * words, we should always truncate the quotient towards |
47 | * 0, never -infinity. | 47 | * 0, never -infinity. |
48 | * | 48 | * |
49 | * Machine division and remainer may work either way when | 49 | * Machine division and remainder may work either way when |
50 | * one or both of n or d is negative. If only one is | 50 | * one or both of n or d is negative. If only one is |
51 | * negative and r.quot has been truncated towards -inf, | 51 | * negative and r.quot has been truncated towards -inf, |
52 | * r.rem will have the same sign as denom and the opposite | 52 | * r.rem will have the same sign as denom and the opposite |