sLib math, known symbols edition

This commit is contained in:
robojumper
2024-06-29 12:36:03 +02:00
parent 25015d8e9e
commit 4afb9d6e16
11 changed files with 239 additions and 15 deletions
+1
View File
@@ -12,6 +12,7 @@ extern "C" {
#include "rvl/OS/OSAudioSystem.h"
#include "rvl/OS/OSCache.h"
#include "rvl/OS/OSContext.h"
#include "rvl/OS/OSCrc.h"
#include "rvl/OS/OSError.h"
#include "rvl/OS/OSExec.h"
#include "rvl/OS/OSFastCast.h"
+13
View File
@@ -0,0 +1,13 @@
#ifndef RVL_SDK_OS_CRC_H
#define RVL_SDK_OS_CRC_H
#include <common.h>
#ifdef __cplusplus
extern "C" {
#endif
u32 OSCalcCRC32(const void *, u32);
#ifdef __cplusplus
}
#endif
#endif
+1 -1
View File
@@ -1,4 +1,4 @@
This library was ported from https://github.com/NSMBW-Community/NSMBW-Decomp/tree/master/include/dol/sLib
The state system in this library was ported from https://github.com/NSMBW-Community/NSMBW-Decomp/tree/master/include/dol/sLib
with differences/modifications outlined below:
## No inline destructors
+12
View File
@@ -0,0 +1,12 @@
#ifndef S_CRC_H
#define S_CRC_H
#include <common.h>
namespace sCrc {
u32 calcCRC(const void *ptr, u32 size);
} // namespace sCrc
#endif
+18
View File
@@ -0,0 +1,18 @@
#ifndef S_MATH_H
#define S_MATH_H
#include <common.h>
namespace sLib {
float addCalc(float *value, float target, float ratio, float maxStepSize, float minStepSize);
BOOL chase(short *value, short target, short stepSize);
BOOL chase(int *value, int target, int stepSize);
BOOL chase(float *value, float target, float stepSize);
BOOL chaseAngle(short *value, short target, short stepSize);
} // namespace sLib
#endif