[dpdk-dev] [PATCH 1/6] eal: add portable way to check for math overflow

Dmitry Kozlyuk dmitry.kozliuk at gmail.com
Tue Mar 3 23:28:55 CET 2020


> +#if defined(__has_builtin)
> +#    if __has_builtin(__builtin_add_overflow)
> +#        define RTE_HAVE_BUILTIN_OVERFLOW
> +#    endif
> +#elif defined(RTE_TOOLCHAIN_GCC) && (GCC_VERSION >= 5000)
> +#    define RTE__HAVE_BUILTIN_OVERFLOW

Excessive underline after RTE results in RTE_HAVE_BUILTIN_OVERFLOW not being
defined.

-- 
Dmitry Kozlyuk


More information about the dev mailing list