^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) #ifndef _LINUX_CONST_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) #define _LINUX_CONST_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) #include <vdso/const.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) * This returns a constant expression while determining if an argument is
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) * a constant expression, most importantly without evaluating the argument.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) * Glory to Martin Uecker <Martin.Uecker@med.uni-goettingen.de>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #define __is_constexpr(x) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) (sizeof(int) == sizeof(*(8 ? ((void *)((long)(x) * 0l)) : (int *)8)))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) #endif /* _LINUX_CONST_H */