X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/ce55f5a29152d7d71c7848c5d94e2eeab397aed4..c6a886fb4f25b8925956a267ed3d2f60455adf4a:/include/common.h?ds=sidebyside diff --git a/include/common.h b/include/common.h index feed109c..998db64d 100644 --- a/include/common.h +++ b/include/common.h @@ -24,6 +24,10 @@ typedef unsigned char byte_t; #ifndef MAX # define MAX(a, b) (((a) > (b)) ? (a) : (b)) #endif +#ifndef ABS +# define ABS(a) ( ((a)<0) ? -(a) : (a) ) +#endif + #define RAMFUNC __attribute((long_call, section(".ramfunc")))