]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - include/common.h
CHG: a select_legic function with structs and stuff and
[proxmark3-svn] / include / common.h
index 71787b4f4e7a1e164f1cdd959683805a0b7bdc98..2a67bd879c360c3c9363cfc26b098cdc697396d2 100644 (file)
@@ -21,8 +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
Impressum, Datenschutz