From 9d29d2925dd10997ebd04d9500c0b06c2e63c109 Mon Sep 17 00:00:00 2001 From: Kent Slaney Date: Sat, 19 Oct 2024 10:33:10 -0700 Subject: [PATCH] update numbers and operations tables in order to match HVM2.pdf section 6.6 --- docs/syntax.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/syntax.md b/docs/syntax.md index f13b2c60..76e80c8e 100644 --- a/docs/syntax.md +++ b/docs/syntax.md @@ -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. @@ -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.