diff options
author | David Garcia Quintas <dgq@google.com> | 2015-07-15 18:04:18 -0700 |
---|---|---|
committer | David Garcia Quintas <dgq@google.com> | 2015-07-15 18:05:34 -0700 |
commit | 6b8d1aef89ecb24c08f2f4b19903abc2383ca7eb (patch) | |
tree | d48b3d81ec6b8317cfbeabbf88c4e4f86598c7f4 /test/core | |
parent | cfb21ce66809f4aff85b5b3cb7c824178071bffa (diff) |
rewrote bitcount function as a macro
Diffstat (limited to 'test/core')
-rw-r--r-- | test/core/support/useful_test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/core/support/useful_test.c b/test/core/support/useful_test.c index 7129dce632..34f4ce6870 100644 --- a/test/core/support/useful_test.c +++ b/test/core/support/useful_test.c @@ -57,12 +57,12 @@ int main(int argc, char **argv) { GPR_ASSERT(GPR_ARRAY_SIZE(five) == 5); GPR_ASSERT(GPR_BITSET(&bitset, 3) == 8); - GPR_ASSERT(gpr_bitcount(bitset) == 1); + GPR_ASSERT(GPR_BITCOUNT(bitset) == 1); GPR_ASSERT(GPR_BITGET(bitset, 3) == 1); GPR_ASSERT(GPR_BITSET(&bitset, 1) == 10); - GPR_ASSERT(gpr_bitcount(bitset) == 2); + GPR_ASSERT(GPR_BITCOUNT(bitset) == 2); GPR_ASSERT(GPR_BITCLEAR(&bitset, 3) == 2); - GPR_ASSERT(gpr_bitcount(bitset) == 1); + GPR_ASSERT(GPR_BITCOUNT(bitset) == 1); GPR_ASSERT(GPR_BITGET(bitset, 3) == 0); return 0; |