qipp
2025-11-07 744722688187eb4991c72464e2bb5e06b244fee7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#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