aboutsummaryrefslogtreecommitdiff
path: root/newlib/libm/test/math.c
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowi@redhat.com>2017-12-03 21:43:30 -0600
committerYaakov Selkowitz <yselkowi@redhat.com>2018-01-17 11:47:26 -0600
commit9087163804df8af6dc2ec1f675a2341c25f7795f (patch)
tree86fcb38236347d0e97a16c957e41dca597b8e8a8 /newlib/libm/test/math.c
parent44276afe2a0365d655425702205604640829668d (diff)
downloadnewlib-9087163804df8af6dc2ec1f675a2341c25f7795f.zip
newlib-9087163804df8af6dc2ec1f675a2341c25f7795f.tar.gz
newlib-9087163804df8af6dc2ec1f675a2341c25f7795f.tar.bz2
ansification: remove _DEFUN
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Diffstat (limited to 'newlib/libm/test/math.c')
-rw-r--r--newlib/libm/test/math.c33
1 files changed, 13 insertions, 20 deletions
diff --git a/newlib/libm/test/math.c b/newlib/libm/test/math.c
index f58f64f..dda587a 100644
--- a/newlib/libm/test/math.c
+++ b/newlib/libm/test/math.c
@@ -35,8 +35,7 @@ int verbose;
/* To test exceptions - we trap them all and return a known value */
int
-_DEFUN(matherr,(e),
- struct exception *e)
+matherr (struct exception *e)
{
if (traperror)
{
@@ -50,8 +49,7 @@ _DEFUN(matherr,(e),
}
-void _DEFUN(translate_to,(file,r),
- FILE *file,
+void translate_to (FILE *file,
double r)
{
__ieee_double_shape_type bits;
@@ -60,8 +58,7 @@ void _DEFUN(translate_to,(file,r),
}
int
-_DEFUN(ffcheck,( is, p, name, serrno, merror),
- double is,
+ffcheck (double is,
one_line_type *p,
char *name,
int serrno,
@@ -108,8 +105,7 @@ _DEFUN(ffcheck,( is, p, name, serrno, merror),
}
double
-_DEFUN(thedouble, (msw, lsw),
- long msw,
+thedouble (long msw,
long lsw)
{
__ieee_double_shape_type x;
@@ -123,8 +119,7 @@ int calc;
int reduce;
-_DEFUN(frontline,(f, mag, p, result, merror, errno, args, name),
- FILE *f,
+frontline (FILE *f,
int mag,
one_line_type *p,
double result,
@@ -176,8 +171,7 @@ _DEFUN(frontline,(f, mag, p, result, merror, errno, args, name),
fprintf(f, ")*/\n");
}
-_DEFUN(finish,(f, vector, result , p, args, name),
- FILE *f,
+finish (FILE *f,
int vector,
double result,
one_line_type *p,
@@ -194,8 +188,7 @@ _DEFUN(finish,(f, vector, result , p, args, name),
}
int redo;
-_DEFUN(run_vector_1,(vector, p, func, name, args),
- int vector,
+run_vector_1 (int vector,
one_line_type *p,
char *func,
char *name,
@@ -429,12 +422,12 @@ test_math (void)
*/
#if 0
-float _DEFUN(cosf,(a), float a) { return cos((double)a); }
-float _DEFUN(sinf,(a), float a) { return sin((double)a); }
-float _DEFUN(log1pf,(a), float a) { return log1p((double)a); }
-float _DEFUN(tanf,(a), float a) { return tan((double)a); }
-float _DEFUN(ceilf,(a), float a) { return ceil(a); }
-float _DEFUN(floorf,(a), float a) { return floor(a); }
+float cosf (float a) { return cos((double)a); }
+float sinf (float a) { return sin((double)a); }
+float log1pf (float a) { return log1p((double)a); }
+float tanf (float a) { return tan((double)a); }
+float ceilf (float a) { return ceil(a); }
+float floorf (float a) { return floor(a); }
#endif
/*ndef HAVE_FLOAT*/