summaryrefslogtreecommitdiffstats
path: root/all_pairs/source/fmref/wcclibm.h
diff options
context:
space:
mode:
authorJoshua Bakita <bakitajoshua@gmail.com>2019-10-07 19:13:39 -0400
committerJoshua Bakita <bakitajoshua@gmail.com>2019-10-07 19:13:39 -0400
commit386b7d3366f1359a265da207a9cafa3edf553b64 (patch)
treec76120c2c138faed822e4ae386be6ef22a738a78 /all_pairs/source/fmref/wcclibm.h
parent54a3f7091a2146b29c73a6fdc4b62a5c4ad7a3d8 (diff)
Reorganize and commit all the modified TACLeBench code and run scripts
Diffstat (limited to 'all_pairs/source/fmref/wcclibm.h')
-rw-r--r--all_pairs/source/fmref/wcclibm.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/all_pairs/source/fmref/wcclibm.h b/all_pairs/source/fmref/wcclibm.h
new file mode 100644
index 0000000..c00738b
--- /dev/null
+++ b/all_pairs/source/fmref/wcclibm.h
@@ -0,0 +1,54 @@
1#ifndef _WCCLIBM
2#define _WCCLIBM
3
4#define size_x unsigned long
5#define int32_t int
6#define uint32_t unsigned int
7#define u_int16_t unsigned short
8#define u_int32_t unsigned int
9
10// Often used variables/consts
11#ifdef __STDC__
12static const float
13#else
14static float
15#endif
16fmref_one = 1.0f,
17fmref_half = 5.0000000000e-01f, /* 0x3f000000 */
18fmref_zero = 0.0f,
19fmref_huge = 1.0e30,
20fmref_two8 = 2.5600000000e+02f, /* 0x43800000 */
21fmref_twon8 = 3.9062500000e-03f; /* 0x3b800000 */
22
23// The following defines map the math functions to specialized calls
24#define acos fmref___ieee754_acosf
25#define atan fmref___atanf
26#define cos fmref___cosf
27#define fabs fmref___fabsf
28#define fabsf fmref___fabsf
29#define isinf fmref___isinff
30#define pow fmref___ieee754_powf
31#define sqrt fmref___ieee754_sqrtf
32#define log10 fmref___ieee754_log10f
33#define log fmref___ieee754_logf
34#define sin fmref___sinf
35
36float fmref___atanf(float x);
37float fmref___copysignf(float x, float y);
38float fmref___cosf(float x);
39float fmref___fabsf(float x);
40float fmref___floorf(float x);
41float fmref___ieee754_acosf(float x);
42float fmref___ieee754_powf(float x, float y);
43int32_t fmref___ieee754_rem_pio2f(float x, float *y);
44float fmref___ieee754_sqrtf(float x);
45int fmref___isinff (float x);
46float fmref___kernel_cosf(float x, float y);
47float fmref___kernel_sinf(float x, float y, int iy);
48int fmref___kernel_rem_pio2f(float *x, float *y, int e0, int nx, int prec, const int32_t *ipio2);
49float fmref___scalbnf (float x, int n);
50float fmref___ieee754_logf(float x);
51float fmref___ieee754_log10f(float x);
52float fmref___sinf(float x);
53
54#endif // _WCCLIBM