1 /* Martin Asser Hansen (mail@maasha.dk) Copyright (C) 2008 - All right reserved */
3 /* Including standard libraries */
15 typedef unsigned char uchar;
16 typedef unsigned short ushort;
17 typedef long long llong;
32 /* Macros for determining min or max of two given values. */
33 #define MAX( a, b ) a < b ? b : a
34 #define MIN( a, b ) a > b ? b : a
36 /* Macros for abs and int functions. */
37 #define ABS( x ) ( ( x ) < 0 ) ? -( x ) : ( x )
38 #define INT( x ) ( int ) x
40 /* Neat debug macro. */
44 #define die assert( DEBUG_EXIT )
48 /* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> MISC <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/
51 /* Function that prints "pong" to stderr. */
54 /* Return a binary number as a string of 1's and 0's. */
55 char *bits2string( uint bin );
58 /* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/