aboutsummaryrefslogtreecommitdiff
path: root/lux-jvm/source/luxc/lang
diff options
context:
space:
mode:
authorEduardo Julian2021-01-28 20:14:11 -0400
committerEduardo Julian2021-01-28 20:14:11 -0400
commit1797521191746640e761cc1b4973d46b8c403dee (patch)
tree197b60bf206f75c32a930b85910101c6d4c0d0f9 /lux-jvm/source/luxc/lang
parent43d28326ad59c74439b96343cc8f619ed7d90231 (diff)
Implemented arithmetic right-shift in terms of logic right-shift.
Diffstat (limited to 'lux-jvm/source/luxc/lang')
-rw-r--r--lux-jvm/source/luxc/lang/translation/jvm/extension/common.lux8
1 files changed, 3 insertions, 5 deletions
diff --git a/lux-jvm/source/luxc/lang/translation/jvm/extension/common.lux b/lux-jvm/source/luxc/lang/translation/jvm/extension/common.lux
index add0eefcc..fd86253d5 100644
--- a/lux-jvm/source/luxc/lang/translation/jvm/extension/common.lux
+++ b/lux-jvm/source/luxc/lang/translation/jvm/extension/common.lux
@@ -156,9 +156,8 @@
<op>
(_.wrap type.long)))]
- [i64::left_shift _.LSHL]
- [i64::arithmetic_right_shift _.LSHR]
- [i64::logical_right_shift _.LUSHR]
+ [i64::left_shift _.LSHL]
+ [i64::right_shift _.LUSHR]
)
(template [<name> <const> <type>]
@@ -329,8 +328,7 @@
(bundle.install "or" (binary i64::or))
(bundle.install "xor" (binary i64::xor))
(bundle.install "left-shift" (binary i64::left_shift))
- (bundle.install "logical-right-shift" (binary i64::logical_right_shift))
- (bundle.install "arithmetic-right-shift" (binary i64::arithmetic_right_shift))
+ (bundle.install "right-shift" (binary i64::right_shift))
(bundle.install "=" (binary i64::=))
(bundle.install "<" (binary i64::<))
(bundle.install "+" (binary i64::+))