From: Karel Zak Date: Wed, 14 Aug 2024 15:03:51 +0000 (+0200) Subject: include/c: add BIT() X-Git-Tag: v2.42-start~97^2~30 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ff3f99c62ecad32925545cf7ae617231e17af19d;p=thirdparty%2Futil-linux.git include/c: add BIT() Signed-off-by: Karel Zak --- diff --git a/include/c.h b/include/c.h index 3db3ab2fc..d87521be0 100644 --- a/include/c.h +++ b/include/c.h @@ -37,6 +37,8 @@ # define NAME_MAX PATH_MAX #endif +#define BIT(n) (1 << (n)) + /* * __GNUC_PREREQ is deprecated in favour of __has_attribute() and * __has_feature(). The __has macros are supported by clang and gcc>=5.