]> git.decadent.org.uk Git - ion3.git/blob - libtu/minmax.h
[svn-inject] Installing original source of ion3
[ion3.git] / libtu / minmax.h
1 /*
2  * libtu/minmax.h
3  *
4  * Copyright (c) Tuomo Valkonen 1999-2004. 
5  *
6  * You may distribute and modify this library under the terms of either
7  * the Clarified Artistic License or the GNU LGPL, version 2.1 or later.
8  */
9
10 #ifndef LIBTU_MINMAX_H
11 #define LIBTU_MINMAX_H
12
13
14 static int minof(int x, int y)
15 {
16     return (x<y ? x : y);
17 }
18
19
20 static int maxof(int x, int y)
21 {
22     return (x>y ? x : y);
23 }
24
25
26 #endif /* LIBTU_MINMAX_H */
27