Parent Directory | Revision Log | Patch
revision 949, Wed Mar 26 14:56:49 2003 UTC | revision 982, Thu Apr 10 13:05:54 2003 UTC | |
---|---|---|
# | Line 12 | Line 12 |
12 | #include "../utils/timer.h" | #include "../utils/timer.h" |
13 | #include "motion.h" | #include "motion.h" |
14 | ||
#ifndef ABS | ||
#define ABS(X) (((X)>0)?(X):-(X)) | ||
#endif | ||
#ifndef SIGN | ||
#define SIGN(X) (((X)>0)?1:-1) | ||
#endif | ||
15 | #ifndef RSHIFT | #ifndef RSHIFT |
16 | #define RSHIFT(a,b) ((a) > 0 ? ((a) + (1<<((b)-1)))>>(b) : ((a) + (1<<((b)-1))-1)>>(b)) | #define RSHIFT(a,b) ((a) > 0 ? ((a) + (1<<((b)-1)))>>(b) : ((a) + (1<<((b)-1))-1)>>(b)) |
17 | #endif | #endif |
|
No admin address has been configured | ViewVC Help |
Powered by ViewVC 1.0.4 |