diff options
author | Jason Gross <jgross@mit.edu> | 2017-11-01 12:17:48 -0400 |
---|---|---|
committer | Jason Gross <jgross@mit.edu> | 2017-11-01 12:17:48 -0400 |
commit | a9a84c9349f40018f0c215fb2035b65da2b2d6cd (patch) | |
tree | 12a4523cd94f73101b08a6e6aa9af64791162b8b /src/Compilers/Z/HexNotationConstants.v | |
parent | e066ca96805c51710873254e780f4b2aa8eebdce (diff) |
Add more constant notations
Diffstat (limited to 'src/Compilers/Z/HexNotationConstants.v')
-rw-r--r-- | src/Compilers/Z/HexNotationConstants.v | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Compilers/Z/HexNotationConstants.v b/src/Compilers/Z/HexNotationConstants.v index 16e718309..7889b2a28 100644 --- a/src/Compilers/Z/HexNotationConstants.v +++ b/src/Compilers/Z/HexNotationConstants.v @@ -23,6 +23,7 @@ nums = tuple(sorted(set(systematic_nums + [ 765, 977, 5311, + 65531, 114687, 121665, 130307, @@ -55,6 +56,7 @@ nums = tuple(sorted(set(systematic_nums + [ 4194285, 4194287, 4194293, + 8323583, 8388491, 8388577, 8388581, @@ -996,6 +998,10 @@ Notation "'0x8001'" (* 32769 (0x8001) *) := (Const 32769%Z). Notation "'0x8001'" (* 32769 (0x8001) *) := (Const WO~1~0~0~0~0~0~0~0~0~0~0~0~0~0~0~1). +Notation "'0xfffb'" (* 65531 (0xfffb) *) + := (Const 65531%Z). +Notation "'0xfffb'" (* 65531 (0xfffb) *) + := (Const WO~1~1~1~1~1~1~1~1~1~1~1~1~1~0~1~1). Notation "'0xffff'" (* 65535 (0xffff) *) := (Const 65535%Z). Notation "'0xffff'" (* 65535 (0xffff) *) @@ -1208,6 +1214,10 @@ Notation "'0x400001'" (* 4194305 (0x400001) *) := (Const 4194305%Z). Notation "'0x400001'" (* 4194305 (0x400001) *) := (Const WO~0~0~0~0~0~0~0~0~0~1~0~0~0~0~0~0~0~0~0~0~0~0~0~0~0~0~0~0~0~0~0~1). +Notation "'0x7f01ff'" (* 8323583 (0x7f01ff) *) + := (Const 8323583%Z). +Notation "'0x7f01ff'" (* 8323583 (0x7f01ff) *) + := (Const WO~0~0~0~0~0~0~0~0~0~1~1~1~1~1~1~1~0~0~0~0~0~0~0~1~1~1~1~1~1~1~1~1). Notation "'0x7fff8b'" (* 8388491 (0x7fff8b) *) := (Const 8388491%Z). Notation "'0x7fff8b'" (* 8388491 (0x7fff8b) *) |