Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
JASCalc.h
Go to the documentation of this file.
1#ifndef JASCALC_H
2#define JASCALC_H
3
4#include "dolphin/types.h"
5
10struct JASCalc {
11 /* 8028F2E8 */ static void imixcopy(s16 const*, s16 const*, s16*, u32);
12 /* 8028F318 */ static void bcopyfast(void const*, void*, u32);
13 /* 8028F354 */ static void bcopy(void const*, void*, u32);
14 /* 8028F454 */ static void bzerofast(void*, u32);
15 /* 8028F480 */ static void bzero(void*, u32);
16 /* 8028F578 */ static f32 pow2(f32);
17
18 // Could not make it work as inline - specialization is in JASCalc.cpp
19 template <typename A, typename B>
20 static A clamp(B x); /* {
21 if (std::numeric_limits<A>::min() >= x)
22 return std::numeric_limits<A>::min();
23 if (x >= std::numeric_limits<A>::max())
24 return std::numeric_limits<A>::max();
25 return x;
26 } */
27
29 if (i_value <= 0.0f) {
30 return 0.0f;
31 }
32 if (i_value >= 1.0f) {
33 return 1.0f;
34 }
35 return i_value;
36 }
37
38 f32 fake1();
39 f32 fake2(long x);
40 f32 fake3();
41
42 static s16 const CUTOFF_TO_IIR_TABLE[128][4];
43};
44
45#endif /* JASCALC_H */
T cLib_calcTimer(T *value)
Definition c_lib.h:74
double x double x
Definition e_atan2.c:58
Definition JASCalc.h:10
f32 fake2(long x)
Definition JASCalc.cpp:275
static s16 const CUTOFF_TO_IIR_TABLE[128][4]
Definition JASCalc.h:139
static void bzero(void *, u32)
Definition JASCalc.cpp:95
static void imixcopy(s16 const *, s16 const *, s16 *, u32)
Definition JASCalc.cpp:11
static void bcopyfast(void const *, void *, u32)
Definition JASCalc.cpp:19
f32 fake3()
Definition JASCalc.cpp:276
static void bzerofast(void *, u32)
Definition JASCalc.cpp:83
static void bcopy(void const *, void *, u32)
Definition JASCalc.cpp:39
static f32 pow2(f32)
Definition JASCalc.cpp:279
static A clamp(B x)
static f32 clamp01(f32 i_value)
Definition JASCalc.h:28
f32 fake1()
Definition JASCalc.cpp:274
unsigned long u32
Definition types.h:10
float f32
Definition types.h:22
signed short s16
Definition types.h:5