Debian Codegraph @

debian/patches/ensure_64bit_value

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