Choco OS
V.0.16.9.0
Join to the chocolate world
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
oc_math.h
Go to the documentation of this file.
1
28
#ifndef SYSTEM_LIBRARIES_INC_OC_MATH_H_
29
#define SYSTEM_LIBRARIES_INC_OC_MATH_H_
30
36
#define _________________________________________INTERFACE_MACROS_SECTION___________________________________________________________________
37
40
//==========================================================================================================================================
45
//==========================================================================================================================================
46
#define oC_ABS(A,B) ( ((A) > (B)) ? ((A)-(B)) : ((B)-(A)) )
47
48
#define oC_MIN(A,B) ( ((A)>(B)) ? (B) : (A) )
49
#define oC_MAX(A,B) ( ((A)>(B)) ? (A) : (B) )
50
51
#undef _________________________________________INTERFACE_MACROS_SECTION___________________________________________________________________
52
59
#define _________________________________________STATIC_INLINE_SECTION______________________________________________________________________
60
63
static
inline
bool
oC_IsPowerOf2(oC_UInt_t Count )
64
{
65
return
((Count != 0) && !(Count & (Count - 1)));
66
}
67
68
#undef _________________________________________STATIC_INLINE_SECTION______________________________________________________________________
69
71
#endif
/* SYSTEM_LIBRARIES_INC_OC_MATH_H_ */
Source
system
libraries
inc
oc_math.h
Generated on Fri Oct 20 2017 19:56:09 for Choco OS by
1.8.11