Email list hosting service & mailing list manager


bit operations in Kawa Per Bothner 18 Jul 2002 15:05 UTC

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
xxxxxx@bothner.com   http://www.bothner.com/per/