Changed .s files to .c files with gcc asm.

svn path=/trunk/; revision=301
This commit is contained in:
Boudewijn Dekker 1999-03-12 20:28:52 +00:00
parent 98071efc7e
commit 0c215b202d
5 changed files with 34 additions and 1 deletions

View file

@ -75,7 +75,7 @@ MATH_OBJECTS = math/acos.o math/acosh.o math/asin.o math/asinh.o math/atan.o mat
math/atanh.o math/ceil.o math/cos.o math/cosh.o math/exp.o math/fabs.o\
math/floor.o math/fmod.o math/frexp.o math/huge_val.o math/hypot.o\
math/ldexp.o math/log.o math/log10.o math/modf.o math/modfl.o math/pow.o\
math/pow10.o math/pow2.o math/sin.o math/sinh.o math/sqrt.o math/tan.o\
math/sin.o math/sinh.o math/sqrt.o math/tan.o\
math/tanh.o

View file

@ -0,0 +1,8 @@
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
#include <math.h>
double
acosh(double x)
{
return log(x + sqrt(x*x - 1));
}

View file

@ -0,0 +1,9 @@
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
#include <math.h>
double
asinh(double x)
{
return x>0 ? log(x + sqrt(x*x + 1)) : -log(sqrt(x*x+1)-x);
}

View file

@ -0,0 +1,8 @@
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
#include <math.h>
double
atanh(double x)
{
return log((1+x)/(1-x)) / 2.0;
}

View file

@ -0,0 +1,8 @@
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
#include <math.h>
double cosh(double x)
{
const double ebig = exp(fabs(x));
return (ebig + 1.0/ebig) / 2.0;
}