delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/07/17/05:43:02

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
content-class: urn:content-classes:message
MIME-Version: 1.0
Subject: RE: C99 complex numbers in cygwin?
Date: Sat, 17 Jul 2004 19:41:40 +1000
Message-ID: <8ED2FA87C8ACC04192709688DDFD5F5F436383@calttsv025.cal.riotinto.org>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
From: "Billinghurst, David (CALCRTS)" <david DOT billinghurst AT comalco DOT riotinto DOT com DOT au>
To: <dgun AT umpire DOT com>, <cygwin AT cygwin DOT com>
Cc: <newlib AT sources DOT redhat DOT com>
X-OriginalArrivalTime: 17 Jul 2004 09:41:42.0020 (UTC) FILETIME=[43F61C40:01C46BE2]
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id i6H9h0vC005113

> From: dgun AT umpire DOT com 
>> From: "Billinghurst, David (CALCRTS)"
>> > gcc uses the complex math functions from the system libraries,
>> > (excluding builtins).  They aren't in newlib, so cygwin 
>> doesn't have them.
>> > 
>> > I, too, would like them as they are required by gfortran.
>> which will be 
>> > (is) the fortran compiler in gcc-3.5.  
>> 
>> UPDATE: This just in...
>> 
>> http://gcc.gnu.org/onlinedocs/gcc-3.4.1/gcc/Other-Builtins.htm
>l#Other%20Builtins
>
>"The ISO C99 functions ... cabsf, cabsl, cabs, cacosf, cacoshf, cacoshl,
>cacosh, cacosl, cacos, cargf, cargl, carg, casinf, casinhf, casinhl,
>casinh, casinl, casin, catanf, catanhf, catanhl, catanh, catanl, catan,
>cbrtf, cbrtl, cbrt, ccosf, ccoshf, ccoshl, ccosh, ccosl, ccos, cexpf,
>cexpl, cexp, cimagf, cimagl, cimag, conjf, conjl, conj,..., cpowf,
>cpowl, cpow, cprojf, cprojl, cproj, crealf, creall, creal, csinf, csinhf,
>csinhl, csinh, csinl, csin, csqrtf, csqrtl, csqrt, ctanf, ctanhf, ctanhl,
>ctanh, ctanl, ctan ... are handled as built-in functions except in strict
>ISO C90 mode (-ansi or -std=c89)."
>
>Sounds like I just need to wait for gcc 3.4.  Is there a build of it
>available for cygwin yet?

3.4 is not enough.  You still need library support for most of the math 
functions.

I got working float and double functions from Stephen Moshier's code
http://www.moshier.net in a few hours coding last night.  Seems to work
with gcc CVS - accurate to one or two bits.  Need some polishing though.

 


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019