diff options
| author | Robert Norton | 2019-06-17 14:25:01 +0100 |
|---|---|---|
| committer | Robert Norton | 2019-06-17 14:25:01 +0100 |
| commit | 2dd28164e40241a2117142fbb197c967740f196d (patch) | |
| tree | 5aa43303ab9f6c88de96b01743295abb36c82ceb /lib/sail.h | |
| parent | 5de71f5be6e729184e122cf26bcb9a8ed0a40416 (diff) | |
Implement a count_leading_zeros builtin for ocaml and c. This may be a slight performance improvement and keeps compatibility with smt backend that already had a builtin for this because it can't handle the loop in the sail version. Will need implementations for prover backends.
Diffstat (limited to 'lib/sail.h')
| -rw-r--r-- | lib/sail.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -262,6 +262,7 @@ fbits fast_sign_extend(const fbits op, const uint64_t n, const uint64_t m); fbits fast_sign_extend2(const sbits op, const uint64_t m); void length_lbits(sail_int *rop, const lbits op); +void count_leading_zeros(sail_int *rop, const lbits op); bool eq_bits(const lbits op1, const lbits op2); bool EQUAL(lbits)(const lbits op1, const lbits op2); |
