mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 21:36:11 +00:00
Changed .s files to .c files with gcc asm.
svn path=/trunk/; revision=301
This commit is contained in:
parent
98071efc7e
commit
0c215b202d
5 changed files with 34 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
8
reactos/lib/crtdll/math/acosh.c
Normal file
8
reactos/lib/crtdll/math/acosh.c
Normal 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));
|
||||
}
|
9
reactos/lib/crtdll/math/asinh.c
Normal file
9
reactos/lib/crtdll/math/asinh.c
Normal 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);
|
||||
}
|
||||
|
8
reactos/lib/crtdll/math/atanh.c
Normal file
8
reactos/lib/crtdll/math/atanh.c
Normal 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;
|
||||
}
|
8
reactos/lib/crtdll/math/cosh.c
Normal file
8
reactos/lib/crtdll/math/cosh.c
Normal 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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue