C99 complex numbers in cygwin?

2004-07-14 Thread dgun
I'm trying to port a program to cygwin that uses the C99 complex number standard and 
the complex.h library (carg, csin, etc.).  According to the gcc web page, this is 
mostly implemented in gcc 3.0 and above, but I can't find it in the cygwin gcc 
package.  Is this on purpose or an oversight?

I found it partially implemented in the mingw package (3.3-1), but not at all in the 
cygwin gcc package (3.3.1-3) (although a little testing shows that _Complex is 
recognized by the compiler and built-in complex functions work).

--
Daniel


-- 
___
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm


--
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/



RE: C99 complex numbers in cygwin?

2004-07-14 Thread Billinghurst, David (CALCRTS)
[EMAIL PROTECTED] wrote:
> I'm trying to port a program to cygwin that uses the C99 complex
> number standard and the complex.h library (carg, csin, etc.). 
> According to the gcc web page, this is mostly implemented in gcc 3.0
> and above, but I can't find it in the cygwin gcc package.  Is this on
> purpose or an oversight?
> 
> I found it partially implemented in the mingw package (3.3-1), but
> not at all in the cygwin gcc package (3.3.1-3) (although a little
> testing shows that _Complex is recognized by the compiler and
> built-in complex functions work).   
> 
> --
> Daniel

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.  

Is there anyone working on this, or interested?

--
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/



Re: C99 complex numbers in cygwin?

2004-07-14 Thread Christopher Faylor
On Thu, Jul 15, 2004 at 09:38:12AM +1000, Billinghurst, David (CALCRTS) wrote:
>[EMAIL PROTECTED] wrote:
>>I'm trying to port a program to cygwin that uses the C99 complex number
>>standard and the complex.h library (carg, csin, etc.).  According to
>>the gcc web page, this is mostly implemented in gcc 3.0 and above, but
>>I can't find it in the cygwin gcc package.  Is this on purpose or an
>>oversight?
>>
>>I found it partially implemented in the mingw package (3.3-1), but not
>>at all in the cygwin gcc package (3.3.1-3) (although a little testing
>>shows that _Complex is recognized by the compiler and built-in complex
>>functions work).
>
>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.
>
>Is there anyone working on this, or interested?

Interested in seeing them, sure.  I doubt if anyone is working on them.

cgf

--
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/



RE: C99 complex numbers in cygwin?

2004-07-15 Thread dgun
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.html#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?

--
Daniel

-- 
___
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm


--
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/



RE: C99 complex numbers in cygwin?

2004-07-15 Thread Larry Hall
At 01:52 PM 7/15/2004, you wrote:
>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.html#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?


No.  Gerrit said maybe sometime in August.


--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
838 Washington Street   (508) 893-9889 - FAX
Holliston, MA 01746 


--
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/



Re: C99 complex numbers in cygwin?

2004-07-15 Thread Christopher Faylor
On Thu, Jul 15, 2004 at 04:13:16PM -0400, Larry Hall wrote:
>At 01:52 PM 7/15/2004, you wrote:
>>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.html#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?
>
>No.  Gerrit said maybe sometime in August.

Can we get August moved up to next week, maybe?  Back in B20 days, we'd
August the complex numbers all of the time so that they would be
available ASAP.

--
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/



RE: C99 complex numbers in cygwin?

2004-07-17 Thread Billinghurst, David (CALCRTS)
> From: [EMAIL PROTECTED] 
>> 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/