]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - include/common.h
CHG: moved some #define into include\common.h (which is call by apps.h), so we...
[proxmark3-svn] / include / common.h
index feed109c2dfe3faa216edb89fd0852100b542896..70188ca93dc45d296b40cc8df37479745812d5ff 100644 (file)
@@ -21,10 +21,15 @@ 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
Impressum, Datenschutz