From fa0c05e5fc895dcc55f53b18c253f046e103b410 Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Wed, 9 Feb 2022 11:06:59 +0800 Subject: [PATCH] [td-11818] opt. --- include/common/tep.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/common/tep.h b/include/common/tep.h index 2c85f9d3a0..c7c4b15ac0 100644 --- a/include/common/tep.h +++ b/include/common/tep.h @@ -27,10 +27,10 @@ bool isEpsetEqual(const SEpSet *s1, const SEpSet *s2); void updateEpSet_s(SCorEpSet *pEpSet, SEpSet *pNewEpSet); SEpSet getEpSet_s(SCorEpSet *pEpSet); -#define NBIT (3u) +#define NBIT (3u) #define BitPos(_n) ((_n) & ((1 << NBIT) - 1)) -#define BMCharPos(bm_, r_) (bm_)[(r_) >> NBIT] -#define colDataIsNull_f(bm_, r_) (BMCharPos(bm_, r_) & (1u << (7u - BitPos(row)))) == (1u << (7u - BitPos(row))) +#define BMCharPos(bm_, r_) ((bm_)[(r_) >> NBIT]) +#define colDataIsNull_f(bm_, r_) ((BMCharPos(bm_, r_) & (1u << (7u - BitPos(r_)))) == (1u << (7u - BitPos(r_)))) void colDataSetNull_f(char* bitmap, uint32_t row);