From: Dan Winship Date: Mon, 11 Feb 2008 14:50:17 +0000 (-0500) Subject: Change list flags back to 8 bits instead of just 2 X-Git-Tag: 0.1~242 X-Git-Url: http://project.juiblex.co.uk/git/?a=commitdiff_plain;h=95f1cf8d8989a70e0cf5b51902e506e00c924444;p=razor.git Change list flags back to 8 bits instead of just 2 --- diff --git a/types.c b/types.c index 3da147f..87bdbcc 100644 --- a/types.c +++ b/types.c @@ -44,9 +44,9 @@ array_add(struct array *array, int size) } /* RAZOR_IMMEDIATE and RAZOR_ENTRY_LAST must have the same value */ -#define RAZOR_ENTRY_LAST 0x2 -#define RAZOR_IMMEDIATE 0x2 -#define RAZOR_EMPTY_LIST 0x3 +#define RAZOR_ENTRY_LAST 0x80 +#define RAZOR_IMMEDIATE 0x80 +#define RAZOR_EMPTY_LIST 0xff void list_set_empty(struct list_head *head) diff --git a/types.h b/types.h index 4f0f16a..90e7790 100644 --- a/types.h +++ b/types.h @@ -14,13 +14,13 @@ void *array_add(struct array *array, int size); struct list_head { - uint list_ptr : 30; - uint flags : 2; + uint list_ptr : 24; + uint flags : 8; }; struct list { - uint data : 30; - uint flags : 2; + uint data : 24; + uint flags : 8; }; void list_set_empty(struct list_head *head);