diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2016-12-22 11:40:21 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2016-12-22 11:40:21 +0300 |
commit | 97861773a09cef7461945ccff20d3d26217a93f9 (patch) | |
tree | ecbf111b672e42ef519c7563d9970ef3fd16be53 /typd_mlc.c | |
parent | fde97b79c8681ef27bd731ef42766589ce892e66 (diff) | |
download | bdwgc-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.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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 { |