Import libtu instead of using submodules
[notion/jeffpc.git] / libtu / minmax.h
blob5866d7fd8c9c62b9e80f1650827d1f9cbda31e30
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 static int minof(int x, int y)
16 return (x<y ? x : y);
20 static int maxof(int x, int y)
22 return (x>y ? x : y);
26 #endif /* LIBTU_MINMAX_H */