mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-02 21:54:10 +08:00
crack5opencl ,.. dont have this fct in PS. maybe a linker problem but lets just add it for now
This commit is contained in:
parent
36c6c0a3d0
commit
a7fad57060
1 changed files with 12 additions and 0 deletions
|
@ -35,6 +35,18 @@
|
|||
#include "hitag2.h"
|
||||
#include "dolphin_macro.h"
|
||||
|
||||
#if defined(__MINGW64__)
|
||||
#define timersub(a, b, result) \
|
||||
do { \
|
||||
(result)->tv_sec = (a)->tv_sec - (b)->tv_sec; \
|
||||
(result)->tv_usec = (a)->tv_usec - (b)->tv_usec; \
|
||||
if ((result)->tv_usec < 0) { \
|
||||
--(result)->tv_sec; \
|
||||
(result)->tv_usec += 1000000;\
|
||||
} \
|
||||
} while (0)
|
||||
#endif
|
||||
|
||||
#define MAX_BITSLICES 32
|
||||
#define VECTOR_SIZE (MAX_BITSLICES/8)
|
||||
|
||||
|
|
Loading…
Reference in a new issue