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

bit operations in Kawa

This page is part of the web mail archives of SRFI 33 from before July 7th, 2015. The new archives for SRFI 33 contain all messages, not just those from before July 7th, 2015.

Kawa follows the Guile names:

logand i1 ...
logior i1 ...
logxor i1 ...
lognot i
logtest i j - same as (not (zero? (logand i j)))
logbit? i pos
logop op x y - Perform one of the 16 bitwise operations of
  x and y, depending on op.
arithmetic-shift i j
ash i j (synonym for arithmetic-shift)
logcount i
integer-length i
bit-extract n start end
	--Per Bothner
per@xxxxxxxxxxx   http://www.bothner.com/per/