diff --git a/v3.h b/v3.h index 8e5b485..f6617c4 100644 --- a/v3.h +++ b/v3.h @@ -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 {