X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fincludes%2FBlock.h;h=1f84f78f588b6252db13badd12c477a1f2e0c459;hb=560bf0f68bdfd422c9d744a83ca38ec0a4bc780c;hp=b8a0260a7a9b748ddf284b39456e8977925801c7;hpb=438596897ebbe25a07e1c82085cfbc5bdb00f09e;p=ghc-hetmet.git diff --git a/ghc/includes/Block.h b/ghc/includes/Block.h index b8a0260..1f84f78 100644 --- a/ghc/includes/Block.h +++ b/ghc/includes/Block.h @@ -1,5 +1,7 @@ /* ----------------------------------------------------------------------------- - * $Id: Block.h,v 1.2 1998/12/02 13:20:53 simonm Exp $ + * $Id: Block.h,v 1.10 2001/10/03 13:57:42 simonmar Exp $ + * + * (c) The GHC Team, 1998-1999 * * Block structure for the storage manager * @@ -14,6 +16,7 @@ /* Block related constants (4k blocks) */ +#define BLOCK_SIZE (1<> (BLOCK_SHIFT-BDESCR_SHIFT)) + | ((W_)p & ~MBLOCK_MASK) + ); +} + /* Useful Macros ------------------------------------------------------------ */ /* Offset of first real data block in a megablock */ @@ -97,4 +118,4 @@ typedef struct _bdescr { #define BLOCKS_TO_MBLOCKS(n) \ (1 + (W_)MBLOCK_ROUND_UP((n-BLOCKS_PER_MBLOCK) * BLOCK_SIZE) / MBLOCK_SIZE) -#endif BLOCK_H +#endif /* BLOCK_H */