1 /* Including standard libraries */
17 /* Macros for determining min or max of two given values. */
18 #define MAX( a, b ) a < b ? b : a
19 #define MIN( a, b ) a > b ? b : a
21 /* Macros for abs and int functions. */
22 #define ABS( x ) ( ( x ) < 0 ) ? -( x ) : ( x )
23 #define INT( x ) ( int ) x
25 /* Neat debug macro. */
27 #define die assert( DEBUG_EXIT )
30 /* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> ARRAYS <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/
33 /* Binary search an array of integers for an integer value. */
34 bool binary_search_array( int *array, int array_size, int val );
37 /* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> MISC <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/
40 /* Return a binary number as a string of 1's and 0's. */
41 char *bits2string( uint bin );
44 /* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/