Skip to content

Commit a597cda

Browse files
committed
Follow macro naming scheme
1 parent db81bd6 commit a597cda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,13 @@ static void random_test(tlsf_t *t, size_t spacelen, const size_t cap)
110110
free(p);
111111
}
112112

113-
#define __arraycount(__x) (sizeof(__x) / sizeof(__x[0]))
113+
#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
114114

115115
static void random_sizes_test(tlsf_t *t)
116116
{
117117
const size_t sizes[] = {16, 32, 64, 128, 256, 512, 1024, 1024 * 1024};
118118

119-
for (unsigned i = 0; i < __arraycount(sizes); i++) {
119+
for (unsigned i = 0; i < ARRAY_SIZE(sizes); i++) {
120120
unsigned n = 1024;
121121

122122
while (n--) {

0 commit comments

Comments
 (0)