diff options
Diffstat (limited to 'include/compile_time_macros.h')
-rw-r--r-- | include/compile_time_macros.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/compile_time_macros.h b/include/compile_time_macros.h index 0151f1a391..8330ea5840 100644 --- a/include/compile_time_macros.h +++ b/include/compile_time_macros.h @@ -1,4 +1,4 @@ -/* Copyright 2013 The Chromium OS Authors. All rights reserved. +/* Copyright 2013 The ChromiumOS Authors * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ @@ -69,7 +69,7 @@ /* Just in case - http://gcc.gnu.org/onlinedocs/gcc/Offsetof.html */ #ifndef offsetof -#define offsetof(type, member) __builtin_offsetof(type, member) +#define offsetof(type, member) __builtin_offsetof(type, member) #endif #define member_size(type, member) sizeof(((type *)0)->member) @@ -78,7 +78,7 @@ * Bit operation macros. */ #ifndef CONFIG_ZEPHYR -#define BIT(nr) (1U << (nr)) +#define BIT(nr) (1U << (nr)) /* * Set or clear <bit> of <var> depending on <set>. * It also supports setting and clearing (e.g. SET_BIT, CLR_BIT) macros. @@ -86,7 +86,7 @@ #define WRITE_BIT(var, bit, set) \ ((var) = (set) ? ((var) | BIT(bit)) : ((var) & ~BIT(bit))) #endif -#define BIT_ULL(nr) (1ULL << (nr)) +#define BIT_ULL(nr) (1ULL << (nr)) /* * Create a bit mask from least significant bit |l| @@ -102,8 +102,8 @@ * warnings for BIT(31+1). */ #ifndef CONFIG_ZEPHYR -#define GENMASK(h, l) (((BIT(h)<<1) - 1) ^ (BIT(l) - 1)) -#define GENMASK_ULL(h, l) (((BIT_ULL(h)<<1) - 1) ^ (BIT_ULL(l) - 1)) +#define GENMASK(h, l) (((BIT(h) << 1) - 1) ^ (BIT(l) - 1)) +#define GENMASK_ULL(h, l) (((BIT_ULL(h) << 1) - 1) ^ (BIT_ULL(l) - 1)) #endif #endif /* __CROS_EC_COMPILE_TIME_MACROS_H */ |