X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fincludes%2FBlock.h;h=ac30e8cd36f5bbd5ff3a56ee13afa9921efeb53c;hb=99655406c82829dfc9663fc545a0e134c49fb79f;hp=599dc27d45973d994a6efd375adff0eaf60f669e;hpb=dfd7d6d02a597949b08161ae3d49dc6dfc9e812d;p=ghc-hetmet.git diff --git a/ghc/includes/Block.h b/ghc/includes/Block.h index 599dc27..ac30e8c 100644 --- a/ghc/includes/Block.h +++ b/ghc/includes/Block.h @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: Block.h,v 1.9 2001/07/23 17:23:19 simonmar Exp $ + * $Id: Block.h,v 1.16 2003/11/26 12:14:26 simonmar Exp $ * * (c) The GHC Team, 1998-1999 * @@ -14,22 +14,29 @@ * includes/Constants.h, all constants here are derived from these. */ -/* Block related constants (4k blocks) */ +/* Block related constants (BLOCK_SHIFT is defined in Constants.h) */ +#define BLOCK_SIZE (1<> (BLOCK_SHIFT-BDESCR_SHIFT)) @@ -87,7 +100,7 @@ static inline bdescr *Bdescr(StgPtr p) /* Offset of first real data block in a megablock */ #define FIRST_BLOCK_OFF \ - ((W_)BLOCK_ROUND_UP(MBLOCK_SIZE / BLOCK_SIZE * BDESCR_SIZE)) + ((W_)BLOCK_ROUND_UP(BDESCR_SIZE * (MBLOCK_SIZE / BLOCK_SIZE))) /* First data block in a given megablock */