[dpdk-dev] [PATCH v3 1/1] eal: add 128-bit compare exchange (x86-64 only)
Thomas Monjalon
thomas at monjalon.net
Thu Mar 28 00:12:37 CET 2019
04/03/2019 21:51, Gage Eads:
> --- a/lib/librte_eal/common/include/generic/rte_atomic.h
> +++ b/lib/librte_eal/common/include/generic/rte_atomic.h
> +#if defined(RTE_ARCH_X86_64)
> +/**
> + * 128-bit integer structure.
> + */
> +RTE_STD_C11
> +typedef struct {
> + RTE_STD_C11
> + union {
> + uint64_t val[2];
> + __int128 int128;
> + };
> +} __rte_aligned(16) rte_int128_t;
Why adding an arch-specific definition in a generic file?
Can we move it to the x86_64 file?
More information about the dev
mailing list