/* * utils.c * * Utility stuff * * (c) 2007 Thomas White * * dtr - Diffraction Tomography Reconstruction * */ #include #include #include "utils.h" #include "string.h" /* Return the MOST POSITIVE of two numbers */ unsigned int biggest(signed int a, signed int b) { if ( a>b ) { return a; } return b; } /* Return the LEAST POSITIVE of two numbers */ unsigned int smallest(signed int a, signed int b) { if ( a