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 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 #include #include #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;