Print this page
5367 complex.h /* #if !defined(__cplusplus) */ comment foils gcc fixincludes


  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 /*
  22  * Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
  23  */
  24 /*
  25  * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
  26  * Use is subject to license terms.
  27  */
  28 
  29 #ifndef _COMPLEX_H
  30 #define _COMPLEX_H
  31 
  32 #ifdef  __cplusplus
  33 extern "C" {
  34 #endif
  35 
  36 /* #if !defined(__cplusplus) */
  37 
  38 /*
  39  * Compilation environments for Solaris must provide the _Imaginary datatype
  40  * and the compiler intrinsics _Complex_I and _Imaginary_I
  41  */
  42 #if defined(__SUNPRO_C)
  43 #define _Complex_I      _Complex_I
  44 #define _Imaginary_I    _Imaginary_I
  45 #else
  46 #define _Complex_I      1.0fi
  47 #define _Imaginary_I    1.0fi
  48 #endif
  49 #define complex         _Complex
  50 #define imaginary       _Imaginary
  51 #undef  I
  52 #define I               _Imaginary_I
  53 
  54 extern float cabsf(float complex);
  55 extern float cargf(float complex);
  56 extern float cimagf(float complex);
  57 extern float crealf(float complex);


 109 extern long double creall(long double complex);
 110 extern long double complex cacoshl(long double complex);
 111 extern long double complex cacosl(long double complex);
 112 extern long double complex casinhl(long double complex);
 113 extern long double complex casinl(long double complex);
 114 extern long double complex catanhl(long double complex);
 115 extern long double complex catanl(long double complex);
 116 extern long double complex ccoshl(long double complex);
 117 extern long double complex ccosl(long double complex);
 118 extern long double complex cexpl(long double complex);
 119 extern long double complex clogl(long double complex);
 120 extern long double complex conjl(long double complex);
 121 extern long double complex cpowl(long double complex, long double complex);
 122 extern long double complex cprojl(long double complex);
 123 extern long double complex csinhl(long double complex);
 124 extern long double complex csinl(long double complex);
 125 extern long double complex csqrtl(long double complex);
 126 extern long double complex ctanhl(long double complex);
 127 extern long double complex ctanl(long double complex);
 128 
 129 /* #endif */    /* !defined(__cplusplus) */
 130 #ifdef  __cplusplus
 131 }
 132 #endif
 133 
 134 #endif  /* _COMPLEX_H */


  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 /*
  22  * Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
  23  */
  24 /*
  25  * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
  26  * Use is subject to license terms.
  27  */
  28 
  29 #ifndef _COMPLEX_H
  30 #define _COMPLEX_H
  31 
  32 #ifdef  __cplusplus
  33 extern "C" {
  34 #endif
  35 


  36 /*
  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
  43 #else
  44 #define _Complex_I      1.0fi
  45 #define _Imaginary_I    1.0fi
  46 #endif
  47 #define complex         _Complex
  48 #define imaginary       _Imaginary
  49 #undef  I
  50 #define I               _Imaginary_I
  51 
  52 extern float cabsf(float complex);
  53 extern float cargf(float complex);
  54 extern float cimagf(float complex);
  55 extern float crealf(float complex);


 107 extern long double creall(long double complex);
 108 extern long double complex cacoshl(long double complex);
 109 extern long double complex cacosl(long double complex);
 110 extern long double complex casinhl(long double complex);
 111 extern long double complex casinl(long double complex);
 112 extern long double complex catanhl(long double complex);
 113 extern long double complex catanl(long double complex);
 114 extern long double complex ccoshl(long double complex);
 115 extern long double complex ccosl(long double complex);
 116 extern long double complex cexpl(long double complex);
 117 extern long double complex clogl(long double complex);
 118 extern long double complex conjl(long double complex);
 119 extern long double complex cpowl(long double complex, long double complex);
 120 extern long double complex cprojl(long double complex);
 121 extern long double complex csinhl(long double complex);
 122 extern long double complex csinl(long double complex);
 123 extern long double complex csqrtl(long double complex);
 124 extern long double complex ctanhl(long double complex);
 125 extern long double complex ctanl(long double complex);
 126 

 127 #ifdef  __cplusplus
 128 }
 129 #endif

 130 #endif  /* _COMPLEX_H */