aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-01-18 12:15:34 +0100
committerMattias Andrée <m@maandree.se>2026-01-18 12:21:47 +0100
commit795ebdcad90dd44ae5785ba5b6cb60b909ed15af (patch)
tree29492090b0bfbf15f430ddd870c500ac8e21a3fc
parentFix documentation (diff)
downloadlibj2-795ebdcad90dd44ae5785ba5b6cb60b909ed15af.tar.gz
libj2-795ebdcad90dd44ae5785ba5b6cb60b909ed15af.tar.bz2
libj2-795ebdcad90dd44ae5785ba5b6cb60b909ed15af.tar.xz
m
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to '')
-rw-r--r--libj2_j2i_lsh.312
1 files changed, 4 insertions, 8 deletions
diff --git a/libj2_j2i_lsh.3 b/libj2_j2i_lsh.3
index 70f0577..ed67470 100644
--- a/libj2_j2i_lsh.3
+++ b/libj2_j2i_lsh.3
@@ -63,10 +63,6 @@ in their name), detect overflow, that is,
if any discarded bit (any of the
.I b
most significant bits) was set.
-.PP
-The result is truncated to the least significant
-bits, as many as can be stored, in case of overflow;
-that is, modular arithmetics is used.
.PP
The arguments are assumed to be
@@ -76,7 +72,7 @@ The arguments are assumed to be
For functions with a return value, the functions
return +1 if any discarded bit was set and
.I a
-was positive, -1 if any discarded bit was set and
+was positive, -1 if any discarded bit was cleared and
.I a
was negative,
and 0 otherwise.
@@ -113,6 +109,6 @@ functions were added in version 1.1 of
.SH SEE ALSO
.BR libj2 (7),
-.BR libj2_j2i_rsh_j2i (3),
-.BR libj2_j2i_lrot_j2i (3),
-.BR libj2_j2i_rrot_j2i (3)
+.BR libj2_j2i_rsh (3),
+.BR libj2_j2i_lrot (3),
+.BR libj2_j2i_rrot (3)