1 /* Martin Asser Hansen (mail@maasha.dk) Copyright (C) 2008 - All right reserved */
3 /* Including standard libraries */
14 typedef unsigned char uchar;
15 typedef unsigned short ushort;
16 typedef long long llong;
22 /* Macros for determining min or max of two given values. */
23 #define MAX( a, b ) a < b ? b : a
24 #define MIN( a, b ) a > b ? b : a
26 /* Macros for abs and int functions. */
27 #define ABS( x ) ( ( x ) < 0 ) ? -( x ) : ( x )
28 #define INT( x ) ( int ) x
30 /* Neat debug macro. */
32 #define die assert( DEBUG_EXIT )
35 /* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> MISC <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/
38 /* Return a binary number as a string of 1's and 0's. */
39 char *bits2string( uint bin );
42 /* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/