jak-project/test/goalc/source_templates/arithmetic/shift-fixed.static.gc
water111 21fbdce7aa
[Compiler] Bitfield Types (#146)
* add the ability to define and read bitfield types

* new set

* add bitfield setting

* add static bitfields
2020-11-29 18:01:30 -05:00

2 lines
151 B
Common Lisp

(+ (shl 2 3) (shl 1 0) (shl 0 4) (shr 2 3) (shr 10 2) (shl -2 1) (sar -16 2))
;; 16 1 0 0 2 -4 -4