[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:
water111
2021-05-14 18:43:12 -04:00
committed by GitHub
parent b3eb05e37f
commit d9f9d36f37
31 changed files with 441 additions and 326 deletions
@@ -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)
)