diff options
author | Jason Gross <jgross@mit.edu> | 2018-02-23 22:36:02 -0500 |
---|---|---|
committer | Jason Gross <jasongross9@gmail.com> | 2018-03-19 14:17:26 -0400 |
commit | 8d230ad9c22188b92dd88a12c673c8893edb5d10 (patch) | |
tree | d560c1f529102e4b59975afceea63663087f3201 /src | |
parent | e4b35cf49d4885fd0e5814f7d93a41b448998959 (diff) |
Add shiftl notation
Diffstat (limited to 'src')
-rw-r--r-- | src/Experiments/SimplyTypedArithmetic.v | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Experiments/SimplyTypedArithmetic.v b/src/Experiments/SimplyTypedArithmetic.v index 1bf876845..255175049 100644 --- a/src/Experiments/SimplyTypedArithmetic.v +++ b/src/Experiments/SimplyTypedArithmetic.v @@ -7012,6 +7012,9 @@ Module PrintingNotations. Notation "( out_t )( v >> count )" := ((ident.Z.cast out_t @@ (ident.Z.shiftr count @@ v))%expr) (format "( out_t )( v >> count )") : expr_scope. + Notation "( out_t )( v << count )" + := ((ident.Z.cast out_t @@ (ident.Z.shiftl count @@ v))%expr) + (format "( out_t )( v << count )") : expr_scope. Notation "( range )( v )" := ((ident.Z.cast range @@ Var v)%expr) (format "( range )( v )") : expr_scope. |