mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-10 15:57:24 +03:00
Turn clang-format off for codes with multi-line commands in macros
This commit is contained in:
parent
24b683fffc
commit
920784fc73
11 changed files with 26 additions and 0 deletions
|
|
@ -15,6 +15,7 @@
|
|||
* and val3 for desired.
|
||||
*/
|
||||
|
||||
/* clang-format off */
|
||||
#define DO_TESTS(t, ta, val1, val2, val3) do { \
|
||||
t val; \
|
||||
t expected; \
|
||||
|
|
@ -174,6 +175,7 @@ typedef struct { \
|
|||
DO_INTEGER_TESTS(t, ta, test.val1, test.val2); \
|
||||
} \
|
||||
} while (0)
|
||||
/* clang-format on */
|
||||
|
||||
TEST_STRUCT(uint64_t, u64);
|
||||
TEST_BEGIN(test_atomic_u64) {
|
||||
|
|
|
|||
|
|
@ -226,6 +226,7 @@ expand_byte_to_mask(unsigned byte) {
|
|||
return result;
|
||||
}
|
||||
|
||||
/* clang-format off */
|
||||
#define TEST_POPCOUNT(t, suf, pri_hex) do { \
|
||||
t bmul = (t)0x0101010101010101ULL; \
|
||||
for (unsigned i = 0; i < (1 << sizeof(t)); i++) { \
|
||||
|
|
@ -245,6 +246,7 @@ expand_byte_to_mask(unsigned byte) {
|
|||
} \
|
||||
} \
|
||||
} while (0)
|
||||
/* clang-format on */
|
||||
|
||||
TEST_BEGIN(test_popcount_u) {
|
||||
TEST_POPCOUNT(unsigned, u, "x");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue