this repo has no description
at fixPythonPipStalling 160 lines 6.4 kB view raw
1/* 2 * Copyright (c) 2002 Apple Computer, Inc. All rights reserved. 3 * 4 * @APPLE_LICENSE_HEADER_START@ 5 * 6 * The contents of this file constitute Original Code as defined in and 7 * are subject to the Apple Public Source License Version 1.1 (the 8 * "License"). You may not use this file except in compliance with the 9 * License. Please obtain a copy of the License at 10 * http://www.apple.com/publicsource and read it before using this file. 11 * 12 * This Original Code and all software distributed under the License are 13 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER 14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the 17 * License for the specific language governing rights and limitations 18 * under the License. 19 * 20 * @APPLE_LICENSE_HEADER_END@ 21 */ 22 23/******************************************************************************* 24* * 25* File: complex.h * 26* * 27* Contains: prototypes and macros germane to C99 complex math. * 28* * 29*******************************************************************************/ 30#ifndef __COMPLEX__ 31#define __COMPLEX__ 32 33#include "sys/cdefs.h" /* For definition of __DARWIN_UNIX03 et al */ 34 35#undef complex 36#define complex _Complex 37#undef _Complex_I 38#define _Complex_I (__extension__ 1.0iF) /* constant expression of type const float _Complex */ 39#undef I 40#define I _Complex_I 41 42#ifdef __cplusplus 43extern "C" { 44#endif 45 46extern double complex cacos( double complex ); 47extern double complex casin( double complex ); 48extern double complex catan( double complex ); 49 50extern double complex ccos( double complex ); 51extern double complex csin( double complex ); 52extern double complex ctan( double complex ); 53 54extern double complex cacosh( double complex ); 55extern double complex casinh( double complex ); 56extern double complex catanh( double complex ); 57 58extern double complex ccosh( double complex ); 59extern double complex csinh( double complex ); 60extern double complex ctanh( double complex ); 61 62extern double complex cexp( double complex ); 63extern double complex clog( double complex ); 64 65extern double cabs( double complex ); 66extern double complex cpow( double complex, double complex ); 67extern double complex csqrt( double complex ); 68 69extern double carg( double complex ); 70extern double cimag( double complex ); 71extern double complex conj( double complex ); 72extern double complex cproj( double complex ); 73extern double creal( double complex ); 74 75#if defined(__ppc__) || defined(__ppc64__) 76#if (!defined(__WANT_LONG_DOUBLE_FORMAT__)) 77#if defined(__APPLE_CC__) && defined(__LONG_DOUBLE_128__) 78#define __WANT_LONG_DOUBLE_FORMAT__ 128 79#else 80#define __WANT_LONG_DOUBLE_FORMAT__ 64 81#endif 82#endif 83#elif defined(__i386__) || defined( __x86_64__ ) 84#elif defined(__arm__) 85#define __LIBMLDBL_COMPAT(sym) /* NOTHING */ 86#else 87#error Unknown Architecture 88#endif 89 90#if ( __WANT_LONG_DOUBLE_FORMAT__ - 0L == 128L ) 91#define __LIBMLDBL_COMPAT(sym) __asm("_" __STRING(sym) "$LDBL128") 92#elif ( __WANT_LONG_DOUBLE_FORMAT__ - 0L == 64L ) 93#define __LIBMLDBL_COMPAT(sym) /* NOTHING */ 94#else 95#define __LIBMLDBL_COMPAT(sym) /* NOTHING */ 96#endif 97 98extern long double complex cacosl( long double complex ) __LIBMLDBL_COMPAT(cacosl); 99extern long double complex casinl( long double complex ) __LIBMLDBL_COMPAT(casinl); 100extern long double complex catanl( long double complex ) __LIBMLDBL_COMPAT(catanl); 101 102extern long double complex ccosl( long double complex ) __LIBMLDBL_COMPAT(ccosl); 103extern long double complex csinl( long double complex ) __LIBMLDBL_COMPAT(csinl); 104extern long double complex ctanl( long double complex ) __LIBMLDBL_COMPAT(ctanl); 105 106extern long double complex cacoshl( long double complex ) __LIBMLDBL_COMPAT(cacoshl); 107extern long double complex casinhl( long double complex ) __LIBMLDBL_COMPAT(casinhl); 108extern long double complex catanhl( long double complex ) __LIBMLDBL_COMPAT(catanhl); 109 110extern long double complex ccoshl( long double complex ) __LIBMLDBL_COMPAT(ccoshl); 111extern long double complex csinhl( long double complex ) __LIBMLDBL_COMPAT(csinhl); 112extern long double complex ctanhl( long double complex ) __LIBMLDBL_COMPAT(ctanhl); 113 114extern long double complex cexpl( long double complex ) __LIBMLDBL_COMPAT(cexpl); 115extern long double complex clogl( long double complex ) __LIBMLDBL_COMPAT(clogl); 116 117extern long double cabsl( long double complex ) __LIBMLDBL_COMPAT(cabsl); 118extern long double complex cpowl( long double complex, long double complex ) __LIBMLDBL_COMPAT(cpowl); 119extern long double complex csqrtl( long double complex ) __LIBMLDBL_COMPAT(csqrtl); 120 121extern long double cargl( long double complex ) __LIBMLDBL_COMPAT(cargl); 122extern long double cimagl( long double complex ) __LIBMLDBL_COMPAT(cimagl); 123extern long double complex conjl( long double complex ) __LIBMLDBL_COMPAT(conjl); 124extern long double complex cprojl( long double complex ) __LIBMLDBL_COMPAT(cprojl); 125extern long double creall( long double complex ) __LIBMLDBL_COMPAT(creall); 126 127extern float complex cacosf( float complex ); 128extern float complex casinf( float complex ); 129extern float complex catanf( float complex ); 130 131extern float complex ccosf( float complex ); 132extern float complex csinf( float complex ); 133extern float complex ctanf( float complex ); 134 135extern float complex cacoshf( float complex ); 136extern float complex casinhf( float complex ); 137extern float complex catanhf( float complex ); 138 139extern float complex ccoshf( float complex ); 140extern float complex csinhf( float complex ); 141extern float complex ctanhf( float complex ); 142 143extern float complex cexpf( float complex ); 144extern float complex clogf( float complex ); 145 146extern float cabsf( float complex ); 147extern float complex cpowf( float complex, float complex ); 148extern float complex csqrtf( float complex ); 149 150extern float cargf( float complex ); 151extern float cimagf( float complex ); 152extern float complex conjf( float complex ); 153extern float complex cprojf( float complex ); 154extern float crealf( float complex ); 155 156#ifdef __cplusplus 157} 158#endif 159 160#endif /* __COMPLEX__ */