From 39dbd843f7a0067136dfd8cd28a48a6bb6ec296b Mon Sep 17 00:00:00 2001 From: Trammell hudson Date: Thu, 28 Sep 2017 21:52:06 -0400 Subject: [PATCH] min/max functions --- v3.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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 {