diff options
author | kan <kan@FreeBSD.org> | 2005-06-03 03:29:59 +0000 |
---|---|---|
committer | kan <kan@FreeBSD.org> | 2005-06-03 03:29:59 +0000 |
commit | eeb997f51096076ea71f59fc8177e7d4c9ecddf7 (patch) | |
tree | 0dbc4d92aa8489a50fb974e9a3ea2ad95327bde8 /contrib/libobjc/gc.c | |
parent | 3b6c93380e20c56b8151f9c6fc3916670b987df5 (diff) | |
download | FreeBSD-src-eeb997f51096076ea71f59fc8177e7d4c9ecddf7.zip FreeBSD-src-eeb997f51096076ea71f59fc8177e7d4c9ecddf7.tar.gz |
Gcc 3.4.4 Objective C support bits.
Diffstat (limited to 'contrib/libobjc/gc.c')
-rw-r--r-- | contrib/libobjc/gc.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/contrib/libobjc/gc.c b/contrib/libobjc/gc.c index 8f13dbc..66aa78a 100644 --- a/contrib/libobjc/gc.c +++ b/contrib/libobjc/gc.c @@ -31,26 +31,17 @@ Boston, MA 02111-1307, USA. */ #include <assert.h> #include <string.h> +#include <stdlib.h> #if OBJC_WITH_GC #include <gc.h> +#include <limits.h> /* gc_typed.h uses the following but doesn't declare them */ typedef GC_word word; typedef GC_signed_word signed_word; - -#if BITS_PER_WORD == 32 -# define LOGWL 5 -# define modWORDSZ(n) ((n) & 0x1f) /* n mod size of word */ -#endif - -#if BITS_PER_WORD == 64 -# define LOGWL 6 -# define modWORDSZ(n) ((n) & 0x3f) /* n mod size of word */ -#endif - -#define divWORDSZ(n) ((n) >> LOGWL) /* divide n by size of word */ +#define BITS_PER_WORD (CHAR_BIT * sizeof (word)) #include <gc_typed.h> |