Index
All Packages
All Categories
By Author

ap (2)
cp (3)
dp (3)
exe (3)
gui (0)
gui/gtk (0)
gui/tk (4)
io (1)
lib (9)
math (0)
net (9)
nlp (18)
op (4)
os (1)
program (3)
sp (1)
tool (9)
wp (2)
xml (2)

Bitvector

type:package
id:mogul:/spiessens/bitvector
section:mogul:/spiessens
version:1.0
blurb:Operations on virtually infinite bit vectors
author:Fred Spiessens
category:lib
download:spiessens-bitvector__1.2.5__source__1.0.pkg
spiessens-bitvector__1.3.0__source__1.0.pkg
provides:x-ozlib://spiessens/base/bitvector.so
A library of bit operations implemented on top of the gmp (Gnu Multi Precision) library. For reasons of efficiency, the bit operations [clrbit, setbit, and, 'or', xor, not, set]  update the state of the first argument. Only BitVector.new creates a new BitVector and returns it. Array-like dot operations are provided in the following way: X.N provides the Nth bit of BitVector X. X.N:=Y sets the Nth bit of X to Y provided Y is equal to 0 or 1, and if used as a function will return the value of X.N before the assignment.