jak-project/test/decompiler/reference/jak3/engine/math
water111 2a4d3d7a4a
[decompiler] More inline vector functions (#3861)
This adds more recognition for inlined vector functions to the
decompiler, which can clean up a bunch of ugly looking code/`rlet`s.


![image](https://github.com/user-attachments/assets/1f7b4627-81bd-481b-b828-76b9f7ba13b3)

Unfortunately, this changes the numbering of ops in the decomp, since
all the vector instructions get combined in a single "operation" by the
decompiler. I really tried to avoid having this ever happen in the
decompiler and this is one of the few cases where it has. So I had to
update a bunch of type casts.

For that reason I haven't turned this on in Jak 2 yet, although I am
planning to do that at some point. (probably at the same time as porting
back a bunch of jak 3 improvements to jak 2)

---------

Co-authored-by: water111 <awaterford1111445@gmail.com>
2025-02-16 15:59:17 -05:00
..
euler-h_REF.gc decomp3: some engine files (#3319) 2024-01-20 10:42:51 -05:00
euler_REF.gc [decompiler] Cleanup for Jak 3 (#3845) 2025-01-20 10:31:29 -05:00
math_REF.gc [decompiler] Update vector ops, reduce casts (#3849) 2025-01-20 16:32:58 -05:00
matrix-compose_REF.gc [decompiler] Cleanup for Jak 3 (#3845) 2025-01-20 10:31:29 -05:00
matrix-h_REF.gc [decompiler] Cleanup for Jak 3 (#3845) 2025-01-20 10:31:29 -05:00
matrix_REF.gc [decompiler] Update vector ops, reduce casts (#3849) 2025-01-20 16:32:58 -05:00
quaternion-h_REF.gc decomp3: some engine files (#3319) 2024-01-20 10:42:51 -05:00
quaternion_REF.gc [decompiler] More inline vector functions (#3861) 2025-02-16 15:59:17 -05:00
transform-h_REF.gc decomp3: some engine files (#3319) 2024-01-20 10:42:51 -05:00
transform_REF.gc [decompiler] Cleanup for Jak 3 (#3845) 2025-01-20 10:31:29 -05:00
transformq-h_REF.gc [decompiler] Cleanup for Jak 3 (#3845) 2025-01-20 10:31:29 -05:00
transformq_REF.gc [decompiler] Update vector ops, reduce casts (#3849) 2025-01-20 16:32:58 -05:00
trigonometry-h_REF.gc decomp3: some engine files (#3319) 2024-01-20 10:42:51 -05:00
trigonometry_REF.gc [jak3] Decompile `gcommon` (#3321) 2024-01-20 12:33:39 -05:00
vector-h_REF.gc [decompiler] Update vector ops, reduce casts (#3849) 2025-01-20 16:32:58 -05:00
vector_REF.gc [decompiler] More inline vector functions (#3861) 2025-02-16 15:59:17 -05:00