blob: 3c8646ea78632412a67a7323e07763b00dbf202e [file] [log] [blame]
Christopher Ferris7f4c8372024-06-03 14:22:19 -07001/*
2 * This file is auto-generated. Modifications will be lost.
3 *
4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5 * for more information.
6 */
7#ifndef _UAPI_LINUX_BITS_H
8#define _UAPI_LINUX_BITS_H
Christopher Ferris39650b72025-07-29 09:30:15 -07009#define __GENMASK(h,l) (((~_UL(0)) << (l)) & (~_UL(0) >> (__BITS_PER_LONG - 1 - (h))))
10#define __GENMASK_ULL(h,l) (((~_ULL(0)) << (l)) & (~_ULL(0) >> (__BITS_PER_LONG_LONG - 1 - (h))))
Christopher Ferris65552ba2024-11-20 17:55:06 +000011#define __GENMASK_U128(h,l) ((_BIT128((h)) << 1) - (_BIT128(l)))
Christopher Ferris7f4c8372024-06-03 14:22:19 -070012#endif