summaryrefslogtreecommitdiff
path: root/typd_mlc.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2016-12-22 11:40:21 +0300
committerIvan Maidanski <ivmai@mail.ru>2016-12-22 11:40:21 +0300
commit97861773a09cef7461945ccff20d3d26217a93f9 (patch)
treeecbf111b672e42ef519c7563d9970ef3fd16be53 /typd_mlc.c
parentfde97b79c8681ef27bd731ef42766589ce892e66 (diff)
downloadbdwgc-97861773a09cef7461945ccff20d3d26217a93f9.tar.gz
Remove HIGH_BIT macro duplicating SIGNB
(code refactoring) * typd_mlc.c (HIGH_BIT) Remove macro. * typd_mlc.c (GC_make_descriptor): Use SIGNB instead of HIGH_BIT.
Diffstat (limited to 'typd_mlc.c')
-rw-r--r--typd_mlc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/typd_mlc.c b/typd_mlc.c
index 7b24a963..1c9ad314 100644
--- a/typd_mlc.c
+++ b/typd_mlc.c
@@ -519,7 +519,6 @@ GC_API GC_descr GC_CALL GC_make_descriptor(const GC_word * bm, size_t len)
{
signed_word last_set_bit = len - 1;
GC_descr result;
-# define HIGH_BIT (((word)1) << (WORDSZ - 1))
DCL_LOCK_STATE;
# if defined(THREADS) && defined(AO_HAVE_load_acquire)
@@ -564,10 +563,10 @@ GC_API GC_descr GC_CALL GC_make_descriptor(const GC_word * bm, size_t len)
/* Hopefully the common case. */
/* Build bitmap descriptor (with bits reversed) */
- result = HIGH_BIT;
+ result = SIGNB;
for (i = last_set_bit - 1; i >= 0; i--) {
result >>= 1;
- if (GC_get_bit(bm, i)) result |= HIGH_BIT;
+ if (GC_get_bit(bm, i)) result |= SIGNB;
}
result |= GC_DS_BITMAP;
} else {