| 1 |
From Coq Require Import ZArith. |
| 2 |
Require Export Crypto.Util.ZUtil.Hints.Core. |
| 3 |
|
| 4 |
#[global] |
| 5 |
Hint Rewrite <- Z.shiftr_div_pow2 Z.shiftr_mul_pow2 Z.shiftl_mul_pow2 Z.shiftl_div_pow2 using zutil_arith : convert_to_Ztestbit. |
| 6 |
|
| 7 |
#[global] |
| 8 |
Hint Rewrite Z.testbit_0_l Z.land_spec Z.lor_spec Z.lxor_spec : Ztestbit. |
| 9 |
#[global] |
| 10 |
Hint Rewrite Z.testbit_0_l Z.land_spec Z.lor_spec Z.lxor_spec : Ztestbit_full. |
| 11 |
#[global] |
| 12 |
Hint Rewrite Z.shiftl_spec Z.shiftr_spec Z.bits_m1 Z.lnot_spec using zutil_arith : Ztestbit. |
| 13 |
#[global] |
| 14 |
Hint Rewrite Z.testbit_neg_r using zutil_arith : Ztestbit. |
| 15 |
#[global] |
| 16 |
Hint Rewrite Bool.andb_true_r Bool.andb_false_r Bool.orb_true_r Bool.orb_false_r |
| 17 |
Bool.andb_true_l Bool.andb_false_l Bool.orb_true_l Bool.orb_false_l : Ztestbit. |