Skip to content

Commit fea66d1

Browse files
committed
Revert some spurious formatting changes.
1 parent 9d3727f commit fea66d1

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

src/platform_linux/platform.h

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Copyright 2018-2021 VMware, Inc.
22
// SPDX-License-Identifier: Apache-2.0
33

4+
// clang-format off
5+
46
#ifndef PLATFORM_H
57
#define PLATFORM_H
68

@@ -96,10 +98,10 @@ typedef int32 bool32;
9698
#define TiB (GiB * 1024)
9799

98100
// Convert 'x' in unit-specifiers to bytes
99-
#define KiB_TO_B(x) ((x) * KiB)
100-
#define MiB_TO_B(x) ((x) * MiB)
101-
#define GiB_TO_B(x) ((x) * GiB)
102-
#define TiB_TO_B(x) ((x) * TiB)
101+
#define KiB_TO_B(x) ((x)*KiB)
102+
#define MiB_TO_B(x) ((x)*MiB)
103+
#define GiB_TO_B(x) ((x)*GiB)
104+
#define TiB_TO_B(x) ((x)*TiB)
103105

104106
// Convert 'x' in bytes to 'int'-value with unit-specifiers
105107
#define B_TO_KiB(x) ((x) / KiB)
@@ -119,13 +121,13 @@ typedef int32 bool32;
119121
#define BILLION (THOUSAND * MILLION)
120122

121123
#define USEC_TO_SEC(x) ((x) / MILLION)
122-
#define USEC_TO_NSEC(x) ((x) * THOUSAND)
124+
#define USEC_TO_NSEC(x) ((x)*THOUSAND)
123125
#define NSEC_TO_SEC(x) ((x) / BILLION)
124126
#define NSEC_TO_MSEC(x) ((x) / MILLION)
125127
#define NSEC_TO_USEC(x) ((x) / THOUSAND)
126-
#define SEC_TO_MSEC(x) ((x) * THOUSAND)
127-
#define SEC_TO_USEC(x) ((x) * MILLION)
128-
#define SEC_TO_NSEC(x) ((x) * BILLION)
128+
#define SEC_TO_MSEC(x) ((x)*THOUSAND)
129+
#define SEC_TO_USEC(x) ((x)*MILLION)
130+
#define SEC_TO_NSEC(x) ((x)*BILLION)
129131

130132
#define MAX_STRING_LENGTH 256
131133

@@ -150,7 +152,7 @@ typedef int (*platform_sort_cmpfn)(const void *a, const void *b, void *arg);
150152
*/
151153
#ifndef container_of
152154
# define container_of(ptr, type, memb) \
153-
((type *)((char *)(ptr) - offsetof(type, memb)))
155+
((type *)((char *)(ptr)-offsetof(type, memb)))
154156
#endif
155157

156158
/*
@@ -563,7 +565,7 @@ platform_sort_slow(void *base,
563565
void *cmparg,
564566
void *temp);
565567

566-
#define IS_POWER_OF_2(n) ((n) > 0 && ((n) & ((n) - 1)) == 0)
568+
#define IS_POWER_OF_2(n) ((n) > 0 && ((n) & ((n)-1)) == 0)
567569

568570
#ifndef MAX
569571
# define MAX(a, b) ((a) > (b) ? (a) : (b))
@@ -833,3 +835,5 @@ platform_backtrace(void **buffer, int size)
833835
}
834836

835837
#endif // PLATFORM_H
838+
839+
// clang-format on

0 commit comments

Comments
 (0)