diff options
| author | Alasdair Armstrong | 2018-06-07 18:15:05 +0100 |
|---|---|---|
| committer | Alasdair Armstrong | 2018-06-07 18:15:38 +0100 |
| commit | 6eaf3159474aa62b9afee843b0983dcfb23a4157 (patch) | |
| tree | cfd7fe7c1cb65794ee9f17d058eec8c063d5f5cf /lib | |
| parent | 45554f2893667d951e39c8049631a986c1683857 (diff) | |
Fix bug in add_bits optimization
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/sail.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -466,7 +466,7 @@ void replicate_bits(bv_t *rop, const bv_t op1, const mpz_t op2) { uint64_t fast_replicate_bits(const uint64_t shift, const uint64_t v, const int64_t times) { uint64_t r = v; for (int i = 1; i < times; ++i) { - r |= v << shift; + r |= (r << shift); } return r; } |
