mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-07-10 15:32:41 -07:00
simplify some code, add comments
ABS simplification from Iceman1001
This commit is contained in:
parent
29ada8fc08
commit
cf194819cc
6 changed files with 47 additions and 81 deletions
|
@ -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")))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue