diff mbox series

[12/27] meson: Fix detect atomic128 support with optimization

Message ID 20230520162634.3991009-13-richard.henderson@linaro.org
State Superseded
Headers show
Series accel/tcg: Improvements to atomic128.h | expand

Commit Message

Richard Henderson May 20, 2023, 4:26 p.m. UTC
Silly typo: sizeof(16) != 16.

Fixes: e61f1efeb730 ("meson: Detect atomic128 support with optimization")
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Philippe Mathieu-Daudé May 21, 2023, 10:54 a.m. UTC | #1
On 20/5/23 18:26, Richard Henderson wrote:
> Silly typo: sizeof(16) != 16.
> 
> Fixes: e61f1efeb730 ("meson: Detect atomic128 support with optimization")
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
>   meson.build | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meson.build b/meson.build
> index 4ffc0d3e59..5e7fc6345f 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -2555,7 +2555,7 @@ if has_int128
>     # __alignof(unsigned __int128) for the host.
>     atomic_test_128 = '''
>       int main(int ac, char **av) {
> -      unsigned __int128 *p = __builtin_assume_aligned(av[ac - 1], sizeof(16));
> +      unsigned __int128 *p = __builtin_assume_aligned(av[ac - 1], 16);

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
diff mbox series

Patch

diff --git a/meson.build b/meson.build
index 4ffc0d3e59..5e7fc6345f 100644
--- a/meson.build
+++ b/meson.build
@@ -2555,7 +2555,7 @@  if has_int128
   # __alignof(unsigned __int128) for the host.
   atomic_test_128 = '''
     int main(int ac, char **av) {
-      unsigned __int128 *p = __builtin_assume_aligned(av[ac - 1], sizeof(16));
+      unsigned __int128 *p = __builtin_assume_aligned(av[ac - 1], 16);
       p[1] = __atomic_load_n(&p[0], __ATOMIC_RELAXED);
       __atomic_store_n(&p[2], p[3], __ATOMIC_RELAXED);
       __atomic_compare_exchange_n(&p[4], &p[5], p[6], 0, __ATOMIC_RELAXED, __ATOMIC_RELAXED);