minmax.h

Mon, 16 Feb 2004 18:50:28 +0100

author
tuomov
date
Mon, 16 Feb 2004 18:50:28 +0100
changeset 62
aae5facf9fc5
parent 60
a4033700e35c
permissions
-rw-r--r--

trunk: changeset 1318
Switched to using spaces only for indentation. Simple automatic "\t"
-> " " conversion; may need tuning later.

/*
 * libtu/minmax.h
 *
 * Copyright (c) Tuomo Valkonen 1999-2004. 
 *
 * You may distribute and modify this library under the terms of either
 * the Clarified Artistic License or the GNU LGPL, version 2.1 or later.
 */

#ifndef LIBTU_MINMAX_H
#define LIBTU_MINMAX_H


static int minof(int x, int y)
{
    return (x<y ? x : y);
}


static int maxof(int x, int y)
{
    return (x>y ? x : y);
}


#endif /* LIBTU_MINMAX_H */

mercurial