aboutsummaryrefslogtreecommitdiffhomepage
path: root/theories/PArith/BinPosDef.v
diff options
context:
space:
mode:
Diffstat (limited to 'theories/PArith/BinPosDef.v')
-rw-r--r--theories/PArith/BinPosDef.v7
1 files changed, 2 insertions, 5 deletions
diff --git a/theories/PArith/BinPosDef.v b/theories/PArith/BinPosDef.v
index cf7e450f4..9b6081176 100644
--- a/theories/PArith/BinPosDef.v
+++ b/theories/PArith/BinPosDef.v
@@ -478,11 +478,8 @@ Fixpoint lxor (p q:positive) : N :=
(** Shifts. NB: right shift of 1 stays at 1. *)
-(*
-Definition shiftl_nat (p:positive)(n:nat) := iter_nat n _ xO p.
-
-Definition shiftr_nat (p:positive)(n:nat) := iter_nat n _ div2 p.
-*)
+Definition shiftl_nat (p:positive)(n:nat) := nat_iter n xO p.
+Definition shiftr_nat (p:positive)(n:nat) := nat_iter n div2 p.
Definition shiftl (p:positive)(n:N) :=
match n with