mirror of
https://github.com/open-goal/jak-project
synced 2026-07-11 07:25:37 -04:00
[decompiler] Make addition nicer (#733)
* temp * update refs * update reference * fix tests
This commit is contained in:
@@ -35,10 +35,7 @@
|
||||
(object-new
|
||||
allocation
|
||||
type-to-make
|
||||
(+
|
||||
(+ (/ (logand -8 (+ length 7)) 8) -1)
|
||||
(the-as int (-> type-to-make size))
|
||||
)
|
||||
(+ (/ (logand -8 (+ length 7)) 8) -1 (-> type-to-make size))
|
||||
)
|
||||
)
|
||||
)
|
||||
@@ -58,10 +55,7 @@
|
||||
(defmethod asize-of bit-array ((obj bit-array))
|
||||
(the-as
|
||||
int
|
||||
(+
|
||||
(-> obj type size)
|
||||
(the-as uint (/ (logand -8 (+ (-> obj allocated-length) 7)) 8))
|
||||
)
|
||||
(+ (-> obj type size) (/ (logand -8 (+ (-> obj allocated-length) 7)) 8))
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user