diff options
author | sc | 2000-11-28 14:19:35 +0000 |
---|---|---|
committer | sc | 2000-11-28 14:19:35 +0000 |
commit | 325530e630c68c7c10a2f4339f5b43434fcd0329 (patch) | |
tree | 8e655f6002598176ed0e9e5e0ba3bcb0971c434d /utils/BitField.cc | |
parent | b8af7905fd61ce5cb2c94da78ccc9e051f9ceddc (diff) | |
download | ivy-league-325530e630c68c7c10a2f4339f5b43434fcd0329.zip ivy-league-325530e630c68c7c10a2f4339f5b43434fcd0329.tar.gz ivy-league-325530e630c68c7c10a2f4339f5b43434fcd0329.tar.bz2 ivy-league-325530e630c68c7c10a2f4339f5b43434fcd0329.tar.xz |
Incorporation into IvyLeague
Ccu -> Ivl
ccu -> ivl
Smart pointers disappear (too dangerous)
Imakefile disappears (Makefile now)
An empty cplus_bugs.h has been created locally
Diffstat (limited to 'utils/BitField.cc')
-rw-r--r-- | utils/BitField.cc | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/utils/BitField.cc b/utils/BitField.cc index ad9532a..d1fabc4 100644 --- a/utils/BitField.cc +++ b/utils/BitField.cc @@ -12,18 +12,17 @@ * $CurLog$ */ - #include "BitField.h" #include <memory.h> #include <stdio.h> -CcuBitField :: CcuBitField () +IvlBitField :: IvlBitField () { memset ((char*) Chunks, 0, 8 * sizeof (long)); } -CcuBitRef -CcuBitField :: operator [] (int i) +IvlBitRef +IvlBitField :: operator [] (int i) { if (i < 0 || i >= 8 * sizeof (long)) { fprintf (stderr, "Bad access to bitfield: index %d\n", i); @@ -31,16 +30,16 @@ CcuBitField :: operator [] (int i) } short q = i / sizeof (long); short r = i - q * sizeof (long); - return CcuBitRef (*this, q, r); + return IvlBitRef (*this, q, r); } -CcuBitRef :: operator bool () const +IvlBitRef :: operator bool () const { return bool (Field.Chunks [Chunk] & (1L << Offset)); } bool -CcuBitRef :: operator = (bool b) const +IvlBitRef :: operator = (bool b) const { long* l = Field.Chunks + Chunk; long m = (1L << Offset); |