[0/2] provide toolchain abstracted __builtin_constant_p

Message ID 1710970416-27841-1-git-send-email-roretzla@linux.microsoft.com (mailing list archive)
Series provide toolchain abstracted __builtin_constant_p |


Tyler Retzlaff March 20, 2024, 9:33 p.m. UTC
  Decouple direct dependency on GCC built-in __builtin_constant_p provide
a new macro __rte_constant(e) that expands to the built-in for GCC and
to false for MSVC.

Tyler Retzlaff (2):
  eal: provide macro for GCC builtin constant intrinsic
  mempool: use rte constant macro instead of GCC builtin

 lib/eal/include/rte_common.h | 6 ++++++
 lib/mempool/rte_mempool.h    | 7 +++----
 2 files changed, 9 insertions(+), 4 deletions(-)