1.优化设备命令。
This commit is contained in:
@@ -127,6 +127,14 @@ extern "C" {
|
||||
*/
|
||||
#define mr_min(a, b) ({ __typeof__ (a) _a = (a); __typeof__ (b) _b = (b); _a < _b ? _a : _b; })
|
||||
|
||||
/**
|
||||
* @brief This macro function swaps two values.
|
||||
*
|
||||
* @param a The first value.
|
||||
* @param b The second value.
|
||||
*/
|
||||
#define mr_swap(a, b) (a ^= b, b ^= a, a ^= b)
|
||||
|
||||
/**
|
||||
* @brief This macro function aligns the size up to a multiple of 4.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user