1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
Description: ensure 64 bit value
The bitfield requires 64 bits to be distributed, but size_t can
be less wide on some architectures.
Author: Sascha Steinbiss <sascha@steinbiss.name>
Forwarded: https://github.com/lh3/minimap/pull/2
Applied-Upstream: https://github.com/lh3/minimap/commit/1cd6ae3bc7c7a6f9e7c03c0b7a93a12647bba244
Last-Update: 2016-01-14
--- a/kdq.h
+++ b/kdq.h
@@ -1,12 +1,13 @@
#ifndef __AC_KDQ_H
#define __AC_KDQ_H
+#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#define __KDQ_TYPE(type) \
typedef struct { \
- size_t front:58, bits:6, count, mask; \
+ uint64_t front:58, bits:6, count, mask; \
type *a; \
} kdq_##type##_t;
|