00001 /* BETWEEN.H */ 00002 00003 #ifndef _BETWEEN_H_ 00004 #define _BETWEEN_H_ 00005 00006 00007 int between(int x,int low, int high); 00008 /* 00009 * Computes whether another number is between two numbers on a mod 32 scale 00010 * returns 1 if x is between low and high on a mod 32 scale 00011 * returns 0 if not 00012 */ 00013 00014 int minus(int a, int b); 00015 /* 00016 * Returns a - b on a mod 32 scale. 00017 * ie. minus(5,4) == 1 00018 * minus(5,6) == 31 00019 */ 00020 00021 #endif