1 | /*-
|
---|
2 | * Copyright (c) 2001 The FreeBSD Project.
|
---|
3 | * All rights reserved.
|
---|
4 | *
|
---|
5 | * Redistribution and use in source and binary forms, with or without
|
---|
6 | * modification, are permitted provided that the following conditions
|
---|
7 | * are met:
|
---|
8 | * 1. Redistributions of source code must retain the above copyright
|
---|
9 | * notice, this list of conditions and the following disclaimer.
|
---|
10 | * 2. Redistributions in binary form must reproduce the above copyright
|
---|
11 | * notice, this list of conditions and the following disclaimer in the
|
---|
12 | * documentation and/or other materials provided with the distribution.
|
---|
13 | *
|
---|
14 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
---|
15 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
---|
16 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
---|
17 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
---|
18 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
---|
19 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
---|
20 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
---|
21 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
---|
22 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
---|
23 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
---|
24 | * SUCH DAMAGE.
|
---|
25 | *
|
---|
26 | * $FreeBSD: src/include/complex.h,v 1.6 2004/08/14 18:03:21 stefanf Exp $
|
---|
27 | */
|
---|
28 |
|
---|
29 | /**
|
---|
30 | * FreeBSD 5.3
|
---|
31 | */
|
---|
32 |
|
---|
33 | #ifndef _COMPLEX_H
|
---|
34 | #define _COMPLEX_H
|
---|
35 |
|
---|
36 | #ifdef __GNUC__
|
---|
37 | #if __STDC_VERSION__ < 199901
|
---|
38 | #define _Complex __complex__
|
---|
39 | #endif
|
---|
40 | #define _Complex_I 1.0fi
|
---|
41 | #endif
|
---|
42 |
|
---|
43 | #define complex _Complex
|
---|
44 | #define I _Complex_I
|
---|
45 |
|
---|
46 | #include <sys/cdefs.h>
|
---|
47 |
|
---|
48 | __BEGIN_DECLS
|
---|
49 |
|
---|
50 | double cabs(double complex);
|
---|
51 | float cabsf(float complex);
|
---|
52 | double cimag(double complex);
|
---|
53 | float cimagf(float complex);
|
---|
54 | long double cimagl(long double complex);
|
---|
55 | double complex conj(double complex);
|
---|
56 | float complex conjf(float complex);
|
---|
57 | long double complex
|
---|
58 | conjl(long double complex);
|
---|
59 | double creal(double complex);
|
---|
60 | float crealf(float complex);
|
---|
61 | long double creall(long double complex);
|
---|
62 |
|
---|
63 | /* bird: */
|
---|
64 | long double cabsl(long double complex);
|
---|
65 | double complex cacos(double complex);
|
---|
66 | float complex cacosf(float complex);
|
---|
67 | double complex cacosh(double complex);
|
---|
68 | float complex cacoshf(float complex);
|
---|
69 | long double complex cacoshl(long double complex);
|
---|
70 | long double complex cacosl(long double complex);
|
---|
71 | double carg(double complex);
|
---|
72 | float cargf(float complex);
|
---|
73 | long double cargl(long double complex);
|
---|
74 | double complex casin(double complex);
|
---|
75 | float complex casinf(float complex);
|
---|
76 | double complex casinh(double complex);
|
---|
77 | float complex casinhf(float complex);
|
---|
78 | long double complex casinhl(long double complex);
|
---|
79 | long double complex casinl(long double complex);
|
---|
80 | double complex catan(double complex);
|
---|
81 | float complex catanf(float complex);
|
---|
82 | double complex catanh(double complex);
|
---|
83 | float complex catanhf(float complex);
|
---|
84 | long double complex catanhl(long double complex);
|
---|
85 | long double complex catanl(long double complex);
|
---|
86 | double complex ccos(double complex);
|
---|
87 | float complex ccosf(float complex);
|
---|
88 | double complex ccosh(double complex);
|
---|
89 | float complex ccoshf(float complex);
|
---|
90 | long double complex ccoshl(long double complex);
|
---|
91 | long double complex ccosl(long double complex);
|
---|
92 | double complex cexp(double complex);
|
---|
93 | float complex cexpf(float complex);
|
---|
94 | long double complex cexpl(long double complex);
|
---|
95 | double complex clog(double complex);
|
---|
96 | float complex clogf(float complex);
|
---|
97 | long double complex clogl(long double complex);
|
---|
98 | double complex cpow(double complex, double complex);
|
---|
99 | float complex cpowf(float complex, float complex);
|
---|
100 | long double complex cpowl(long double complex, long double complex);
|
---|
101 | double complex cproj(double complex);
|
---|
102 | float complex cprojf(float complex);
|
---|
103 | long double complex cprojl(long double complex);
|
---|
104 | double complex csin(double complex);
|
---|
105 | float complex csinf(float complex);
|
---|
106 | double complex csinh(double complex);
|
---|
107 | float complex csinhf(float complex);
|
---|
108 | long double complex csinhl(long double complex);
|
---|
109 | long double complex csinl(long double complex);
|
---|
110 | double complex csqrt(double complex);
|
---|
111 | float complex csqrtf(float complex);
|
---|
112 | long double complex csqrtl(long double complex);
|
---|
113 | double complex ctan(double complex);
|
---|
114 | float complex ctanf(float complex);
|
---|
115 | double complex ctanh(double complex);
|
---|
116 | float complex ctanhf(float complex);
|
---|
117 | long double complex ctanhl(long double complex);
|
---|
118 | long double complex ctanl(long double complex);
|
---|
119 |
|
---|
120 | /* gnu extensions? */
|
---|
121 | double complex clog10(double complex);
|
---|
122 | float complex clog10f(float complex);
|
---|
123 | long double complex clog10l(long double complex);
|
---|
124 | __END_DECLS
|
---|
125 |
|
---|
126 | #endif /* _COMPLEX_H */
|
---|