VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Simple bit-vectors. Treats an array of 32-bit integers as a bit vector. Expanded (and interface sli

David Qualls  (2 Submissions)   Math/Dates   VB 6.0   Unknown Difficulty   Sun 8th October 2006   Mon 8th February 2021

Simple bit-vectors. Treats an array of 32-bit integers as a bit vector. Expanded (and interface slightly changed; documentation also improved)

API Declarations


setbit (bitvect() As Long, posn As Long) As Long
clearbit (bitvect() As Long, posn As Long) As Long
togglebit (bitvect() As Long, posn As Long) As Long
' ----- all bits functions -----
bitsClearAll(bitvect() As Long)
bitsSetAll (bitvect() As Long)
bitsOrEq (altered() As Long, source() As Long)
bitsAndEq (altered() As Long, source() As Long)
bitsXorEq (altered() As Long, source() As Long)
bitsCompare (bv1() As Long, bv2() As Long) As Long
bits2string (bitvect() As Long) As String
string2bits (bitvect() As Long, bstr As String) As Long()
' ----- single integer functions -----
promoteSBits(shortValue As Integer) As Long
demoteHighBits(longValue As Long) As Integer
demoteLowBits(longValue As Long) As Integer
' ----- information functions -----
highestbit (bitvect() As Long) As Long
lowestbit (bitvect() As Long) As Long
' ----- test function -----
test_bits()


Rate Simple bit-vectors. Treats an array of 32-bit integers as a bit vector. Expanded (and interface sli (1(1 Vote))
Simple bit-vectors. Treats an array of 32-bit integers as a bit vector. Expanded (and interface sli.bas

Simple bit-vectors. Treats an array of 32-bit integers as a bit vector. Expanded (and interface sli Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters