Merge tag 'ntb-6.6' of https://github.com/jonmason/ntb
[linux-2.6-block.git] / tools / include / linux / const.h
CommitLineData
aaa6ef8a
ACM
1#ifndef _LINUX_CONST_H
2#define _LINUX_CONST_H
3
ca64d84e 4#include <vdso/const.h>
aaa6ef8a 5
f747e666
RF
6/*
7 * This returns a constant expression while determining if an argument is
8 * a constant expression, most importantly without evaluating the argument.
9 * Glory to Martin Uecker <Martin.Uecker@med.uni-goettingen.de>
10 */
11#define __is_constexpr(x) \
12 (sizeof(int) == sizeof(*(8 ? ((void *)((long)(x) * 0l)) : (int *)8)))
13
aaa6ef8a 14#endif /* _LINUX_CONST_H */