match the hardest JSys function in random.o

This commit is contained in:
Joshua Andrew 2023-08-26 21:46:14 -04:00
parent c755dcb26f
commit 62e7b22719
7 changed files with 28 additions and 8 deletions

3
.gitignore vendored
View File

@ -34,4 +34,5 @@ Compilers.zip
Compilers/*
*.ninja
*.ninja_log
doxygen/*
doxygen/*
scripts/*

View File

@ -4,7 +4,7 @@ JMAQuatLerp__FPC10QuaternionPC10QuaternionfP10Quaternion,JMath.o,JMath.a,false
JMAVECScaleAdd__FPC3VecPC3VecP3Vecf,JMath.o,JMath.a,false
JMAVECLerp__FPC3VecPC3VecP3Vecf,JMath.o,JMath.a,false
JMAMTXApplyScale__FPA4_CfPA4_ffff,JMath.o,JMath.a,false
__ct__Q25JMath13TRandom_fast_FUl,random.o,JMath.a,false
__ct__Q25JMath13TRandom_fast_FUl,random.o,JMath.a,true
atan2___Q25JMath18TAtanTable<1024&#44;f>CFff,JMATrigonometric.o,JMath.a,false
__sinit_\JMATrigonometric_cpp,JMATrigonometric.o,JMath.a,false
get___Q25JMath18TAtanTable<1024&#44;f>CFff,JMATrigonometric.o,JMath.a,false

1 Symbol Name Object File Library Archive Matching
4 JMAVECScaleAdd__FPC3VecPC3VecP3Vecf JMath.o JMath.a false
5 JMAVECLerp__FPC3VecPC3VecP3Vecf JMath.o JMath.a false
6 JMAMTXApplyScale__FPA4_CfPA4_ffff JMath.o JMath.a false
7 __ct__Q25JMath13TRandom_fast_FUl random.o JMath.a false true
8 atan2___Q25JMath18TAtanTable<1024&#44;f>CFff JMATrigonometric.o JMath.a false
9 __sinit_\JMATrigonometric_cpp JMATrigonometric.o JMath.a false
10 get___Q25JMath18TAtanTable<1024&#44;f>CFff JMATrigonometric.o JMath.a false

View File

@ -1,6 +1,6 @@
{
"schemaVersion": 1,
"label": "JSystem",
"message": "3.461%",
"message": "3.57%",
"color": "blue"
}

View File

@ -9,7 +9,7 @@
| Object | Percentage (of Bytes) | Functions Done / Total Functions | Percentage (Functions) | Status
| ------------- | ------------- | ------------- | ------------- | -------------
| JKRHeap.o | 65.04065040650406% | 43 / 48 | 89.58333333333334% | :eight_pointed_black_star:
| JKRExpHeap.o | 12.492869366799772% | 8 / 40 | 20.0% | :eight_pointed_black_star:
| JKRExpHeap.o | 18.083285795778664% | 10 / 40 | 25.0% | :eight_pointed_black_star:
| JKRSolidHeap.o | 0.0% | 0 / 20 | 0.0% | :x:
| JKRUnitHeap.o | 0.0% | 0 / 26 | 0.0% | :x:
| JKRDisposer.o | 100.0% | 3 / 3 | 100.0% | :white_check_mark:
@ -90,8 +90,8 @@
| Symbol | Decompiled? |
| ------------- | ------------- |
| createRoot__10JKRExpHeapFib | :white_check_mark: |
| create__10JKRExpHeapFUlP7JKRHeapb | :x: |
| create__10JKRExpHeapFPvUlP7JKRHeapb | :x: |
| create__10JKRExpHeapFUlP7JKRHeapb | :white_check_mark: |
| create__10JKRExpHeapFPvUlP7JKRHeapb | :white_check_mark: |
| do_destroy__10JKRExpHeapFv | :white_check_mark: |
| __ct__10JKRExpHeapFPvUlP7JKRHeapb | :white_check_mark: |
| __dt__10JKRExpHeapFv | :x: |

View File

@ -9,7 +9,7 @@
| Object | Percentage (of Bytes) | Functions Done / Total Functions | Percentage (Functions) | Status
| ------------- | ------------- | ------------- | ------------- | -------------
| JMath.o | 0.0% | 0 / 5 | 0.0% | :x:
| random.o | 0.0% | 0 / 1 | 0.0% | :x:
| random.o | 100.0% | 1 / 1 | 100.0% | :white_check_mark:
| JMATrigonometric.o | 0.0% | 0 / 6 | 0.0% | :x:
@ -26,7 +26,7 @@
# random.o
| Symbol | Decompiled? |
| ------------- | ------------- |
| __ct__Q25JMath13TRandom_fast_FUl | :x: |
| __ct__Q25JMath13TRandom_fast_FUl | :white_check_mark: |
# JMATrigonometric.o

View File

@ -0,0 +1,12 @@
#pragma once
#include <revolution.h>
namespace JMath {
class TRandom_fast_ {
public:
TRandom_fast_(u32);
u32 mSeed; // _0
};
};

View File

@ -0,0 +1,7 @@
#include "JSystem/JMath/random.h"
namespace JMath {
TRandom_fast_::TRandom_fast_(u32 seed) : mSeed(seed) {
}
};