diff options
author | 2017-10-02 15:45:31 -0400 | |
---|---|---|
committer | 2017-10-07 00:05:30 -0400 | |
commit | 3d77eaabd3aac64f1ab8b01a06b964b065889432 (patch) | |
tree | 0726c5aafde263f8b53743169e91c7c2739ddc78 /src | |
parent | 76965f85cf742fb2fe9f75d7187da135fbd0eb57 (diff) |
Factor out the compute bit of the compute notation in curve params
This will let us call it from Ltac; notations with tactics don't internalize identifiers correctly at tactic definition time
Diffstat (limited to 'src')
-rw-r--r-- | src/Specific/CurveParameters.v | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Specific/CurveParameters.v b/src/Specific/CurveParameters.v index 79282757d..aa679a4d3 100644 --- a/src/Specific/CurveParameters.v +++ b/src/Specific/CurveParameters.v @@ -45,8 +45,10 @@ Module FillCurveParameters (P : CurveParameters). | Some v => v | None => default end). + Ltac do_compute v := + let v' := (eval vm_compute in v) in v'. Notation compute v - := (ltac:(let v' := v in let v' := (eval vm_compute in v') in exact v')) + := (ltac:(let v' := do_compute v in exact v')) (only parsing). Definition sz := P.sz. Definition bitwidth := P.bitwidth. |