diff options
author | David Robillard <d@drobilla.net> | 2018-08-19 13:48:09 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-09-29 14:48:35 +0200 |
commit | 208bd909338a197f2752c7d5336de7d51b8a405b (patch) | |
tree | d4c5a37e67bcf34676fca70e4af3e5360eb292c2 /test/test_hilbert.cpp | |
parent | 8a0da948388b02fa7ce3d39edd8beff9fc4e197a (diff) | |
download | chilbert-208bd909338a197f2752c7d5336de7d51b8a405b.tar.gz chilbert-208bd909338a197f2752c7d5336de7d51b8a405b.tar.bz2 chilbert-208bd909338a197f2752c7d5336de7d51b8a405b.zip |
Factor out common operations for multi-rack bit vectors
Diffstat (limited to 'test/test_hilbert.cpp')
-rw-r--r-- | test/test_hilbert.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_hilbert.cpp b/test/test_hilbert.cpp index e3a0daf..20646a2 100644 --- a/test/test_hilbert.cpp +++ b/test/test_hilbert.cpp @@ -70,7 +70,7 @@ to_big_int(const T& vec) mpz_t ia; mpz_init(ia); mpz_import( - ia, vec.num_racks(), -1, sizeof(chilbert::FBV_UINT), 0, 0, vec.racks()); + ia, vec.num_racks(), -1, sizeof(chilbert::FBV_UINT), 0, 0, vec.data()); const mpz_class num(ia); mpz_clear(ia); return num; @@ -83,7 +83,7 @@ from_big_int(const mpz_class& num) { T vec = make_zero_bitvec<T, M>(); size_t count = 0; - mpz_export(vec.racks(), + mpz_export(vec.data(), &count, -1, sizeof(chilbert::FBV_UINT), |