diff options
| author | lepelog <lepelog@users.noreply.github.com> | 2021-02-19 16:51:02 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-19 10:51:02 -0500 |
| commit | 5c83d2532c610dc9eb5fb4f36c250174c79964e4 (patch) | |
| tree | 6ce0030966f7095704ec09f70f96855444e711d5 /libs/SSystem/SComponent/c_lib.cpp | |
| parent | bbf1d1c34c015fe92d326fbab6f241b1f6c7fb4f (diff) | |
Decompile some SComponent data and some MSL_C.PPCEABI.bare.H headers (#115)
* data for c_angle
* data c_sxyz
* partially migrated c_xyz data
* c_xyz data
* c_xyz data decomp
* c_math data
* c_math data
* c_lib data, some cleanup
* rename some unnamed functions and create header for them
* header for string functions
* format and fix fabsf
* cleanup
* remove more unneded function prototypes
* move fpclassify to math.h
Diffstat (limited to 'libs/SSystem/SComponent/c_lib.cpp')
| -rw-r--r-- | libs/SSystem/SComponent/c_lib.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/libs/SSystem/SComponent/c_lib.cpp b/libs/SSystem/SComponent/c_lib.cpp index 877ae8ee80..43429b9002 100644 --- a/libs/SSystem/SComponent/c_lib.cpp +++ b/libs/SSystem/SComponent/c_lib.cpp @@ -3,6 +3,16 @@ #include "SComponent/c_lib.h" #include "JSystem/JMath/JMath.h" #include "SComponent/c_math.h" +#include "msl_c/string.h" + +static const f32 lbl_804551E0 = 0; +static const f64 lbl_804551E8 = 0.5; // 0x3fe0000000000000 +static const f64 lbl_804551F0 = 3.0; // 0x4008000000000000 +static const f64 lbl_804551F8 = 0.0; +// static const u8 lbl_80455200[4] = { 0x2e, 0xaf, 0xeb, 0xff }; +// static const u8 lbl_80455204[4] = { 0x00, 0x00, 0x00, 0x00 }; // +// padding +static const s64 lbl_80455200 = 0x2eafebff00000000; extern "C" { int abs(int); @@ -11,9 +21,7 @@ void __mi__4cXyzCFRC3Vec(void); void __ml__4cXyzCFf(void); void __ne__4cXyzCFRC3Vec(void); void cM_atan2s__Fff(void); -void memcpy(void*, const void*, int); void normZP__4cXyzCFv(void); -void* memset(void* dest, int ch, u32 count); } // cLib_memCpy__FPvPCvUl |
