Mon, 16 Feb 2004 18:50:28 +0100
trunk: changeset 1318
Switched to using spaces only for indentation. Simple automatic "\t"
-> " " conversion; may need tuning later.
| 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 | { | |
| 62 | 16 | return (x<y ? x : y); |
| 60 | 17 | } |
| 18 | ||
| 19 | ||
| 20 | static int maxof(int x, int y) | |
| 21 | { | |
| 62 | 22 | return (x>y ? x : y); |
| 60 | 23 | } |
| 24 | ||
| 25 | ||
| 26 | #endif /* LIBTU_MINMAX_H */ | |
| 27 |