This is the mail archive of the cygwin-patches mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

patch to add C99 complex


here is the cygwin follow up of the patch 
sent to newlib mailing list.

Marco


--- Mer 6/10/10, Marco Atzeri  ha scritto:

> The attached patch add C99 Complex to
> newlib
> using all NETBSD source except "long double" ones.
> 
> Tested on cygwin:
> 
> a = 1.000000+1.000000I
> b = 3.141590+1.200000I
> a+b = 4.141590+2.200000I
> a*b = 1.941590+4.341590I
> 1/c = 0.500000-0.500000I
> -a = -1.000000-1.000000I
> abs(a) = 1.414214+0.000000I
> cacos(a) = 0.904557-1.061275I
> casin(a) = 0.666239+1.061275I
> catan(a) = 1.017222+0.402359I
> ccos(a) = 0.833730-0.988898I
> csin(a) = 1.298458+0.634964I
> ctan(a) = 0.271753+1.083923I
> cacosh(a) = 1.061275+0.904557I
> casinh(a) = 1.061275+0.666239I
> catanh(a) = 0.402359+1.017222I
> ccosh(a) = 0.833730+0.988898I
> csinh(a) = 0.634964+1.298458I
> ctanh(a) = 1.083923+0.271753I
> cexp(a) = 1.468694+2.287355I
> clog(a) = 0.346574+0.785398I
> cpow(a,b) = -1.119157+0.295690I
> csqrt(a) = 1.098684+0.455090I
> carg(a) = 0.785398+0.000000I
> cimag(a) = 1.000000+0.000000I
> conj(a) = 1.000000-1.000000I
> cproj(a) = 1.000000+1.000000I
> creal(a) = 1.000000+0.000000I
> 
> Regards
> Marco
> 
> 
> ? ? ?


      
diff -uNr -x Makefile.in -x '*~' -x '*.m4' -x autom4te.cache -x configure src_clone_orig/winsup/cygwin/ChangeLog src_clone/winsup/cygwin/ChangeLog
--- src_clone_orig/winsup/cygwin/ChangeLog	2010-10-05 05:36:25.843750000 +0200
+++ src_clone/winsup/cygwin/ChangeLog	2010-10-05 23:25:39.968750000 +0200
@@ -1,3 +1,12 @@
+2010-10-05  Marco Atzeri  <marco_atzeri@yahoo.it>
+
+        * cygwin.din ( cacos cacosf cacosh cacoshf carg cargf 
+	   casin casinf casinh casinhf catan catanf catanh catanhf
+	   ccos ccosf ccosh ccoshf cexp cexpf cimag cimagf clog clogf 
+	   conj conjf cpow cpowf cproj cprojf creal crealf 
+	   csin csinf csinh csinhf csqrt csqrtf 
+	   ctan ctanf ctanh ctanhf): Export new complex math functions 
+
 2010-09-02  Corinna Vinschen  <corinna@vinschen.de>
 
 	* fhandler_procsys.cc (fhandler_procsys::exists): Return virt_none
diff -uNr -x Makefile.in -x '*~' -x '*.m4' -x autom4te.cache -x configure src_clone_orig/winsup/cygwin/cygwin.din src_clone/winsup/cygwin/cygwin.din
--- src_clone_orig/winsup/cygwin/cygwin.din	2010-10-05 05:36:28.468750000 +0200
+++ src_clone/winsup/cygwin/cygwin.din	2010-10-04 17:34:32.787510000 +0200
@@ -164,17 +164,37 @@
 _cabs = cabs NOSIGFE
 cabsf NOSIGFE
 _cabsf = cabsf NOSIGFE
+cacos NOSIGFE
+cacosf NOSIGFE
+cacosh NOSIGFE
+cacoshf NOSIGFE
 calloc SIGFE
 _calloc = calloc SIGFE
 canonicalize_file_name SIGFE
+carg NOSIGFE
+cargf NOSIGFE
+casin NOSIGFE
+casinf NOSIGFE
+casinh NOSIGFE
+casinhf NOSIGFE
+catan NOSIGFE
+catanf NOSIGFE
+catanh NOSIGFE
+catanhf NOSIGFE
 cbrt NOSIGFE
 _cbrt = cbrt NOSIGFE
 cbrtf NOSIGFE
 _cbrtf = cbrtf NOSIGFE
+ccos NOSIGFE
+ccosf NOSIGFE
+ccosh NOSIGFE
+ccoshf NOSIGFE
 ceil NOSIGFE
 _ceil = ceil NOSIGFE
 ceilf NOSIGFE
 _ceilf = ceilf NOSIGFE
+cexp NOSIGFE
+cexpf NOSIGFE
 cfgetispeed NOSIGFE
 cfgetospeed NOSIGFE
 cfmakeraw NOSIGFE
@@ -189,6 +209,8 @@
 _chown32 = chown32 SIGFE
 chroot SIGFE
 _chroot = chroot SIGFE
+cimag NOSIGFE
+cimagf NOSIGFE
 cleanup_glue NOSIGFE
 clearerr SIGFE
 _clearerr = clearerr SIGFE
@@ -197,12 +219,16 @@
 clock_getres SIGFE
 clock_gettime SIGFE
 clock_setres SIGFE
+clog NOSIGFE
+clogf NOSIGFE
 close SIGFE
 _close = close SIGFE
 closedir SIGFE
 _closedir = closedir SIGFE
 closelog SIGFE
 confstr NOSIGFE
+conj NOSIGFE
+conjf NOSIGFE
 connect = cygwin_connect SIGFE
 copysign NOSIGFE
 _copysign = copysign NOSIGFE
@@ -216,8 +242,24 @@
 _cosh = cosh NOSIGFE
 coshf NOSIGFE
 _coshf = coshf NOSIGFE
+cpow NOSIGFE
+cpowf NOSIGFE
+cproj NOSIGFE
+cprojf NOSIGFE
+creal NOSIGFE
+crealf NOSIGFE
 creat SIGFE
 _creat = creat SIGFE
+csin NOSIGFE
+csinf NOSIGFE
+csinh NOSIGFE
+csinhf NOSIGFE
+csqrt NOSIGFE
+csqrtf NOSIGFE
+ctan NOSIGFE
+ctanf NOSIGFE
+ctanh NOSIGFE
+ctanhf NOSIGFE
 ctermid SIGFE
 ctime SIGFE
 _ctime = ctime SIGFE

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]