summaryrefslogtreecommitdiff
path: root/dviware/quicspool/standard/standmacro.h
blob: bfdf9878670814d2a65e43fc3cc5f0dd0cfdb6bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* $Header: standmacro.h,v 1.1 88/01/15 13:07:14 simpson Rel $ */
/*
$Log:	standmacro.h,v $
 * Revision 1.1  88/01/15  13:07:14  simpson
 * initial release
 * 
 * Revision 0.1  87/12/11  18:34:15  simpson
 * beta test
 * 
*/
#ifndef STANDARD_MACRO
#define STANDARD_MACRO
#define	MAX(x, y) ((x) > (y) ? (x) : (y))
#define	MIN(x, y) ((x) < (y) ? (x) : (y))
#define	ABS(x) ((x) < 0 ? -(x) : (x))
#define ROUND(x)   ((int)(((x)<0)?((x)-0.5):((x)+0.5)))
#define CEILING(x) (((x)>=0)?(int)(x)==(x)?(int)(x):(int)((x)+1):(int)(x))
#define FLOOR(x)   (((x)>=0)?(int)(x):(int)(x)==(x)?(int)(x):(int)((x)-1))
#define EQ(s, t)	(!strcmp(s, t))
#define EQN(s, t, n)	(!strncmp(s, t, n))
#endif STANDARD_MACRO