source: trunk/libs/newlib/src/newlib/libm/mathfp/zmath.h @ 567

Last change on this file since 567 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 1019 bytes
Line 
1#ifndef __ZMATH_H
2#define __ZMATH_H
3
4#include <errno.h>
5
6#define NUM 3
7#define NAN 2
8#define INF 1
9
10#define __PI 3.14159265358979323846
11#define __SQRT_HALF 0.70710678118654752440
12#define __PI_OVER_TWO 1.57079632679489661923132
13
14extern double BIGX;
15extern double SMALLX;
16
17typedef const union
18{
19  long l[2];
20  double d;
21} udouble;
22
23typedef const union
24{
25  long l;
26  float f;
27} ufloat;
28
29extern double BIGX;
30extern double SMALLX;
31
32extern udouble z_infinity;
33extern udouble z_notanum;
34extern double  z_rooteps;
35
36extern ufloat  z_infinity_f;
37extern ufloat  z_notanum_f;
38extern float   z_rooteps_f;
39
40/* Core math routines. */
41
42int    numtest (double);
43int    numtestf (float);
44double logarithm (double, int);
45float  logarithmf (float, int);
46double sine (double, int);
47float  sinef (float, int);
48double asine (double, int);
49float  asinef (float, int);
50double atangent (double, double, double, int);
51float  atangentf (float, float, float, int);
52double sineh (double, int);
53float  sinehf (float, int);
54
55#endif /* no __ZMATH_H */
Note: See TracBrowser for help on using the repository browser.