From: Ivan Maidanski Date: Thu, 22 Dec 2016 08:40:21 +0000 (+0300) Subject: Remove HIGH_BIT macro duplicating SIGNB X-Git-Tag: v8.0.0~971 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=97861773a09cef7461945ccff20d3d26217a93f9;p=platform%2Fupstream%2Flibgc.git 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. --- diff --git a/typd_mlc.c b/typd_mlc.c index 7b24a96..1c9ad31 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 {