Changeset 3836


Ignore:
Timestamp:
Mar 16, 2014, 6:39:23 PM (11 years ago)
Author:
bird
Message:

build fixes

Location:
trunk/libc
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/libc/include/complex.h

    r3832 r3836  
    4848typedef struct __long_double_complex { long double __m_Real, __m_Imag; } __long_double_complex;
    4949#else
    50 # define __float_complex        __float_complex
    51 # define __double_complex       __double_complex
    52 # define __long_double_complex  __long_double_complex
     50# define __float_complex        float complex
     51# define __double_complex       double complex
     52# define __long_double_complex  long double complex
    5353
    5454# define complex                _Complex
  • trunk/libc/include/sys/cdefs.h

    r3835 r3836  
    174174# define __KLIBC_COMPLEX_IMAG(a_uValue)     ( (a_uValue).__m_Imag )
    175175#else
    176 # define __KLIBC_COMPLEX_REAL(a_uValue)     real (a_uValue)
    177 # define __KLIBC_COMPLEX_IMAG(a_uValue)     imag (a_uValue)
     176# define __KLIBC_COMPLEX_REAL(a_uValue)     __real__ (a_uValue)
     177# define __KLIBC_COMPLEX_IMAG(a_uValue)     __imag__ (a_uValue)
    178178#endif
    179179
  • trunk/libc/src/libc/math/carg.c

    r3830 r3836  
    1111#include <math.h>
    1212
    13 long double _STD(carg)(__double_complex lird)
     13double _STD(carg)(__double_complex ird)
    1414{
    15     double lrdReal = __KLIBC_COMPLEX_REAL(lird);
    16     double lrdImag = __KLIBC_COMPLEX_IMAG(lird);
    17     return atan2(lrdReal, lrdImag);
     15    double rdReal = __KLIBC_COMPLEX_REAL(ird);
     16    double rdImag = __KLIBC_COMPLEX_IMAG(ird);
     17    return atan2(rdReal, rdImag);
    1818}
    1919
Note: See TracChangeset for help on using the changeset viewer.