[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
@@ -167,10 +167,7 @@
(object-new
allocation
type-to-make
(the-as
int
(+ (-> type-to-make size) (the-as uint (shl (+ length -1) 5)))
)
(the-as int (+ (-> type-to-make size) (the-as uint (* (+ length -1) 32))))
)
)
)
@@ -291,7 +288,7 @@
(defmethod asize-of engine ((obj engine))
(the-as
int
(+ (-> engine size) (the-as uint (shl (+ (-> obj allocated-length) -1) 5)))
(+ (-> engine size) (the-as uint (* (+ (-> obj allocated-length) -1) 32)))
)
)
@@ -542,7 +539,3 @@
)
0
)