summaryrefslogtreecommitdiffstats
path: root/baseline/source/susan/wcclibm.h
diff options
context:
space:
mode:
Diffstat (limited to 'baseline/source/susan/wcclibm.h')
-rw-r--r--baseline/source/susan/wcclibm.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/baseline/source/susan/wcclibm.h b/baseline/source/susan/wcclibm.h
new file mode 100644
index 0000000..bcf4c65
--- /dev/null
+++ b/baseline/source/susan/wcclibm.h
@@ -0,0 +1,53 @@
1#ifndef _WCCLIBM
2#define _WCCLIBM
3
4#define int32_t int
5#define uint32_t unsigned int
6#define u_int16_t unsigned short
7#define u_int32_t unsigned int
8
9// Often used variables/consts
10#ifdef __STDC__
11static const float
12#else
13static float
14#endif
15susan_one = 1.0f,
16susan_half = 5.0000000000e-01f, /* 0x3f000000 */
17susan_zero = 0.0f,
18susan_huge = 1.0e30,
19susan_two8 = 2.5600000000e+02f, /* 0x43800000 */
20susan_twon8 = 3.9062500000e-03f; /* 0x3b800000 */
21
22// The following defines map the math functions to specialized calls
23#define acos susan___ieee754_acosf
24#define atan susan___atanf
25#define cos susan___cosf
26#define fabs susan___fabsf
27#define fabsf susan___fabsf
28#define isinf susan___isinff
29#define pow susan___ieee754_powf
30#define sqrt susan___ieee754_sqrtf
31#define log10 susan___ieee754_log10f
32#define log susan___ieee754_logf
33#define sin susan___sinf
34
35float susan___atanf(float x);
36float susan___copysignf(float x, float y);
37float susan___cosf(float x);
38float susan___fabsf(float x);
39float susan___floorf(float x);
40float susan___ieee754_acosf(float x);
41float susan___ieee754_powf(float x, float y);
42int32_t susan___ieee754_rem_pio2f(float x, float *y);
43float susan___ieee754_sqrtf(float x);
44int susan___isinff (float x);
45float susan___kernel_cosf(float x, float y);
46float susan___kernel_sinf(float x, float y, int iy);
47int susan___kernel_rem_pio2f(float *x, float *y, int e0, int nx, int prec, const int32_t *ipio2);
48float susan___scalbnf (float x, int n);
49float susan___ieee754_logf(float x);
50float susan___ieee754_log10f(float x);
51float susan___sinf(float x);
52
53#endif // _WCCLIBM