mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-06-04 21:41:48 +00:00
Real-time LF sampling mode on armsrc
This commit is contained in:
@@ -196,4 +196,18 @@ extern bool g_tearoff_enabled;
|
||||
#define CLEAR_BIT(data, i) *(data + (i / 8)) &= ~(1 << (7 - (i % 8)))
|
||||
#define FLIP_BIT(data, i) *(data + (i / 8)) ^= (1 << (7 - (i % 8)))
|
||||
|
||||
// GCC extension
|
||||
// from client/deps/tinycbor/compilersupport_p.h
|
||||
#ifdef __GNUC__
|
||||
#ifndef likely
|
||||
# define likely(x) __builtin_expect(!!(x), 1)
|
||||
#endif
|
||||
#ifndef unlikely
|
||||
# define unlikely(x) __builtin_expect(!!(x), 0)
|
||||
#endif
|
||||
#else
|
||||
# define likely(x) (x)
|
||||
# define unlikely(x) (x)
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user