[Gmp-commit] /var/hg/gmp: doc: Mention shifts in bit manipulation

mercurial at gmplib.org mercurial at gmplib.org
Sat May 8 17:34:17 UTC 2021


details:   /var/hg/gmp/rev/632506b00743
changeset: 18214:632506b00743
user:      Marc Glisse <marc.glisse at inria.fr>
date:      Sat May 08 19:34:05 2021 +0200
description:
doc: Mention shifts in bit manipulation

diffstat:

 ChangeLog    |  4 ++++
 doc/gmp.texi |  3 +++
 2 files changed, 7 insertions(+), 0 deletions(-)

diffs (24 lines):

diff -r aebf32c3f5fd -r 632506b00743 ChangeLog
--- a/ChangeLog	Sun May 02 09:25:01 2021 +0200
+++ b/ChangeLog	Sat May 08 19:34:05 2021 +0200
@@ -1,3 +1,7 @@
+2021-05-08  Marc Glisse  <marc.glisse at inria.fr>
+
+	* doc/gmp.texi: Mention shifts in bit manipulation.
+
 2021-03-11  Torbjörn Granlund  <tg at gmplib.org>
 
 	* longlong.h: Disable s390 patterns which makes clang barf.
diff -r aebf32c3f5fd -r 632506b00743 doc/gmp.texi
--- a/doc/gmp.texi	Sun May 02 09:25:01 2021 +0200
+++ b/doc/gmp.texi	Sat May 08 19:34:05 2021 +0200
@@ -3875,6 +3875,9 @@
 Test bit @var{bit_index} in @var{op} and return 0 or 1 accordingly.
 @end deftypefun
 
+Shifting is also possible using multiplication (@ref{Integer Arithmetic}) and
+division (@ref{Integer Division}), in particular the @code{2exp} functions.
+
 @node I/O of Integers, Integer Random Numbers, Integer Logic and Bit Fiddling, Integer Functions
 @comment  node-name,  next,  previous,  up
 @section Input and Output Functions


More information about the gmp-commit mailing list