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/susan/wcclibm.h | |
| parent | 54a3f7091a2146b29c73a6fdc4b62a5c4ad7a3d8 (diff) | |
Reorganize and commit all the modified TACLeBench code and run scripts
Diffstat (limited to 'all_pairs/source/susan/wcclibm.h')
| -rw-r--r-- | all_pairs/source/susan/wcclibm.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/all_pairs/source/susan/wcclibm.h b/all_pairs/source/susan/wcclibm.h new file mode 100644 index 0000000..bcf4c65 --- /dev/null +++ b/all_pairs/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__ | ||
| 11 | static const float | ||
| 12 | #else | ||
| 13 | static float | ||
| 14 | #endif | ||
| 15 | susan_one = 1.0f, | ||
| 16 | susan_half = 5.0000000000e-01f, /* 0x3f000000 */ | ||
| 17 | susan_zero = 0.0f, | ||
| 18 | susan_huge = 1.0e30, | ||
| 19 | susan_two8 = 2.5600000000e+02f, /* 0x43800000 */ | ||
| 20 | susan_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 | |||
| 35 | float susan___atanf(float x); | ||
| 36 | float susan___copysignf(float x, float y); | ||
| 37 | float susan___cosf(float x); | ||
| 38 | float susan___fabsf(float x); | ||
| 39 | float susan___floorf(float x); | ||
| 40 | float susan___ieee754_acosf(float x); | ||
| 41 | float susan___ieee754_powf(float x, float y); | ||
| 42 | int32_t susan___ieee754_rem_pio2f(float x, float *y); | ||
| 43 | float susan___ieee754_sqrtf(float x); | ||
| 44 | int susan___isinff (float x); | ||
| 45 | float susan___kernel_cosf(float x, float y); | ||
| 46 | float susan___kernel_sinf(float x, float y, int iy); | ||
| 47 | int susan___kernel_rem_pio2f(float *x, float *y, int e0, int nx, int prec, const int32_t *ipio2); | ||
| 48 | float susan___scalbnf (float x, int n); | ||
| 49 | float susan___ieee754_logf(float x); | ||
| 50 | float susan___ieee754_log10f(float x); | ||
| 51 | float susan___sinf(float x); | ||
| 52 | |||
| 53 | #endif // _WCCLIBM | ||
