diff options
author | John Baldwin <jhb@FreeBSD.org> | 2023-07-01 21:43:53 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2023-07-01 21:43:53 +0000 |
commit | 84deca4d8ca2e188b233a45d503443b17088c788 (patch) | |
tree | a40fdb0d4ab440bb115644878dda70dc5855377d /sys | |
parent | df11fb9bf0421ad11cfbc8834ca393a1a0c2748d (diff) | |
download | src-84deca4d8ca2e188b233a45d503443b17088c788.tar.gz src-84deca4d8ca2e188b233a45d503443b17088c788.zip |
libkern: Trim OBE comment from divmoddi routines.
-1/2 is defined to be 0 in modern C.
Reviewed by: jrtc27
Differential Revision: https://reviews.freebsd.org/D40833
Diffstat (limited to 'sys')
-rw-r--r-- | sys/libkern/divdi3.c | 1 | ||||
-rw-r--r-- | sys/libkern/divmoddi4.c | 1 | ||||
-rw-r--r-- | sys/libkern/moddi3.c | 3 |
3 files changed, 0 insertions, 5 deletions
diff --git a/sys/libkern/divdi3.c b/sys/libkern/divdi3.c index 11c34ed72fa0..8e04a81abdba 100644 --- a/sys/libkern/divdi3.c +++ b/sys/libkern/divdi3.c @@ -40,7 +40,6 @@ __FBSDID("$FreeBSD$"); /* * Divide two signed quads. - * ??? if -1/2 should produce -1 on this machine, this code is wrong */ quad_t __divdi3(quad_t a, quad_t b) diff --git a/sys/libkern/divmoddi4.c b/sys/libkern/divmoddi4.c index 7c0a6a690f24..af0013532882 100644 --- a/sys/libkern/divmoddi4.c +++ b/sys/libkern/divmoddi4.c @@ -37,7 +37,6 @@ /* * Divide two signed quads. - * ??? if -1/2 should produce -1 on this machine, this code is wrong */ quad_t __divmoddi4(quad_t a, quad_t b, quad_t *rem) diff --git a/sys/libkern/moddi3.c b/sys/libkern/moddi3.c index 0e93b7d9f6eb..0dbff4bdce89 100644 --- a/sys/libkern/moddi3.c +++ b/sys/libkern/moddi3.c @@ -40,9 +40,6 @@ __FBSDID("$FreeBSD$"); /* * Return remainder after dividing two signed quads. - * - * XXX - * If -1/2 should produce -1 on this machine, this code is wrong. */ quad_t __moddi3(quad_t a, quad_t b) |