From nobody Tue Feb 10 15:28:28 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; 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=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1613605332; cv=none; d=zohomail.com; s=zohoarc; b=lGeWj+EL/SsaR6hz+Bhq/GoeECXhRld0vZqmcpOTqGUVOgkiZCVinZkM4aBEhsIA2dIbjcE9D9j4o1YaFB8ZC7fShULw/QswreCG5ZYUJcBSOef6ZhFt1N2HR63R7Y+fSsR7ObOnOl/q3DEdGPIXkrm6TjHp+JUEU8EKmR6FBa0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1613605332; h=Content-Type:Content-Transfer-Encoding:Cc: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=AcGphVvC0/caTtvh4+lg1JnnXtDLzy6lys2FZhvbGvY=; b=fuhG+O2i4zDEJU7VxymVv59nzIxWNlCFm+63f1y8EjmvBrmxc79fzyD8C823gSZH21dVOR539brCUHoE3fbzGx0Fed6whqqW8IqKuxyys3paL+Ir7VudRzTmxAgcpsevJgLP+1l3Re2+PO5IUDEW8ibNlszOxC4bpZ4H9Z6QfDQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; 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=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1613605332043512.465127586447; Wed, 17 Feb 2021 15:42:12 -0800 (PST) Received: from localhost ([::1]:37362 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lCWSQ-0000nL-AR for importer@patchew.org; Wed, 17 Feb 2021 18:42:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:50502) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lCWQs-0007cQ-SJ for qemu-devel@nongnu.org; Wed, 17 Feb 2021 18:40:34 -0500 Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]:42333) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lCWQr-0004Xi-5O for qemu-devel@nongnu.org; Wed, 17 Feb 2021 18:40:34 -0500 Received: by mail-pl1-x635.google.com with SMTP id s16so195923plr.9 for ; Wed, 17 Feb 2021 15:40:32 -0800 (PST) Received: from localhost.localdomain (047-051-160-125.biz.spectrum.com. [47.51.160.125]) by smtp.gmail.com with ESMTPSA id c21sm3950355pgh.0.2021.02.17.15.40.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Feb 2021 15:40:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=AcGphVvC0/caTtvh4+lg1JnnXtDLzy6lys2FZhvbGvY=; b=uQcXATsih62P0UK9bhURf3ze2dRvXMsnNR0lFCgJiZe4WcacGxVUOz81XmOFqBgRBd 2szhDlI6Uk/Y5Pl7ISxCx86/pmbyDR4jbcI7KIqt0LZSgu9XGX9xv4o5TI1/JXD5nbL0 +hFOUuyJo7QxC1mulXQk4lCYZx0aV8wEoRBy/Ues9yCFhE0mtnpZ67i+5M+1dDgQg/Vm x5sqEhcV/qVpWfmBC2JAITYMGrQlZdhJbeCStSY6aFdfRLhrgOuX6StOO9lpH69bTkFM dfsxUsbF2bmXA+foUVXSjimQnYzIBL4gT0/1PDxSUlOXv7bdFlFuTlJ95naQ34WWJ7VP 3Xwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=AcGphVvC0/caTtvh4+lg1JnnXtDLzy6lys2FZhvbGvY=; b=P83nTTbFbTW9iXbwHQbYKNJ7RWTjfecBrCuzR8HncYx3tOV3gAf6jkSWM+HfFjjD8x BEalm7N96hd6dy6DMSJ3auVmh4bcnOXOX3cAJZ3J5SKdEgLhUCCi71jihzjERqu/Zf1o A8GD6FO3YcWIVEue94sK/6Hswvlx5THlbG+1VaeuMPW7XRhdQq7KIhkRbOyOsumwR+pp YkOcL3wEHwZFPapZzYtyZTX7UPGatPpvMnbIWyPurbLC0MGnD/ZtEnRKmmrhjqtFcE2E Vx+HbsreB5YV2raRpKEostVd98xK7rYTTZbPy6nDI0YpBsiNuuQJKSyzMhEEcbBAauUQ Wemw== X-Gm-Message-State: AOAM5305Ged8dEHcNa0vBMErpMZpU7MRE321+s2Hdxl8JKy3deFJh5h+ 8Fhh0eicK2jv/teY0hXs3nMsjdFCkdqxoA== X-Google-Smtp-Source: ABdhPJzhmLP4MZpLCZJZSYNTq+d1GRRIFLxAAKMq39G/qXFSbmC+cYmNgDTKEbwXMXmwks6+vvfXgA== X-Received: by 2002:a17:90b:1495:: with SMTP id js21mr1191621pjb.127.1613605229982; Wed, 17 Feb 2021 15:40:29 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 01/35] qemu/int128: Add int128_or Date: Wed, 17 Feb 2021 15:39:49 -0800 Message-Id: <20210217234023.1742406-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210217234023.1742406-1-richard.henderson@linaro.org> References: <20210217234023.1742406-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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::635; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x635.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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Signed-off-by: Richard Henderson Tested-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Alex Benn=C3=A9e Message-Id: <20201021045149.1582203-2-richard.henderson@linaro.org> --- include/qemu/int128.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/qemu/int128.h b/include/qemu/int128.h index 76ea405922..52fc238421 100644 --- a/include/qemu/int128.h +++ b/include/qemu/int128.h @@ -58,6 +58,11 @@ static inline Int128 int128_and(Int128 a, Int128 b) return a & b; } =20 +static inline Int128 int128_or(Int128 a, Int128 b) +{ + return a | b; +} + static inline Int128 int128_rshift(Int128 a, int n) { return a >> n; @@ -208,6 +213,11 @@ static inline Int128 int128_and(Int128 a, Int128 b) return (Int128) { a.lo & b.lo, a.hi & b.hi }; } =20 +static inline Int128 int128_or(Int128 a, Int128 b) +{ + return (Int128) { a.lo | b.lo, a.hi | b.hi }; +} + static inline Int128 int128_rshift(Int128 a, int n) { int64_t h; --=20 2.25.1