diff options
author | Joshua Bakita <bakitajoshua@gmail.com> | 2019-10-07 19:13:39 -0400 |
---|---|---|
committer | Joshua Bakita <bakitajoshua@gmail.com> | 2019-10-07 19:13:39 -0400 |
commit | 386b7d3366f1359a265da207a9cafa3edf553b64 (patch) | |
tree | c76120c2c138faed822e4ae386be6ef22a738a78 /all_pairs/source/fmref/wcclibm.h | |
parent | 54a3f7091a2146b29c73a6fdc4b62a5c4ad7a3d8 (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.h | 54 |
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__ | ||
12 | static const float | ||
13 | #else | ||
14 | static float | ||
15 | #endif | ||
16 | fmref_one = 1.0f, | ||
17 | fmref_half = 5.0000000000e-01f, /* 0x3f000000 */ | ||
18 | fmref_zero = 0.0f, | ||
19 | fmref_huge = 1.0e30, | ||
20 | fmref_two8 = 2.5600000000e+02f, /* 0x43800000 */ | ||
21 | fmref_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 | |||
36 | float fmref___atanf(float x); | ||
37 | float fmref___copysignf(float x, float y); | ||
38 | float fmref___cosf(float x); | ||
39 | float fmref___fabsf(float x); | ||
40 | float fmref___floorf(float x); | ||
41 | float fmref___ieee754_acosf(float x); | ||
42 | float fmref___ieee754_powf(float x, float y); | ||
43 | int32_t fmref___ieee754_rem_pio2f(float x, float *y); | ||
44 | float fmref___ieee754_sqrtf(float x); | ||
45 | int fmref___isinff (float x); | ||
46 | float fmref___kernel_cosf(float x, float y); | ||
47 | float fmref___kernel_sinf(float x, float y, int iy); | ||
48 | int fmref___kernel_rem_pio2f(float *x, float *y, int e0, int nx, int prec, const int32_t *ipio2); | ||
49 | float fmref___scalbnf (float x, int n); | ||
50 | float fmref___ieee754_logf(float x); | ||
51 | float fmref___ieee754_log10f(float x); | ||
52 | float fmref___sinf(float x); | ||
53 | |||
54 | #endif // _WCCLIBM | ||