blob: 73ac22dd1fca2743a78169388861c45231f3009f [file] [log] [blame]
Piotr Jasiukajtis25c28e832014-02-04 20:31:57 +01001/*
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
20 */
22 * Copyright 2011 Nexenta Systems, Inc. All rights reserved.
23 */
25 * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
26 * Use is subject to license terms.
27 */
29#ifndef _COMPLEX_H
30#define _COMPLEX_H
32#ifdef __cplusplus
33extern "C" {
Piotr Jasiukajtis25c28e832014-02-04 20:31:57 +010036/*
37 * Compilation environments for Solaris must provide the _Imaginary datatype
38 * and the compiler intrinsics _Complex_I and _Imaginary_I
39 */
40#if defined(__SUNPRO_C)
41#define _Complex_I _Complex_I
42#define _Imaginary_I _Imaginary_I
44#define _Complex_I 1.0fi
45#define _Imaginary_I 1.0fi
47#define complex _Complex
48#define imaginary _Imaginary
49#undef I
50#define I _Imaginary_I
52extern float cabsf(float complex);
53extern float cargf(float complex);
54extern float cimagf(float complex);
55extern float crealf(float complex);
56extern float complex cacosf(float complex);
57extern float complex cacoshf(float complex);
58extern float complex casinf(float complex);
59extern float complex casinhf(float complex);
60extern float complex catanf(float complex);
61extern float complex catanhf(float complex);
62extern float complex ccosf(float complex);
63extern float complex ccoshf(float complex);
64extern float complex cexpf(float complex);
65extern float complex clogf(float complex);
66extern float complex conjf(float complex);
67extern float complex cpowf(float complex, float complex);
68extern float complex cprojf(float complex);
69extern float complex csinf(float complex);
70extern float complex csinhf(float complex);
71extern float complex csqrtf(float complex);
72extern float complex ctanf(float complex);
73extern float complex ctanhf(float complex);
75extern double cabs(double complex);
76extern double carg(double complex);
77extern double cimag(double complex);
78extern double creal(double complex);
79extern double complex cacos(double complex);
80extern double complex cacosh(double complex);
81extern double complex casin(double complex);
82extern double complex casinh(double complex);
83extern double complex catan(double complex);
84extern double complex catanh(double complex);
85extern double complex ccos(double complex);
86extern double complex ccosh(double complex);
87extern double complex cexp(double complex);
89#pragma redefine_extname clog __clog
91#undef clog
92#define clog __clog
94extern double complex clog(double complex);
95extern double complex conj(double complex);
96extern double complex cpow(double complex, double complex);
97extern double complex cproj(double complex);
98extern double complex csin(double complex);
99extern double complex csinh(double complex);
100extern double complex csqrt(double complex);
101extern double complex ctan(double complex);
102extern double complex ctanh(double complex);
104extern long double cabsl(long double complex);
105extern long double cargl(long double complex);
106extern long double cimagl(long double complex);
107extern long double creall(long double complex);
108extern long double complex cacoshl(long double complex);
109extern long double complex cacosl(long double complex);
110extern long double complex casinhl(long double complex);
111extern long double complex casinl(long double complex);
112extern long double complex catanhl(long double complex);
113extern long double complex catanl(long double complex);
114extern long double complex ccoshl(long double complex);
115extern long double complex ccosl(long double complex);
116extern long double complex cexpl(long double complex);
117extern long double complex clogl(long double complex);
118extern long double complex conjl(long double complex);
119extern long double complex cpowl(long double complex, long double complex);
120extern long double complex cprojl(long double complex);
121extern long double complex csinhl(long double complex);
122extern long double complex csinl(long double complex);
123extern long double complex csqrtl(long double complex);
124extern long double complex ctanhl(long double complex);
125extern long double complex ctanl(long double complex);
Piotr Jasiukajtis25c28e832014-02-04 20:31:57 +0100127#ifdef __cplusplus
Piotr Jasiukajtis25c28e832014-02-04 20:31:57 +0100130#endif /* _COMPLEX_H */