diff options
author | Jason Gross <jagro@google.com> | 2016-08-23 16:27:15 -0700 |
---|---|---|
committer | Jason Gross <jagro@google.com> | 2016-08-23 16:27:15 -0700 |
commit | f9f4aa9629e1e9ad82095d9b6600d1645351873c (patch) | |
tree | dd694a6a4ee62d657b9f5706e0396046a05a9af4 /src/BoundedArithmetic/ArchitectureToZLike.v | |
parent | 6897a4f42c86c4a6bfdbab6887276e7334317661 (diff) |
Weaken the condition on smaller_bound
Diffstat (limited to 'src/BoundedArithmetic/ArchitectureToZLike.v')
-rw-r--r-- | src/BoundedArithmetic/ArchitectureToZLike.v | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/BoundedArithmetic/ArchitectureToZLike.v b/src/BoundedArithmetic/ArchitectureToZLike.v index e30fcfd09..cd221c10d 100644 --- a/src/BoundedArithmetic/ArchitectureToZLike.v +++ b/src/BoundedArithmetic/ArchitectureToZLike.v @@ -21,7 +21,9 @@ Section fancy_machine_p256_montgomery_foundation. decode_small := decode; Mod_SmallBound v := fst v; DivBy_SmallBound v := snd v; - DivBy_SmallerBound v := shrd (snd v) (fst v) smaller_bound_exp; + DivBy_SmallerBound v := if smaller_bound_exp =? n + then snd v + else shrd (snd v) (fst v) smaller_bound_exp; Mul x y := mulhwll (W := tuple _ 2) (sprl x 0) (sprl y 0); CarryAdd x y := adc x y false; CarrySubSmall x y := subc x y false; |