diff options
author | rodri <rgl@antares-labs.eu> | 2024-08-27 12:06:45 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2024-08-27 12:06:45 +0000 |
commit | 3b06ad551d6706907b0d6cbf25807e1ef7e62ca9 (patch) | |
tree | 8094b9befe8586391fc5bbac7de000362afa9ef0 /solar.c | |
parent | 981b643df2def9846c112469e94644500015b8e6 (diff) | |
download | 3dee-3b06ad551d6706907b0d6cbf25807e1ef7e62ca9.tar.gz 3dee-3b06ad551d6706907b0d6cbf25807e1ef7e62ca9.tar.bz2 3dee-3b06ad551d6706907b0d6cbf25807e1ef7e62ca9.zip |
remove duplicate min and max functions.
Diffstat (limited to 'solar.c')
-rw-r--r-- | solar.c | 28 |
1 files changed, 8 insertions, 20 deletions
@@ -168,26 +168,14 @@ static int showskybox; static int doprof; static int showhud; -static int -min(int a, int b) -{ - return a < b? a: b; -} - -static int -max(int a, int b) -{ - return a > b? a: b; -} - static Point3 minpt3(Point3 a, Point3 b) { return (Point3){ - fmin(a.x, b.x), - fmin(a.y, b.y), - fmin(a.z, b.z), - fmin(a.w, b.w) + min(a.x, b.x), + min(a.y, b.y), + min(a.z, b.z), + min(a.w, b.w) }; } @@ -195,10 +183,10 @@ static Point3 maxpt3(Point3 a, Point3 b) { return (Point3){ - fmax(a.x, b.x), - fmax(a.y, b.y), - fmax(a.z, b.z), - fmax(a.w, b.w) + max(a.x, b.x), + max(a.y, b.y), + max(a.z, b.z), + max(a.w, b.w) }; } |