#ifndef ALG_PLATFORM_X86_MATHMACRO_H__ #define ALG_PLATFORM_X86_MATHMACRO_H__ #include "_x86.h" __inline float fclipf(float x, float y) { if (x < 0 && x < y) x = y; else if (x > 0 && x > y) x = y; return x; } //__inline double copysign(double x, double y) //{ // if (y > 0 && x < 0) { // x = -x; // } // else if (y<0 && x>0) { // x = -x; // } // return x; //} #define fir //#define fmaxf(x,y) ((x)>(y)?(x):(y)) #endif