source: trunk/libs/newlib/src/newlib/libc/include/complex.h @ 444

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

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

File size: 4.3 KB
Line 
1/* $NetBSD: complex.h,v 1.3 2010/09/15 16:11:30 christos Exp $ */
2
3/*
4 * Written by Matthias Drochner.
5 * Public domain.
6 */
7
8#ifndef _COMPLEX_H
9#define _COMPLEX_H
10
11#define complex _Complex
12#define _Complex_I 1.0fi
13#define I _Complex_I
14
15#include <sys/cdefs.h>
16
17__BEGIN_DECLS
18
19/* 7.3.5 Trigonometric functions */
20/* 7.3.5.1 The cacos functions */
21double complex cacos(double complex);
22float complex cacosf(float complex);
23
24/* 7.3.5.2 The casin functions */
25double complex casin(double complex);
26float complex casinf(float complex);
27long double complex casinl(long double complex);
28
29/* 7.3.5.1 The catan functions */
30double complex catan(double complex);
31float complex catanf(float complex);
32long double complex catanl(long double complex);
33
34/* 7.3.5.1 The ccos functions */
35double complex ccos(double complex);
36float complex ccosf(float complex);
37
38/* 7.3.5.1 The csin functions */
39double complex csin(double complex);
40float complex csinf(float complex);
41
42/* 7.3.5.1 The ctan functions */
43double complex ctan(double complex);
44float complex ctanf(float complex);
45
46/* 7.3.6 Hyperbolic functions */
47/* 7.3.6.1 The cacosh functions */
48double complex cacosh(double complex);
49float complex cacoshf(float complex);
50
51/* 7.3.6.2 The casinh functions */
52double complex casinh(double complex);
53float complex casinhf(float complex);
54
55/* 7.3.6.3 The catanh functions */
56double complex catanh(double complex);
57float complex catanhf(float complex);
58
59/* 7.3.6.4 The ccosh functions */
60double complex ccosh(double complex);
61float complex ccoshf(float complex);
62
63/* 7.3.6.5 The csinh functions */
64double complex csinh(double complex);
65float complex csinhf(float complex);
66
67/* 7.3.6.6 The ctanh functions */
68double complex ctanh(double complex);
69float complex ctanhf(float complex);
70
71/* 7.3.7 Exponential and logarithmic functions */
72/* 7.3.7.1 The cexp functions */
73double complex cexp(double complex);
74float complex cexpf(float complex);
75
76/* 7.3.7.2 The clog functions */
77double complex clog(double complex);
78float complex clogf(float complex);
79long double complex clogl(long double complex);
80
81/* 7.3.8 Power and absolute-value functions */
82/* 7.3.8.1 The cabs functions */
83/*#ifndef __LIBM0_SOURCE__ */
84/* avoid conflict with historical cabs(struct complex) */
85/* double cabs(double complex) __RENAME(__c99_cabs);
86   float cabsf(float complex) __RENAME(__c99_cabsf);
87   #endif
88*/
89long double cabsl(long double complex) ;
90double cabs(double complex) ;
91float cabsf(float complex) ;
92
93/* 7.3.8.2 The cpow functions */
94double complex cpow(double complex, double complex);
95float complex cpowf(float complex, float complex);
96
97/* 7.3.8.3 The csqrt functions */
98double complex csqrt(double complex);
99float complex csqrtf(float complex);
100long double complex csqrtl(long double complex);
101
102/* 7.3.9 Manipulation functions */
103/* 7.3.9.1 The carg functions */ 
104double carg(double complex);
105float cargf(float complex);
106long double cargl(long double complex);
107
108/* 7.3.9.2 The cimag functions */
109double cimag(double complex);
110float cimagf(float complex);
111long double cimagl(long double complex);
112
113/* 7.3.9.3 The conj functions */
114double complex conj(double complex);
115float complex conjf(float complex);
116
117/* 7.3.9.4 The cproj functions */
118double complex cproj(double complex);
119float complex cprojf(float complex);
120
121/* 7.3.9.5 The creal functions */
122double creal(double complex);
123float crealf(float complex);
124long double creall(long double complex);
125
126#if __GNU_VISIBLE
127double complex clog10(double complex);
128float complex clog10f(float complex);
129#endif
130
131#if defined(__CYGWIN__)
132long double complex cacosl(long double complex);
133long double complex ccosl(long double complex);
134long double complex csinl(long double complex);
135long double complex ctanl(long double complex);
136long double complex cacoshl(long double complex);
137long double complex casinhl(long double complex);
138long double complex catanhl(long double complex);
139long double complex ccoshl(long double complex);
140long double complex csinhl(long double complex);
141long double complex ctanhl(long double complex);
142long double complex cexpl(long double complex);
143long double complex cpowl(long double complex, long double complex);
144long double complex conjl(long double complex);
145long double complex cprojl(long double complex);
146#if __GNU_VISIBLE
147long double complex clog10l(long double complex);
148#endif
149#endif /* __CYGWIN__ */
150
151__END_DECLS
152
153#endif  /* ! _COMPLEX_H */
Note: See TracBrowser for help on using the repository browser.