* include/complex.h: Remove __attribute__ ((const)) from

transcendantal and trig functions.  Replace __attribute__ ((const))
	with __MINGW_ATTRIB_CONST on other declarations.
This commit is contained in:
Danny Smith 2004-08-07 07:58:01 +00:00
parent 889a573ad8
commit ac8cbf3d2d
2 changed files with 32 additions and 26 deletions

View File

@ -1,3 +1,9 @@
2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
* include/complex.h: Remove __attribute__ ((const)) from
transcendantal and trig functions. Replace __attribute__ ((const))
with __MINGW_ATTRIB_CONST on other declarations.
2004-08-07 Danny Smith <dannysmith@users.sourceforge.net> 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net>
* include/wchar.h: Reorganize, avoid including other headers. * include/wchar.h: Reorganize, avoid including other headers.

View File

@ -47,47 +47,47 @@ extern "C" {
#ifndef RC_INVOKED #ifndef RC_INVOKED
/* TODO: float and long double versions */ /* TODO: float and long double versions */
double __attribute__ ((const)) creal (double _Complex); double __MINGW_ATTRIB_CONST creal (double _Complex);
double __attribute__ ((const)) cimag (double _Complex); double __MINGW_ATTRIB_CONST cimag (double _Complex);
double __attribute__ ((const)) carg (double _Complex); double __MINGW_ATTRIB_CONST carg (double _Complex);
double __attribute__ ((const)) cabs (double _Complex); double __MINGW_ATTRIB_CONST cabs (double _Complex);
double _Complex __attribute__ ((const)) conj (double _Complex); double _Complex __MINGW_ATTRIB_CONST conj (double _Complex);
double _Complex __attribute__ ((const)) cacos (double _Complex); double _Complex cacos (double _Complex);
double _Complex __attribute__ ((const)) casin (double _Complex); double _Complex casin (double _Complex);
double _Complex __attribute__ ((const)) catan (double _Complex); double _Complex catan (double _Complex);
double _Complex __attribute__ ((const)) ccos (double _Complex); double _Complex ccos (double _Complex);
double _Complex __attribute__ ((const)) csin (double _Complex); double _Complex csin (double _Complex);
double _Complex __attribute__ ((const)) ctan (double _Complex); double _Complex ctan (double _Complex);
double _Complex __attribute__ ((const)) cacosh (double _Complex); double _Complex cacosh (double _Complex);
double _Complex __attribute__ ((const)) casinh (double _Complex); double _Complex casinh (double _Complex);
double _Complex __attribute__ ((const)) catanh (double _Complex); double _Complex catanh (double _Complex);
double _Complex __attribute__ ((const)) ccosh (double _Complex); double _Complex ccosh (double _Complex);
double _Complex __attribute__ ((const)) csinh (double _Complex); double _Complex csinh (double _Complex);
double _Complex __attribute__ ((const)) ctanh (double _Complex); double _Complex ctanh (double _Complex);
double _Complex __attribute__ ((const)) cexp (double _Complex); double _Complex cexp (double _Complex);
double _Complex __attribute__ ((const)) clog (double _Complex); double _Complex clog (double _Complex);
double _Complex __attribute__ ((const)) cpow (double _Complex, double _Complex); double _Complex cpow (double _Complex, double _Complex);
double _Complex __attribute__ ((const)) csqrt (double _Complex); double _Complex csqrt (double _Complex);
double _Complex __attribute__ ((const)) cproj (double _Complex); double _Complex __MINGW_ATTRIB_CONST cproj (double _Complex);
#ifdef __GNUC__ #ifdef __GNUC__
__CRT_INLINE double __attribute__ ((const)) creal (double _Complex _Z) __CRT_INLINE double __MINGW_ATTRIB_CONST creal (double _Complex _Z)
{ {
return __real__ _Z; return __real__ _Z;
} }
__CRT_INLINE double __attribute__ ((const)) cimag (double _Complex _Z) __CRT_INLINE double __MINGW_ATTRIB_CONST cimag (double _Complex _Z)
{ {
return __imag__ _Z; return __imag__ _Z;
} }
__CRT_INLINE double _Complex __attribute__ ((const)) conj (double _Complex _Z) __CRT_INLINE double _Complex __MINGW_ATTRIB_CONST conj (double _Complex _Z)
{ {
return __extension__ ~_Z; return __extension__ ~_Z;
} }
__CRT_INLINE double __attribute__ ((const)) carg (double _Complex _Z) __CRT_INLINE double __MINGW_ATTRIB_CONST carg (double _Complex _Z)
{ {
double res; double res;
__asm__ ("fpatan;" __asm__ ("fpatan;"