Skip to content
This repository has been archived by the owner on Dec 13, 2017. It is now read-only.

ensure 64bit type for bitfield #2

Merged
merged 1 commit into from
Jan 14, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion kdq.h
Original file line number Diff line number Diff line change
@@ -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;

Expand Down