> -----Original Message-----
> From: Phil Yang <[email protected]>
> Sent: Friday, June 28, 2019 1:42 PM
> To: [email protected]
> Cc: [email protected]; Jerin Jacob Kollanukkaran <[email protected]>;
> [email protected]; [email protected];
> [email protected]; [email protected]; [email protected]
> Subject: [EXT] [PATCH v3 2/3] test/atomic: add 128b compare and swap test
>
> Add 128b atomic compare and swap test for aarch64 and x86_64.
>
> Signed-off-by: Phil Yang <[email protected]>
> Reviewed-by: Honnappa Nagarahalli <[email protected]>
> ---
> app/test/test_atomic.c | 122
>
> +#if defined(RTE_ARCH_X86_64) || defined(RTE_ARCH_ARM64) static
> +rte_int128_t count128;
Moving this to down[1] can reduce one #ifdef cutler.
> +
> static int
> test_atomic_usual(__attribute__((unused)) void *arg) { @@ -216,6 +237,72
> @@ test_atomic_dec_and_test(__attribute__((unused)) void *arg)
> return 0;
> }
>
> +#if defined(RTE_ARCH_X86_64) || defined(RTE_ARCH_ARM64)
[1] See above,
With above change,
Acked-by: Jerin Jacob <[email protected]>
Tested-by: Jerin Jacob <[email protected]>