fixed an issue due to the 64-bit assumption
This commit is contained in:
parent
3d3fde8224
commit
aeb6b5eeb1
3
kdq.h
3
kdq.h
|
|
@ -3,11 +3,12 @@
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <stdint.h>
|
||||||
#include "kalloc.h"
|
#include "kalloc.h"
|
||||||
|
|
||||||
#define __KDQ_TYPE(type) \
|
#define __KDQ_TYPE(type) \
|
||||||
typedef struct { \
|
typedef struct { \
|
||||||
size_t front:58, bits:6, count, mask; \
|
uint64_t front:58, bits:6, count, mask; \
|
||||||
type *a; \
|
type *a; \
|
||||||
void *km; \
|
void *km; \
|
||||||
} kdq_##type##_t;
|
} kdq_##type##_t;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue