From nobody Tue Feb 10 23:55:16 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1668764981; cv=none; d=zohomail.com; s=zohoarc; b=fMhuCGmDNExTvre5zOtvpPFNjuecnpJKXzSMyvPoFDu/lMLCSrTRDcN1WqTM8c5Br1U6mdcIZkFy11k9q5Gri1ow3RbiLdvpNWChULfGYhTUo2ks1AiZXrcEBh1e4VOCy0Mi7VQJluLplrw/bNG9M4oJxIND2RKSWL5CtPDEGag= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1668764981; h=Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=QrYtnxLvtfKAc7aqQk4XJ12ghRRjf03hK+wLuvAHjsA=; b=Y57+FpXQEd0epnW72ZEXwsQBKsbs05WTfEMuBTDq6NHjf0kvjOiaTWfnNGp1SOPtnyK+F7CChShYmHXvdqzKiwSbN31tNUe3yJS364UpNy3Vl3cQIEXpZj01ryUgOXgYqjolvpVOVg5ssl7huz8iYn9GIUex5LarQWkTQqlWoHk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1668764981044716.5692486471132; Fri, 18 Nov 2022 01:49:41 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ovxzH-0007bu-Sl; Fri, 18 Nov 2022 04:48:45 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ovxz4-0007Si-3V for qemu-devel@nongnu.org; Fri, 18 Nov 2022 04:48:31 -0500 Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ovxz2-000219-Dh for qemu-devel@nongnu.org; Fri, 18 Nov 2022 04:48:29 -0500 Received: by mail-pj1-x1030.google.com with SMTP id w3-20020a17090a460300b00218524e8877so6671401pjg.1 for ; Fri, 18 Nov 2022 01:48:28 -0800 (PST) Received: from stoup.. ([2602:47:d48a:1201:90b2:345f:bf0a:c412]) by smtp.gmail.com with ESMTPSA id n12-20020a170902e54c00b0018862bb3976sm3115421plf.308.2022.11.18.01.48.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Nov 2022 01:48:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=QrYtnxLvtfKAc7aqQk4XJ12ghRRjf03hK+wLuvAHjsA=; b=f3Dku6bWpuZM/TYfsyjgaCr4dOFnk+ysC5sPMUnBP59nQLkoxKVHe0523I2f5MdJFn fQj6DaZHhWX3aq7ZoNbP83K2nCyRidbgQxc6BTph6gveNi4ZAPb7YqXYp3zlfAopxbn7 HPKP75h81HOBp3F90Ey1zdquue7FxCxf2vi9S7deMRIEcOis8HbqCrD3pab1owtsub9T ZzvjQn4kPnzndGcCiiieIMHFe/PU8gXjfC/yUrH3GcHq/Y1iYSVg3tVGBbycCUFlRNbq utKvj3Rac9qCAOxylIWQnlwjGYI17RlYq70zyehsF2gg3mlMJ3Nxy1E1Jk6U45qX0Qq1 rVww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QrYtnxLvtfKAc7aqQk4XJ12ghRRjf03hK+wLuvAHjsA=; b=F5MA31qyEe8mJ7ffBSLIznqYgWXgaeNvNS7w1imJFLI8VA2jZvfskbGIicL/gfrDKt YIiLJ2qhULrloWMfRz8XO0kpTulMFJ32Ik+YcUh88AZBJaPKM0K7/jDIQ8CfyJyxGt6L Tn9AqspLIC5kOm7aKS0/H6chHiApJeUQJ42uhWibQDRjSV7CYLD2EJfzmdM5rzeK2f71 uSYo9/6+OFTRLdJxZ9wcKzSsw8yQrSSEN9cRb0X1ZhZh+viQZud8M6lYabeZF85yNNEn ePAgN2AhzyTxDE25V68h33Aob+uK9dT5/1V5DfGedresmdE3VjyAFgfhtDCDyrDTGPCc bLtg== X-Gm-Message-State: ANoB5pm/ioupZD7S/CRGKs+CF3rEQfLnC441IIN70kSoJp06e1EjTY5L 6qMqRYcXJRTSu6bgsEkb85FazM7Rurjl8Q== X-Google-Smtp-Source: AA0mqf6Ew/XQLgpWrsN98gGKJyRELhU1Ig2oVr90kXlH1maersaRB5z6GlAIDl+CVnspHH8jVlpmFg== X-Received: by 2002:a17:902:8217:b0:186:e2c3:91c6 with SMTP id x23-20020a170902821700b00186e2c391c6mr6764149pln.27.1668764907661; Fri, 18 Nov 2022 01:48:27 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH for-8.0 15/29] include/qemu/int128: Add vector type to Int128Alias Date: Fri, 18 Nov 2022 01:47:40 -0800 Message-Id: <20221118094754.242910-16-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221118094754.242910-1-richard.henderson@linaro.org> References: <20221118094754.242910-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::1030; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1030.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1668764981519100001 Content-Type: text/plain; charset="utf-8" Adding a vector type will make it easier to handle i386 have_atomic16 via AVX. Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- include/qemu/int128.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/qemu/int128.h b/include/qemu/int128.h index f62a46b48c..f29f90e6f4 100644 --- a/include/qemu/int128.h +++ b/include/qemu/int128.h @@ -479,16 +479,16 @@ static inline void bswap128s(Int128 *s) /* * When compiler supports a 128-bit type, define a combination of * a possible structure and the native types. Ease parameter passing - * via use of the transparent union extension. + * via use of the transparent union extension. Provide a vector type + * for use in atomicity on some hosts. */ -#ifdef CONFIG_INT128 typedef union { Int128 s; + uint64_t v __attribute__((vector_size(16))); +#ifdef CONFIG_INT128 __int128_t i; __uint128_t u; -} Int128Alias __attribute__((transparent_union)); -#else -typedef Int128 Int128Alias; #endif /* CONFIG_INT128 */ +} Int128Alias __attribute__((transparent_union)); =20 #endif /* INT128_H */ --=20 2.34.1