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

bit operations in Kawa



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/