min/max functions

This commit is contained in:
Trammell hudson 2017-09-28 21:52:06 -04:00
parent 36aba4db78
commit 39dbd843f7
Failed to extract signature

17
v3.h
View File

@ -25,6 +25,23 @@ sign(
}
static inline float
min(
const float a,
const float b
)
{
return a < b ? a : b;
}
static inline float
max(
const float a,
const float b
)
{
return a > b ? a : b;
}
typedef struct
{