summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Seipp <austin@well-typed.com>2014-10-21 16:43:04 -0500
committerAustin Seipp <austin@well-typed.com>2014-10-21 16:43:04 -0500
commitc8173d5105a8463890e536d621c35805d6f67e4b (patch)
tree94b2e155ce8e8cf08c7ae9c96fea22ad324bb792
parentbc1609a722dbddd169734b4a4ba11ef88fd42c01 (diff)
downloadhaskell-c8173d5105a8463890e536d621c35805d6f67e4b.tar.gz
[skip ci] rts: Detabify sm/Compact.h
Signed-off-by: Austin Seipp <austin@well-typed.com>
-rw-r--r--rts/sm/Compact.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/rts/sm/Compact.h b/rts/sm/Compact.h
index 1ec915f49a..db7a9694d2 100644
--- a/rts/sm/Compact.h
+++ b/rts/sm/Compact.h
@@ -6,7 +6,7 @@
*
* Documentation on the architecture of the Garbage Collector can be
* found in the online commentary:
- *
+ *
* http://ghc.haskell.org/trac/ghc/wiki/Commentary/Rts/Storage/GC
*
* ---------------------------------------------------------------------------*/
@@ -16,22 +16,22 @@
#include "BeginPrivate.h"
-INLINE_HEADER void
+INLINE_HEADER void
mark(StgPtr p, bdescr *bd)
{
nat offset_within_block = p - bd->start; // in words
- StgPtr bitmap_word = (StgPtr)bd->u.bitmap +
- (offset_within_block / (sizeof(W_)*BITS_PER_BYTE));
+ StgPtr bitmap_word = (StgPtr)bd->u.bitmap +
+ (offset_within_block / (sizeof(W_)*BITS_PER_BYTE));
StgWord bit_mask = (StgWord)1 << (offset_within_block & (sizeof(W_)*BITS_PER_BYTE - 1));
*bitmap_word |= bit_mask;
}
-INLINE_HEADER void
+INLINE_HEADER void
unmark(StgPtr p, bdescr *bd)
{
nat offset_within_block = p - bd->start; // in words
- StgPtr bitmap_word = (StgPtr)bd->u.bitmap +
- (offset_within_block / (sizeof(W_)*BITS_PER_BYTE));
+ StgPtr bitmap_word = (StgPtr)bd->u.bitmap +
+ (offset_within_block / (sizeof(W_)*BITS_PER_BYTE));
StgWord bit_mask = (StgWord)1 << (offset_within_block & (sizeof(W_)*BITS_PER_BYTE - 1));
*bitmap_word &= ~bit_mask;
}
@@ -40,8 +40,8 @@ INLINE_HEADER StgWord
is_marked(StgPtr p, bdescr *bd)
{
nat offset_within_block = p - bd->start; // in words
- StgPtr bitmap_word = (StgPtr)bd->u.bitmap +
- (offset_within_block / (sizeof(W_)*BITS_PER_BYTE));
+ StgPtr bitmap_word = (StgPtr)bd->u.bitmap +
+ (offset_within_block / (sizeof(W_)*BITS_PER_BYTE));
StgWord bit_mask = (StgWord)1 << (offset_within_block & (sizeof(W_)*BITS_PER_BYTE - 1));
return (*bitmap_word & bit_mask);
}