mirror of
https://github.com/zeldaret/tp
synced 2026-05-23 06:54:28 -04:00
2275eb710b
* Work on J2DMaterialFactory * J3DUClipper OK * Work on JAISoundStarter * JAISoundHandles OK * JAISoundInfo OK * Fix JAISound::isStopping * Work on J2DTextBoxEx * dspproc OK * osdsp OK * osdsp_task OK * Work on dsptask * Import some JASCalc code * JASCallback OK * JASOscillator OK * JASLfo OK
31 lines
896 B
C++
31 lines
896 B
C++
#ifndef JASCALC_H
|
|
#define JASCALC_H
|
|
|
|
#include "dolphin/types.h"
|
|
#include "MSL_C/MSL_Common/Src/limits"
|
|
|
|
struct JASCalc {
|
|
/* 8028F2E8 */ static void imixcopy(s16 const*, s16 const*, s16*, u32);
|
|
/* 8028F318 */ static void bcopyfast(void const*, void*, u32);
|
|
/* 8028F354 */ static void bcopy(void const*, void*, u32);
|
|
/* 8028F454 */ static void bzerofast(void*, u32);
|
|
/* 8028F480 */ static void bzero(void*, u32);
|
|
/* 8028F578 */ static f32 pow2(f32);
|
|
template <typename A, typename B>
|
|
static A clamp(B x); /* {
|
|
if (std::numeric_limits<A>::min() >= x)
|
|
return std::numeric_limits<A>::min();
|
|
if (x >= std::numeric_limits<A>::max())
|
|
return std::numeric_limits<A>::max();
|
|
return x;
|
|
} */
|
|
|
|
f32 fake1();
|
|
f32 fake2(long x);
|
|
f32 fake3();
|
|
|
|
static u8 const CUTOFF_TO_IIR_TABLE[1024];
|
|
};
|
|
|
|
#endif /* JASCALC_H */
|