jak-project/test/goalc/source_templates/arithmetic/ash.static.gc
2020-10-08 00:05:01 -04:00

10 lines
218 B
Common Lisp

(defun ash ((value integer) (shift-amount integer))
(declare (inline))
(if (> shift-amount 0)
(shlv value shift-amount)
(sarv value (- shift-amount))
)
)
(+ (ash (+ 1 2) (/ 6 2)) (ash (- 12) (- 1)))