Mon, 16 Feb 2004 18:04:44 +0100
trunk: changeset 1313
Moved Ion object system and other generic code from Ion to libtu.
60 | 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 |