X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=libobjc%2Fgc.c;h=a4766894ab39aa79871247fcfbf3e1597fe3c5e8;hb=bafbe9351f02e858b62dc506b9c585ece370662c;hp=8f13dbc33ca644a7984693eefdf3805d932aba05;hpb=893d9197aa0d95807743aa422547cab295db7324;p=pf3gnuchains%2Fgcc-fork.git diff --git a/libobjc/gc.c b/libobjc/gc.c index 8f13dbc33ca..a4766894ab3 100644 --- a/libobjc/gc.c +++ b/libobjc/gc.c @@ -26,31 +26,22 @@ Boston, MA 02111-1307, USA. */ the executable file might be covered by the GNU General Public License. */ #include "tconfig.h" -#include "objc.h" -#include "encoding.h" +#include "objc/objc.h" +#include "objc/encoding.h" #include #include +#include #if OBJC_WITH_GC #include +#include /* 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