mirror of
https://github.com/open-goal/jak-project
synced 2026-09-06 11:20:54 -04:00
[OpenGOAL] make multiplication/divsion like GOAL and support in decompiler (#483)
* support in compiler * multiplication in the decompiler * update divisions
This commit is contained in:
@@ -1045,10 +1045,10 @@
|
||||
)
|
||||
)
|
||||
((< f0-2 0.2)
|
||||
(set! arg0 (shl arg0 2))
|
||||
(set! arg0 (* arg0 4))
|
||||
)
|
||||
((< f0-2 0.3)
|
||||
(set! arg0 (shl arg0 1))
|
||||
(set! arg0 (* arg0 2))
|
||||
)
|
||||
)
|
||||
)
|
||||
@@ -1489,7 +1489,7 @@
|
||||
arg0
|
||||
)
|
||||
(let ((s2-0 *print-column*))
|
||||
(set! *print-column* (the-as binteger (shl (shl arg1 2) 3)))
|
||||
(set! *print-column* (the-as binteger (* (* arg1 4) 8)))
|
||||
(inspect arg0)
|
||||
(set! *print-column* s2-0)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user