Files
jak-project/test/goalc/source_templates/arithmetic/divide-signs.static.gc
T
water111 b263e33e94 [goalc] fix mod bug and add div tests (#1296)
* fix mod bug and add div tests

* update changelog
2022-04-11 20:53:24 -04:00

7 lines
296 B
Common Lisp

(_format #t "~X ~X ~X ~X~%"
(/ -10 2) ;; should be -5
(/ (the uint -10) 2) ;; should use 64-bit shift logical: #x7ffffffffffffffb
(/ -10 3) ;; should be -3
(/ (the uint -10) 3) ;; should use integer unsigned divide: #x55555552
)