i386: Move lapic function declarations from smp.h to apic/lapic.h
[dragonfly.git] / include / complex.h
CommitLineData
984263bc
MD
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.1.2.1 2001/11/23 16:16:18 dd Exp $
7c4af8e1 27 * $DragonFly: src/include/complex.h,v 1.3 2003/11/14 01:01:43 dillon Exp $
984263bc
MD
28 */
29
30#ifndef _COMPLEX_H
31#define _COMPLEX_H
32
33#ifdef __GNUC__
cd2c0f90 34#if __STDC_VERSION__ < 199901L
984263bc 35#define _Complex __complex__
984263bc 36#endif
cd2c0f90
SK
37#define _Complex_I 1.0fi
38#endif /* !__GNUC__ */
984263bc 39
cd2c0f90
SK
40/* 7.3 Complex arithmetic <complex.h> */
41/* 7.3.1 */
984263bc
MD
42#define complex _Complex
43#define I _Complex_I
44
45#include <sys/cdefs.h>
46
47__BEGIN_DECLS
48
cd2c0f90
SK
49/* 7.3.5 Trigonometric functions */
50/* 7.3.5.1 The cacos functions */
51double complex cacos(double complex);
52float complex cacosf(float complex);
984263bc 53
cd2c0f90
SK
54/* 7.3.5.2 The casin functions */
55double complex casin(double complex);
56float complex casinf(float complex);
984263bc 57
cd2c0f90
SK
58/* 7.3.5.3 The catan functions */
59double complex catan(double complex);
60float complex catanf(float complex);
61
62/* 7.3.5.4 The ccos functions */
63double complex ccos(double complex);
64float complex ccosf(float complex);
65
66/* 7.3.5.5 The csin functions */
67double complex csin(double complex);
68float complex csinf(float complex);
69
70/* 7.3.5.6 The ctan functions */
71double complex ctan(double complex);
72float complex ctanf(float complex);
73
74/* 7.3.6 Hyperbolic functions */
75/* 7.3.6.1 The cacosh functions */
76double complex cacosh(double complex);
77float complex cacoshf(float complex);
78
79/* 7.3.6.2 The casinh functions */
80double complex casinh(double complex);
81float complex casinhf(float complex);
82
83/* 7.3.6.3 The catanh functions */
84double complex catanh(double complex);
85float complex catanhf(float complex);
86
87/* 7.3.6.4 The ccosh functions */
88double complex ccosh(double complex);
89float complex ccoshf(float complex);
90
91/* 7.3.6.5 The csinh functions */
92double complex csinh(double complex);
93float complex csinhf(float complex);
94
95/* 7.3.6.6 The ctanh functions */
96double complex ctanh(double complex);
97float complex ctanhf(float complex);
98
99/* 7.3.7 Exponential and logarithmic functions */
100/* 7.3.7.1 The cexp functions */
101double complex cexp(double complex);
102float complex cexpf(float complex);
103
104/* 7.3.7.2 The clog functions */
105double complex clog(double complex);
106float complex clogf(float complex);
107
108/* 7.3.8 Power and absolute-value functions */
109/* 7.3.8.1 The cabs functions */
110double cabs(double complex);
111float cabsf(float complex);
112
113/* 7.3.8.2 The cpow functions */
114double complex cpow(double complex, double complex);
115float complex cpowf(float complex, float complex);
116
117/* 7.3.8.3 The csqrt functions */
118double complex csqrt(double complex);
119float complex csqrtf(float complex);
120
121/* 7.3.9 Manipulation functions */
122/* 7.3.9.1 The carg functions */
123double carg(double complex);
124float cargf(float complex);
125
126/* 7.3.9.2 The cimag functions */
127double cimag(double complex);
128float cimagf(float complex);
129long double cimagl(long double complex);
130
131/* 7.3.9.3 The conj functions */
132double complex conj(double complex);
133float complex conjf(float complex);
134long double complex conjl(long double complex);
135
136/* 7.3.9.4 The cproj functions */
137double complex cproj(double complex);
138float complex cprojf(float complex);
139long double complex cprojl(long double complex);
140
141/* 7.3.9.5 The creal functions */
142double creal(double complex);
143float crealf(float complex);
144long double creall(long double complex);
145
146__END_DECLS
984263bc
MD
147
148#endif /* _COMPLEX_H */