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/audiobeam/audiobeamlibm.h | |
| parent | 54a3f7091a2146b29c73a6fdc4b62a5c4ad7a3d8 (diff) | |
Reorganize and commit all the modified TACLeBench code and run scripts
Diffstat (limited to 'all_pairs/source/audiobeam/audiobeamlibm.h')
| -rw-r--r-- | all_pairs/source/audiobeam/audiobeamlibm.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/all_pairs/source/audiobeam/audiobeamlibm.h b/all_pairs/source/audiobeam/audiobeamlibm.h new file mode 100644 index 0000000..b06b563 --- /dev/null +++ b/all_pairs/source/audiobeam/audiobeamlibm.h | |||
| @@ -0,0 +1,59 @@ | |||
| 1 | /* | ||
| 2 | |||
| 3 | This program is part of the TACLeBench benchmark suite. | ||
| 4 | Version V 2.0 | ||
| 5 | |||
| 6 | Name: quicksortlibm.c | ||
| 7 | |||
| 8 | Author: Ian Lance Taylor | ||
| 9 | |||
| 10 | Function: IEEE754 software library routines. | ||
| 11 | |||
| 12 | Source: Sun Microsystems and Cygnus | ||
| 13 | |||
| 14 | Original name: Unknown | ||
| 15 | |||
| 16 | Changes: No major functional changes. | ||
| 17 | |||
| 18 | License: See audiobeamlibm.c | ||
| 19 | |||
| 20 | */ | ||
| 21 | |||
| 22 | #ifndef AUDIOBEAM_LIBM | ||
| 23 | #define AUDIOBEAM_LIBM | ||
| 24 | |||
| 25 | #define audiobeam_M_PI 3.14159265358979323846 | ||
| 26 | |||
| 27 | static const float | ||
| 28 | audiobeam_one = 1.0f, | ||
| 29 | audiobeam_tiny = 1.0e-30f, | ||
| 30 | audiobeam_half = 5.0000000000e-01, /* 0x3f000000 */ | ||
| 31 | audiobeam_huge = 1.0e30, | ||
| 32 | audiobeam_two8 = 2.5600000000e+02, /* 0x43800000 */ | ||
| 33 | audiobeam_twon8 = 3.9062500000e-03, /* 0x3b800000 */ | ||
| 34 | audiobeam_zero = 0.0; | ||
| 35 | |||
| 36 | #define audiobeam_cos audiobeam___cosf | ||
| 37 | #define audiobeam_fabs audiobeam___fabsf | ||
| 38 | #define audiobeam_fabsf audiobeam___fabsf | ||
| 39 | #define audiobeam_isinf audiobeam___isinff | ||
| 40 | #define audiobeam_sqrt audiobeam___ieee754_sqrtf | ||
| 41 | #define audiobeam_ceil audiobeam___ceilf | ||
| 42 | #define audiobeam_floor audiobeam___floorf | ||
| 43 | |||
| 44 | float audiobeam___copysignf( float x, float y ); | ||
| 45 | float audiobeam___cosf( float x ); | ||
| 46 | float audiobeam___fabsf( float x ); | ||
| 47 | float audiobeam___floorf( float x ); | ||
| 48 | int audiobeam___ieee754_rem_pio2f( float x, float *y ); | ||
| 49 | float audiobeam___ieee754_sqrtf( float x ); | ||
| 50 | int audiobeam___isinff ( float x ); | ||
| 51 | float audiobeam___kernel_cosf( float x, float y ); | ||
| 52 | float audiobeam___kernel_sinf( float x, float y, int iy ); | ||
| 53 | int audiobeam___kernel_rem_pio2f( float *x, float *y, int e0, int nx, | ||
| 54 | int prec, const int *ipio2 ); | ||
| 55 | float audiobeam___scalbnf ( float x, int n ); | ||
| 56 | float audiobeam___ceilf( float x ); | ||
| 57 | float audiobeam___floorf( float x ); | ||
| 58 | |||
| 59 | #endif // AUDIOBEAM_LIBM | ||
