mirror of
https://github.com/Metabolix/HackBGRT.git
synced 2026-09-26 22:11:32 -07:00
Add min helper
This commit is contained in:
@@ -23,6 +23,13 @@ static inline int max(int a, int b) {
|
|||||||
return a > b ? a : b;
|
return a > b ? a : b;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the smaller of two numbers.
|
||||||
|
*/
|
||||||
|
static inline int min(int a, int b) {
|
||||||
|
return a < b ? a : b;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Trim BOM, spaces and tabs from the beginning of a string.
|
* Trim BOM, spaces and tabs from the beginning of a string.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user