X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/ce55f5a29152d7d71c7848c5d94e2eeab397aed4..c7b4bcc4ab0a799e5ffca43cf46e4aa881d3a6d1:/include/common.h diff --git a/include/common.h b/include/common.h index feed109c..2a67bd87 100644 --- a/include/common.h +++ b/include/common.h @@ -21,10 +21,13 @@ typedef unsigned char byte_t; #ifndef MIN # define MIN(a, b) (((a) < (b)) ? (a) : (b)) #endif + #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"))) - #endif