summaryrefslogtreecommitdiffstats
path: root/all_pairs/source/audiobeam/audiobeamlibm.h
blob: b06b56349328c25498bcc4e9d99044876e49ae5d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/*

  This program is part of the TACLeBench benchmark suite.
  Version V 2.0

  Name: quicksortlibm.c

  Author: Ian Lance Taylor

  Function: IEEE754 software library routines.

  Source: Sun Microsystems and Cygnus

  Original name: Unknown

  Changes: No major functional changes.

  License: See audiobeamlibm.c

*/

#ifndef AUDIOBEAM_LIBM
#define AUDIOBEAM_LIBM

#define audiobeam_M_PI 3.14159265358979323846

static  const float
audiobeam_one    =  1.0f,
audiobeam_tiny   =  1.0e-30f,
audiobeam_half   =  5.0000000000e-01, /* 0x3f000000 */
audiobeam_huge   =  1.0e30,
audiobeam_two8   =  2.5600000000e+02, /* 0x43800000 */
audiobeam_twon8  =  3.9062500000e-03, /* 0x3b800000 */
audiobeam_zero   =  0.0;

#define audiobeam_cos      audiobeam___cosf
#define audiobeam_fabs     audiobeam___fabsf
#define audiobeam_fabsf    audiobeam___fabsf
#define audiobeam_isinf    audiobeam___isinff
#define audiobeam_sqrt     audiobeam___ieee754_sqrtf
#define audiobeam_ceil     audiobeam___ceilf
#define audiobeam_floor    audiobeam___floorf

float   audiobeam___copysignf( float x, float y );
float   audiobeam___cosf( float x );
float   audiobeam___fabsf( float x );
float   audiobeam___floorf( float x );
int     audiobeam___ieee754_rem_pio2f( float x, float *y );
float   audiobeam___ieee754_sqrtf( float x );
int     audiobeam___isinff ( float x );
float   audiobeam___kernel_cosf( float x, float y );
float   audiobeam___kernel_sinf( float x, float y, int iy );
int     audiobeam___kernel_rem_pio2f( float *x, float *y, int e0, int nx,
                                      int prec, const int *ipio2 );
float   audiobeam___scalbnf ( float x, int n );
float   audiobeam___ceilf( float x );
float   audiobeam___floorf( float x );

#endif // AUDIOBEAM_LIBM