mirror of
https://github.com/zeldaret/ss
synced 2026-09-02 01:43:04 -04:00
sLib math, known symbols edition
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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,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
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user