Changeset 3830
- Timestamp:
- Mar 2, 2014, 12:56:17 AM (11 years ago)
- Location:
- trunk/libc
- Files:
-
- 3 added
- 1 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libc/include/complex.h
r2150 r3830 41 41 #endif 42 42 43 #define complex _Complex 44 #define I _Complex_I 43 #if defined(_MSC_VER) || defined(__WATCOMC__) /* While watcom has _Complex, it causes compiler crashes. */ 44 typedef struct __float_complex { float __m_Real, __m_Imag; } __float_complex; 45 typedef struct __double_complex { double __m_Real, __m_Imag; } __double_complex; 46 typedef struct __long_double_complex { long double __m_Real, __m_Imag; } __long_double_complex; 47 #else 48 # define __float_complex __float_complex 49 # define __double_complex __double_complex 50 # define __long_double_complex __long_double_complex 51 52 # define complex _Complex 53 # define I _Complex_I 54 #endif 55 45 56 46 57 #include <sys/cdefs.h> … … 48 59 __BEGIN_DECLS 49 60 50 double cabs( doublecomplex);51 float cabsf( floatcomplex);52 double cimag( doublecomplex);53 float cimagf( floatcomplex);54 long double cimagl( long doublecomplex);55 double complex conj(doublecomplex);56 float complex conjf(floatcomplex);57 long doublecomplex58 conjl( long doublecomplex);59 double creal( doublecomplex);60 float crealf( floatcomplex);61 long double creall( long doublecomplex);61 double cabs(__double_complex); 62 float cabsf(__float_complex); 63 double cimag(__double_complex); 64 float cimagf(__float_complex); 65 long double cimagl(__long_double_complex); 66 __double_complex conj(__double_complex); 67 __float_complex conjf(__float_complex); 68 __long_double_complex 69 conjl(__long_double_complex); 70 double creal(__double_complex); 71 float crealf(__float_complex); 72 long double creall(__long_double_complex); 62 73 63 74 /* bird: */ 64 long double cabsl( long doublecomplex);65 double complex cacos(doublecomplex);66 float complex cacosf(floatcomplex);67 double complex cacosh(doublecomplex);68 float complex cacoshf(floatcomplex);69 long double complex cacoshl(long doublecomplex);70 long double complex cacosl(long doublecomplex);71 double carg( doublecomplex);72 float cargf( floatcomplex);73 long double cargl( long doublecomplex);74 double complex casin(doublecomplex);75 float complex casinf(floatcomplex);76 double complex casinh(doublecomplex);77 float complex casinhf(floatcomplex);78 long double complex casinhl(long doublecomplex);79 long double complex casinl(long doublecomplex);80 double complex catan(doublecomplex);81 float complex catanf(floatcomplex);82 double complex catanh(doublecomplex);83 float complex catanhf(floatcomplex);84 long double complex catanhl(long doublecomplex);85 long double complex catanl(long doublecomplex);86 double complex ccos(doublecomplex);87 float complex ccosf(floatcomplex);88 double complex ccosh(doublecomplex);89 float complex ccoshf(floatcomplex);90 long double complex ccoshl(long doublecomplex);91 long double complex ccosl(long doublecomplex);92 double complex cexp(doublecomplex);93 float complex cexpf(floatcomplex);94 long double complex cexpl(long doublecomplex);95 double complex clog(doublecomplex);96 float complex clogf(floatcomplex);97 long double complex clogl(long doublecomplex);98 double complex cpow(double complex, doublecomplex);99 float complex cpowf(float complex, floatcomplex);100 long double complex cpowl(long double complex, long doublecomplex);101 double complex cproj(doublecomplex);102 float complex cprojf(floatcomplex);103 long double complex cprojl(long doublecomplex);104 double complex csin(doublecomplex);105 float complex csinf(floatcomplex);106 double complex csinh(doublecomplex);107 float complex csinhf(floatcomplex);108 long double complex csinhl(long doublecomplex);109 long double complex csinl(long doublecomplex);110 double complex csqrt(doublecomplex);111 float complex csqrtf(floatcomplex);112 long double complex csqrtl(long doublecomplex);113 double complex ctan(doublecomplex);114 float complex ctanf(floatcomplex);115 double complex ctanh(doublecomplex);116 float complex ctanhf(floatcomplex);117 long double complex ctanhl(long doublecomplex);118 long double complex ctanl(long doublecomplex);75 long double cabsl(__long_double_complex); 76 __double_complex cacos(__double_complex); 77 __float_complex cacosf(__float_complex); 78 __double_complex cacosh(__double_complex); 79 __float_complex cacoshf(__float_complex); 80 __long_double_complex cacoshl(__long_double_complex); 81 __long_double_complex cacosl(__long_double_complex); 82 double carg(__double_complex); 83 float cargf(__float_complex); 84 long double cargl(__long_double_complex); 85 __double_complex casin(__double_complex); 86 __float_complex casinf(__float_complex); 87 __double_complex casinh(__double_complex); 88 __float_complex casinhf(__float_complex); 89 __long_double_complex casinhl(__long_double_complex); 90 __long_double_complex casinl(__long_double_complex); 91 __double_complex catan(__double_complex); 92 __float_complex catanf(__float_complex); 93 __double_complex catanh(__double_complex); 94 __float_complex catanhf(__float_complex); 95 __long_double_complex catanhl(__long_double_complex); 96 __long_double_complex catanl(__long_double_complex); 97 __double_complex ccos(__double_complex); 98 __float_complex ccosf(__float_complex); 99 __double_complex ccosh(__double_complex); 100 __float_complex ccoshf(__float_complex); 101 __long_double_complex ccoshl(__long_double_complex); 102 __long_double_complex ccosl(__long_double_complex); 103 __double_complex cexp(__double_complex); 104 __float_complex cexpf(__float_complex); 105 __long_double_complex cexpl(__long_double_complex); 106 __double_complex clog(__double_complex); 107 __float_complex clogf(__float_complex); 108 __long_double_complex clogl(__long_double_complex); 109 __double_complex cpow(__double_complex, __double_complex); 110 __float_complex cpowf(__float_complex, __float_complex); 111 __long_double_complex cpowl(__long_double_complex, __long_double_complex); 112 __double_complex cproj(__double_complex); 113 __float_complex cprojf(__float_complex); 114 __long_double_complex cprojl(__long_double_complex); 115 __double_complex csin(__double_complex); 116 __float_complex csinf(__float_complex); 117 __double_complex csinh(__double_complex); 118 __float_complex csinhf(__float_complex); 119 __long_double_complex csinhl(__long_double_complex); 120 __long_double_complex csinl(__long_double_complex); 121 __double_complex csqrt(__double_complex); 122 __float_complex csqrtf(__float_complex); 123 __long_double_complex csqrtl(__long_double_complex); 124 __double_complex ctan(__double_complex); 125 __float_complex ctanf(__float_complex); 126 __double_complex ctanh(__double_complex); 127 __float_complex ctanhf(__float_complex); 128 __long_double_complex ctanhl(__long_double_complex); 129 __long_double_complex ctanl(__long_double_complex); 119 130 120 131 /* gnu extensions? */ 121 double complex clog10(doublecomplex);122 float complex clog10f(floatcomplex);123 long double complex clog10l(long doublecomplex);132 __double_complex clog10(__double_complex); 133 __float_complex clog10f(__float_complex); 134 __long_double_complex clog10l(__long_double_complex); 124 135 __END_DECLS 125 136 -
trunk/libc/src/libc/math/Makefile.kmk
-
Property svn:eol-style
set to
native
r2813 r3830 35 35 libc_libc_math_SOURCES = \ 36 36 $(PATH_LIBC_SRC)/libc/math/cbrtl.c \ 37 $(PATH_LIBC_SRC)/libc/math/cabsl.c \ 38 $(PATH_LIBC_SRC)/libc/math/carg.c \ 39 $(PATH_LIBC_SRC)/libc/math/cargl.c \ 37 40 $(PATH_LIBC_SRC)/libc/math/nan.c \ 38 41 $(PATH_LIBC_SRC)/libc/math/nanf.c \ -
Property svn:eol-style
set to
-
trunk/libc/src/libc/math/nan.c
-
Property svn:eol-style
set to
native
-
Property svn:eol-style
set to
-
trunk/libc/src/libc/math/nanf.c
-
Property svn:eol-style
set to
native
-
Property svn:eol-style
set to
-
trunk/libc/src/libc/math/nanl.c
-
Property svn:eol-style
set to
native
-
Property svn:eol-style
set to
Note:
See TracChangeset
for help on using the changeset viewer.