compiler.h: add is_constant()
commitcb7da7e7f63f8c0dfd7baf0e970e737bf5f55cbf
authorH. Peter Anvin <hpa@linux.intel.com>
Thu, 30 Nov 2017 00:05:05 +0000 (29 16:05 -0800)
committerH. Peter Anvin <hpa@linux.intel.com>
Thu, 30 Nov 2017 00:05:05 +0000 (29 16:05 -0800)
tree192808ee62f1ffb6edb7bec547d84a0deba80496
parente5033dfd1c3c30313cf7a428c7bed21c7fae9e5f
compiler.h: add is_constant()

Add macro is_constant() to return true if and only if the value is a
compile-time constant.  It may never return true, however.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
include/compiler.h