Skip to content

Commit 101765b

Browse files
committed
Fix to svf calc_stat and version update
Fix to the calc_stat function where it correctly calls the calc_stat on the signs bvector and exponents and mantissas sparse vectors, and an update to version number
1 parent 2398833 commit 101765b

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/bmconst.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -243,12 +243,12 @@ template<bool T> struct _copyright
243243
static const unsigned _v[3]; ///< MAJOR.MINOR.PATCH version components
244244
};
245245

246-
#define BM_VERSION_MAJOR 8
247-
#define BM_VERSION_MINOR 0
248-
#define BM_VERSION_PATCH 1
246+
#define BM_VERSION_MAJOR 9
247+
#define BM_VERSION_MINOR 1
248+
#define BM_VERSION_PATCH 0
249249

250250
template<bool T> const char _copyright<T>::_p[] =
251-
"BitMagic Library. v.8.0.1 (c) 2002-2025 Anatoliy Kuznetsov.";
251+
"BitMagic Library. v.9.1.0 (c) 2002-2026 Anatoliy Kuznetsov.";
252252
template<bool T> const unsigned _copyright<T>::_v[3] =
253253
{ BM_VERSION_MAJOR, BM_VERSION_MINOR, BM_VERSION_PATCH };
254254

src/bmsparsevec_float.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -899,11 +899,11 @@ void sparse_vector_float<SV>::calc_stat(struct sparse_vector_float<SV>::statisti
899899
BM_ASSERT(st);
900900

901901
bm::bvector<>::statistics signStat;
902-
signs_.calc_stat(signStat);
902+
signs_.calc_stat(&signStat);
903903

904904
typename sparse_vector_u::statistics expStat, mantStat;
905-
exponents_.calc_stat(expStat);
906-
mantissas_.calc_stat(mantStat);
905+
exponents_.calc_stat(&expStat);
906+
mantissas_.calc_stat(&mantStat);
907907

908908
st->bit_blocks = signStat.bit_blocks + expStat.bit_blocks + mantStat.bit_blocks;
909909
st->gap_blocks = signStat.gap_blocks + expStat.gap_blocks + mantStat.gap_blocks;

0 commit comments

Comments
 (0)