From b096078c282af7233062ba242a213e6f5574cfb1 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Mon, 23 May 2022 20:40:53 +0300 Subject: switch from clang-format to uncrustify The output is close enough, and I like that uncrustify is a third-party tool, so people can install a single tool for formatting instead of having to lug around a whole toolchain. I fully expect to have to add settings to uncrustify.conf, but let's see how this goes. --- common/pmem.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'common/pmem.c') diff --git a/common/pmem.c b/common/pmem.c index 5af17ac..725a9ff 100644 --- a/common/pmem.c +++ b/common/pmem.c @@ -32,14 +32,14 @@ /* NOTE: these are all for pnum_t, i.e. O0_SHIFT is from 0 */ #define __foreach_page(var, start, end, attr, neg) \ for (size_t i = num_indexes(start); i < num_elems(end); ++i) \ - if (var->attr[i] == (mm_info_t)(-1)) \ - continue; \ - else \ - for (pnum_t page = i * MM_OINFO_WIDTH, j = 0; \ - j < (pnum_t)MIN((end)-i * MM_OINFO_WIDTH, \ - MM_OINFO_WIDTH); \ - ++j, ++page) \ - if (neg(__is_nset(var->attr[i], j))) + if (var->attr[i] == (mm_info_t)(-1)) \ + continue; \ + else \ + for (pnum_t page = i * MM_OINFO_WIDTH, j = 0; \ + j < (pnum_t)MIN((end)-i * MM_OINFO_WIDTH, \ + MM_OINFO_WIDTH); \ + ++j, ++page) \ + if (neg(__is_nset(var->attr[i], j))) #define NEG ! #define foreach_full_page(var, start, order) \ -- cgit v1.3