Skip to content

Commit

Permalink
update numbers and operations tables
Browse files Browse the repository at this point in the history
in order to match HVM2.pdf section 6.6
  • Loading branch information
kentslaney committed Oct 19, 2024
1 parent 71fb680 commit 9d29d29
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,8 @@ Currently, the 3 number types cannot be mixed.
| Bitwise And | x & y | int, uint |
| Bitwise Or | x \| y | int, uint |
| Bitwise Xor | x ^ y | int, uint |
| Bitwise Right Shift | x >> y | uint |
| Bitwise Left Shift | x << y | uint |

Hexadecimal and binary floating-point literals are also supported.

Expand Down Expand Up @@ -1173,6 +1175,8 @@ Currently, the 3 number types cannot be mixed.
| Bitwise And | (& x y) | int, uint |
| Bitwise Or | (\| x y) | int, uint |
| Bitwise Xor | (^ x y) | int, uint |
| Bitwise Right Shift | (>> x y) | uint |
| Bitwise Left Shift | (<< x y) | uint |

Hexadecimal and binary floating-point literals are also supported.

Expand Down

0 comments on commit 9d29d29

Please sign in to comment.