Search
lxdream.org :: lxdream/test/include/machine/fastmath.h
lxdream 0.9.1
released Jun 29
Download Now
filename test/include/machine/fastmath.h
changeset 185:6755a04c447f
author nkeynes
date Tue Jul 11 01:35:27 2006 +0000 (15 years ago)
permissions -rw-r--r--
last change First commit of system test framework. 3 initial test cases (incomplete):
testide, testmath, and testta
file annotate diff log raw
nkeynes@185
     1
#ifdef __sysvnecv70_target
nkeynes@185
     2
double EXFUN(fast_sin,(double));
nkeynes@185
     3
double EXFUN(fast_cos,(double));
nkeynes@185
     4
double EXFUN(fast_tan,(double));
nkeynes@185
     5
nkeynes@185
     6
double EXFUN(fast_asin,(double));
nkeynes@185
     7
double EXFUN(fast_acos,(double));
nkeynes@185
     8
double EXFUN(fast_atan,(double));
nkeynes@185
     9
nkeynes@185
    10
double EXFUN(fast_sinh,(double));
nkeynes@185
    11
double EXFUN(fast_cosh,(double));
nkeynes@185
    12
double EXFUN(fast_tanh,(double));
nkeynes@185
    13
nkeynes@185
    14
double EXFUN(fast_asinh,(double));
nkeynes@185
    15
double EXFUN(fast_acosh,(double));
nkeynes@185
    16
double EXFUN(fast_atanh,(double));
nkeynes@185
    17
nkeynes@185
    18
double EXFUN(fast_abs,(double));
nkeynes@185
    19
double EXFUN(fast_sqrt,(double));
nkeynes@185
    20
double EXFUN(fast_exp2,(double));
nkeynes@185
    21
double EXFUN(fast_exp10,(double));
nkeynes@185
    22
double EXFUN(fast_expe,(double));
nkeynes@185
    23
double EXFUN(fast_log10,(double));
nkeynes@185
    24
double EXFUN(fast_log2,(double));
nkeynes@185
    25
double EXFUN(fast_loge,(double));
nkeynes@185
    26
nkeynes@185
    27
nkeynes@185
    28
#define	sin(x)		fast_sin(x)
nkeynes@185
    29
#define	cos(x)		fast_cos(x)
nkeynes@185
    30
#define	tan(x)		fast_tan(x)
nkeynes@185
    31
#define	asin(x)		fast_asin(x)
nkeynes@185
    32
#define	acos(x)		fast_acos(x)
nkeynes@185
    33
#define	atan(x)		fast_atan(x)
nkeynes@185
    34
#define	sinh(x)		fast_sinh(x)
nkeynes@185
    35
#define	cosh(x)		fast_cosh(x)
nkeynes@185
    36
#define	tanh(x)		fast_tanh(x)
nkeynes@185
    37
#define	asinh(x)	fast_asinh(x)
nkeynes@185
    38
#define	acosh(x)	fast_acosh(x)
nkeynes@185
    39
#define	atanh(x)	fast_atanh(x)
nkeynes@185
    40
#define	abs(x)		fast_abs(x)
nkeynes@185
    41
#define	sqrt(x)		fast_sqrt(x)
nkeynes@185
    42
#define	exp2(x)		fast_exp2(x)
nkeynes@185
    43
#define	exp10(x)	fast_exp10(x)
nkeynes@185
    44
#define	expe(x)		fast_expe(x)
nkeynes@185
    45
#define	log10(x)	fast_log10(x)
nkeynes@185
    46
#define	log2(x)		fast_log2(x)
nkeynes@185
    47
#define	loge(x)		fast_loge(x)
nkeynes@185
    48
nkeynes@185
    49
#ifdef _HAVE_STDC
nkeynes@185
    50
/* These functions are in assembler, they really do take floats. This
nkeynes@185
    51
   can only be used with a real ANSI compiler */
nkeynes@185
    52
nkeynes@185
    53
float EXFUN(fast_sinf,(float));
nkeynes@185
    54
float EXFUN(fast_cosf,(float));
nkeynes@185
    55
float EXFUN(fast_tanf,(float));
nkeynes@185
    56
nkeynes@185
    57
float EXFUN(fast_asinf,(float));
nkeynes@185
    58
float EXFUN(fast_acosf,(float));
nkeynes@185
    59
float EXFUN(fast_atanf,(float));
nkeynes@185
    60
nkeynes@185
    61
float EXFUN(fast_sinhf,(float));
nkeynes@185
    62
float EXFUN(fast_coshf,(float));
nkeynes@185
    63
float EXFUN(fast_tanhf,(float));
nkeynes@185
    64
nkeynes@185
    65
float EXFUN(fast_asinhf,(float));
nkeynes@185
    66
float EXFUN(fast_acoshf,(float));
nkeynes@185
    67
float EXFUN(fast_atanhf,(float));
nkeynes@185
    68
nkeynes@185
    69
float EXFUN(fast_absf,(float));
nkeynes@185
    70
float EXFUN(fast_sqrtf,(float));
nkeynes@185
    71
float EXFUN(fast_exp2f,(float));
nkeynes@185
    72
float EXFUN(fast_exp10f,(float));
nkeynes@185
    73
float EXFUN(fast_expef,(float));
nkeynes@185
    74
float EXFUN(fast_log10f,(float));
nkeynes@185
    75
float EXFUN(fast_log2f,(float));
nkeynes@185
    76
float EXFUN(fast_logef,(float));
nkeynes@185
    77
#define	sinf(x)		fast_sinf(x)
nkeynes@185
    78
#define	cosf(x)		fast_cosf(x)
nkeynes@185
    79
#define	tanf(x)		fast_tanf(x)
nkeynes@185
    80
#define	asinf(x)	fast_asinf(x)
nkeynes@185
    81
#define	acosf(x)	fast_acosf(x)
nkeynes@185
    82
#define	atanf(x)	fast_atanf(x)
nkeynes@185
    83
#define	sinhf(x)	fast_sinhf(x)
nkeynes@185
    84
#define	coshf(x)	fast_coshf(x)
nkeynes@185
    85
#define	tanhf(x)	fast_tanhf(x)
nkeynes@185
    86
#define	asinhf(x)	fast_asinhf(x)
nkeynes@185
    87
#define	acoshf(x)	fast_acoshf(x)
nkeynes@185
    88
#define	atanhf(x)	fast_atanhf(x)
nkeynes@185
    89
#define	absf(x)		fast_absf(x)
nkeynes@185
    90
#define	sqrtf(x)	fast_sqrtf(x)
nkeynes@185
    91
#define	exp2f(x)	fast_exp2f(x)
nkeynes@185
    92
#define	exp10f(x)	fast_exp10f(x)
nkeynes@185
    93
#define	expef(x)	fast_expef(x)
nkeynes@185
    94
#define	log10f(x)	fast_log10f(x)
nkeynes@185
    95
#define	log2f(x)	fast_log2f(x)
nkeynes@185
    96
#define	logef(x)	fast_logef(x)
nkeynes@185
    97
#endif
nkeynes@185
    98
/* Override the functions defined in math.h */
nkeynes@185
    99
#endif /* __sysvnecv70_target */
nkeynes@185
   100
.