3 /*******************************************************************************/
4 /* Copyright (C) 2007,2008 Jonathan Moore Liles */
6 /* This program is free software; you can redistribute it and/or modify it */
7 /* under the terms of the GNU General Public License as published by the */
8 /* Free Software Foundation; either version 2 of the License, or (at your */
9 /* option) any later version. */
11 /* This program is distributed in the hope that it will be useful, but WITHOUT */
12 /* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
13 /* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for */
16 /* You should have received a copy of the GNU General Public License along */
17 /* with This program; see the file COPYING. If not,write to the Free Software */
18 /* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
19 /*******************************************************************************/
23 typedef unsigned char byte_t
;
24 typedef double tick_t
;
25 typedef unsigned int uint
;
28 /* #define min(x,y) ((x) < (y) ? (x) : (y)) */
29 /* #define max(x,y) ((x) > (y) ? (x) : (y)) */
34 #define elementsof(x) (sizeof((x)) / sizeof((x)[0]))