diff options
Diffstat (limited to 'Hilbert/BigBitVec.hpp')
-rw-r--r-- | Hilbert/BigBitVec.hpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/Hilbert/BigBitVec.hpp b/Hilbert/BigBitVec.hpp index dee7b77..bea0c41 100644 --- a/Hilbert/BigBitVec.hpp +++ b/Hilbert/BigBitVec.hpp @@ -661,15 +661,12 @@ public: int fsb() const { - int c, i, j; - c = 0; - for ( i = 0; i < m_iRacks; i++ ) + for (int i = 0; i < m_iRacks; ++i ) { - j = m_pcRacks[i].fsb(); - if ( j < FBV_BITS ) - return c + j; - else - c += FBV_BITS; + const int j = m_pcRacks[i].fsb(); + if ( j ) { + return (i * FBV_BITS) + j; + } } return 0; } |