emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master cec248ec31: ; * src/data.c (Fash): Improve wording of the doc str


From: Eli Zaretskii
Subject: master cec248ec31: ; * src/data.c (Fash): Improve wording of the doc string.
Date: Wed, 20 Jul 2022 15:04:36 -0400 (EDT)

branch: master
commit cec248ec315e93a99818610805e57064f762db10
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    ; * src/data.c (Fash): Improve wording of the doc string.
---
 src/data.c | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/src/data.c b/src/data.c
index b2fcdaebee..b19e10582e 100644
--- a/src/data.c
+++ b/src/data.c
@@ -3517,11 +3517,16 @@ representation.  */)
 }
 
 DEFUN ("ash", Fash, Sash, 2, 2, 0,
-       doc: /* Return VALUE with its bits shifted left by COUNT.
-If COUNT is negative, shifting is actually to the right.
-The return value is always VALUE multiplied by 2 to the power of COUNT,
-rounding down (towards negative infinity).
-VALUE and COUNT must be integers.  */)
+       doc: /* Return integer VALUE with its bits shifted left by COUNT bit 
positions.
+If COUNT is negative, shift VALUE to the right instead.
+VALUE and COUNT must be integers.
+Mathematically, the return value is VALUE multiplied by 2 to the
+power of COUNT, rounded down.  If the result is non-zero, its sign
+is the same as that of VALUE.
+In terms of bits, when COUNT is positive, the function moves
+the bits of VALUE to the left, adding zero bits on the right; when
+COUNT is negative, it moves the bits of VALUE to the right,
+discarding bits.  */)
   (Lisp_Object value, Lisp_Object count)
 {
   CHECK_INTEGER (value);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]