summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2024-08-27 12:05:08 +0000
committerrodri <rgl@antares-labs.eu>2024-08-27 12:05:08 +0000
commit2c410b56f801708ec11a1af6cdd995d69e9db059 (patch)
tree06abcdaa277f02ee1138c82693cb72389ab1659c /util.c
parent5ebbe977e9a25feff261b7c5fbbfe7af777dd681 (diff)
downloadlibgraphics-2c410b56f801708ec11a1af6cdd995d69e9db059.tar.gz
libgraphics-2c410b56f801708ec11a1af6cdd995d69e9db059.tar.bz2
libgraphics-2c410b56f801708ec11a1af6cdd995d69e9db059.zip
replace f?(min|max) functions with type-agnostic macros.
this simplifies the code and serves as another shadeop to use on application shaders.
Diffstat (limited to 'util.c')
-rw-r--r--util.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/util.c b/util.c
index b536147..4568eac 100644
--- a/util.c
+++ b/util.c
@@ -8,30 +8,6 @@
#include "graphics.h"
#include "internal.h"
-int
-min(int a, int b)
-{
- return a < b? a: b;
-}
-
-int
-max(int a, int b)
-{
- return a > b? a: b;
-}
-
-double
-fmin(double a, double b)
-{
- return a < b? a: b;
-}
-
-double
-fmax(double a, double b)
-{
- return a > b? a: b;
-}
-
Point2
modulapt2(Point2 a, Point2 b)
{