Define minof/maxof as inline functions
[notion.git] / libtu / minmax.h
blob1d70524ce355bfb7178e723f405e28a68b29e9fa
1 /*
2 * libtu/minmax.h
4 * Copyright (c) Tuomo Valkonen 1999-2004.
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 */
10 #ifndef LIBTU_MINMAX_H
11 #define LIBTU_MINMAX_H
14 inline int minof(int x, int y)
16 return (x<y ? x : y);
20 inline int maxof(int x, int y)
22 return (x>y ? x : y);
26 #endif /* LIBTU_MINMAX_H */