project_files/hwc/rtl/pmath.h
changeset 14185 801dc57371c3
parent 11655 e15eb10f1703
child 14197 3e551b0535fb
equal deleted inserted replaced
14184:ab77b144245d 14185:801dc57371c3
    16 
    16 
    17 #define     fpcrtl_arctan2(y, x)            atan2(y, x)
    17 #define     fpcrtl_arctan2(y, x)            atan2(y, x)
    18 
    18 
    19 float       __attribute__((overloadable))   fpcrtl_abs(float x);
    19 float       __attribute__((overloadable))   fpcrtl_abs(float x);
    20 double      __attribute__((overloadable))   fpcrtl_abs(double x);
    20 double      __attribute__((overloadable))   fpcrtl_abs(double x);
       
    21 long double __attribute__((overloadable))   fpcrtl_abs(long double x);
    21 int         __attribute__((overloadable))   fpcrtl_abs(int x);
    22 int         __attribute__((overloadable))   fpcrtl_abs(int x);
    22 int64_t     __attribute__((overloadable))   fpcrtl_abs(int64_t x);
    23 int64_t     __attribute__((overloadable))   fpcrtl_abs(int64_t x);
    23 
    24 
    24 /* emscripten cannot find math.h through our cmake */
    25 /* emscripten cannot find math.h through our cmake */
    25 #ifdef EMSCRIPTEN
    26 #ifdef EMSCRIPTEN
    26 double      exp(double);
    27 double      exp(double);
    27 double      log(double);
    28 double      log(double);
    28 double      sin(double);
    29 double      sin(double);
    29 double      cos(double);
    30 double      cos(double);
    30 double      fabs(double);
    31 double      fabs(double);
       
    32 float       fabsf(float);
       
    33 long double fabsl(long double);
    31 double      ceil(double);
    34 double      ceil(double);
    32 double      sqrt(double);
    35 double      sqrt(double);
    33 double      atan(double);
    36 double      atan(double);
    34 double      atan2(double, double);
    37 double      atan2(double, double);
    35 #endif
    38 #endif