]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - armsrc/util.h
CHG: change the number of calls to prng_successor was done. Fewer should mean faster :)
[proxmark3-svn] / armsrc / util.h
index 486f22e90f9f2698cf9fae6c45a09c6921e420cb..05364519e6c09565cf1e64f0b36dda4f4f92edd9 100644 (file)
@@ -37,6 +37,9 @@
 #ifndef BITMASK
 # define BITMASK(X) (1 << (X))
 #endif
 #ifndef BITMASK
 # define BITMASK(X) (1 << (X))
 #endif
+#ifndef ARRAYLEN
+# define ARRAYLEN(x) (sizeof(x)/sizeof((x)[0]))
+#endif
 
 void print_result(char *name, uint8_t *buf, size_t len);
 size_t nbytes(size_t nbits);
 
 void print_result(char *name, uint8_t *buf, size_t len);
 size_t nbytes(size_t nbits);
Impressum, Datenschutz