libxmp/libxmpf in Omni Compiler
1.3.4
|
Go to the documentation of this file.
7 #ifndef _XMP_MATH_FUNCTION
8 #define _XMP_MATH_FUNCTION
12 #define _XMP_M_CEILi(a_, b_) (((a_) % (b_)) == 0 ? ((a_) / (b_)) : ((a_) / (b_)) + 1)
14 #define _XMP_M_FLOORi(a_, b_) ((a_) / (b_))
15 #define _XMP_M_COUNTi(a_, b_) ((b_) - (a_) + 1)
16 #define _XMP_M_COUNT_TRIPLETi(l_, u_, s_) (_XMP_M_FLOORi(((u_) - (l_)), s_) + 1)
19 #define _XMP_M_MAX(a_, b_) ((a_) > (b_) ? (a_) : (b_))
20 #define _XMP_M_MIN(a_, b_) ((a_) > (b_) ? (b_) : (a_))
30 #endif //_XMP_MATH_FUNCTION
int _XMP_modi_i_i(int value, int cycle)
Definition: xmp_math_function.c:19
int _XMP_modi_ll_i(long long value, int cycle)
Definition: xmp_math_function.c:9
int _XMP_gcd(int a, int b)
Definition: xmp_math_function.c:57
int _XMP_lcm(int a, int b)
Definition: xmp_math_function.c:66
int _XMP_floori(int a, int b)
Definition: xmp_math_function.c:43
int _XMP_ceili(int a, int b)
Definition: xmp_math_function.c:29