mirror of
https://github.com/open-goal/jak-project
synced 2026-09-01 09:53:12 -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:
@@ -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
|
||||
)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user