X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Frts%2FBlockAlloc.h;h=504e954c9876f6c7cd63affe165b2129178ef825;hb=3b6a5af52cff72d77600b848d6d851f71b162bc2;hp=a2c9b2b594d4c403309d8d20c4790358a7673522;hpb=f6692611aad945e46ffb615bde1df7def3fc742f;p=ghc-hetmet.git diff --git a/ghc/rts/BlockAlloc.h b/ghc/rts/BlockAlloc.h index a2c9b2b..504e954 100644 --- a/ghc/rts/BlockAlloc.h +++ b/ghc/rts/BlockAlloc.h @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: BlockAlloc.h,v 1.6 1999/11/02 15:05:56 simonmar Exp $ + * $Id: BlockAlloc.h,v 1.9 2001/05/03 16:32:55 simonmar Exp $ * * (c) The GHC Team, 1998-1999 * @@ -24,16 +24,6 @@ extern bdescr *allocBlock(void); extern void freeGroup(bdescr *p); extern void freeChain(bdescr *p); -/* Finding the block descriptor for a given block -------------------------- */ - -extern inline bdescr *Bdescr(StgPtr p) -{ - return (bdescr *) - ((((W_)p & MBLOCK_MASK & ~BLOCK_MASK) >> (BLOCK_SHIFT-BDESCR_SHIFT)) - | ((W_)p & ~MBLOCK_MASK) - ); -} - /* Round a value to megablocks --------------------------------------------- */ #define WORDS_PER_MBLOCK (BLOCKS_PER_MBLOCK * BLOCK_SIZE_W) @@ -58,4 +48,4 @@ extern void checkFreeListSanity(void); nat countFreeList(void); #endif -#endif BLOCK_ALLOC_H +#endif /* BLOCK_ALLOC_H */