jak-project/test/goalc/source_templates/arithmetic/ash.static.gc

10 lines
218 B
Common Lisp
Raw Normal View History

2020-09-14 20:24:05 -04:00
(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)))