HEX
Server: Apache
System: Linux server40.rootservers.co 6.12.0-124.39.1.el10_1.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Feb 26 10:00:13 EST 2026 x86_64
User: ielopere (1067)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: //usr/include/linux/bits.h
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
/* bits.h: Macros for dealing with bitmasks.  */

#ifndef _LINUX_BITS_H
#define _LINUX_BITS_H

#define __GENMASK(h, l) \
        (((~_UL(0)) - (_UL(1) << (l)) + 1) & \
         (~_UL(0) >> (__BITS_PER_LONG - 1 - (h))))

#define __GENMASK_ULL(h, l) \
        (((~_ULL(0)) - (_ULL(1) << (l)) + 1) & \
         (~_ULL(0) >> (__BITS_PER_LONG_LONG - 1 - (h))))

#define __GENMASK_U128(h, l) \
	((_BIT128((h)) << 1) - (_BIT128(l)))

#endif /* _LINUX_BITS_H */