BNG Blaster 0.8 WIP - 2

This commit is contained in:
Christian Giese
2022-08-24 21:54:09 +00:00
parent d9317807dc
commit a6fc065d21
38 changed files with 1223 additions and 393 deletions
+13 -1
View File
@@ -36,10 +36,22 @@
#define ISO_STR_LEN 64
#define SUB_STR_LEN 256
#define CACHE_LINE_SIZE 64
/* Macro Definitions */
#define UNUSED(x) (void)x
#ifndef likely
#define likely(x) __builtin_expect((x),1)
#endif /* likely */
#ifndef unlikely
#define unlikely(x) __builtin_expect((x),0)
#endif /* unlikely */
#define POWEROF2(x) ((((x)-1) & (x)) == 0) /* true if x is a power of 2 */
#define BITS_TO_BYTES(_len) ((_len+7) >> 3)
#define UNUSED(x) (void)x
/* Key-Value structure. */
typedef struct keyval_ {