From patchwork Wed Feb 17 23:39:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 383928 Delivered-To: patch@linaro.org Received: by 2002:a02:c80e:0:0:0:0:0 with SMTP id p14csp3217581jao; Wed, 17 Feb 2021 15:40:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJxtO6jUOWG5YZlhpffdGytFOFkKNETYVAB4g82x1BMaMByVoxkgOUkQdjp8+rUHdoYP0tKh X-Received: by 2002:a25:b09e:: with SMTP id f30mr2857421ybj.199.1613605247636; Wed, 17 Feb 2021 15:40:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613605247; cv=none; d=google.com; s=arc-20160816; b=KA+5MSmok/7JEryAKW27dQNUxXbXA+KCnwIGAlZv6C9X4JHuiig/q0q+JKNe0M7+LG sXkVEdAsUa3/jy3+6TXlsHgKf8y0OSuc2CneMFxmwurBG6vEG9iJt+rJxPhuah4wfw1Y UOtO1Cd3RyWKHgzlbZuK4HMBvxAwjOOnu4SYPLd5L/e0Ud7hlLlL5qBfvuAtngXFuXfM W0+jNc2RDWgDuo1HaslYLpteC6ssyJbMH2OvxURvvv104wmiRRfBSMWltQ6Qd2mDT4Xx H26ptE6OPjYd9QxyJuo9+Ejt94Oe+/4DtUlF4ZMzNWAXkmZtRrzqBycKCdu5PZN4SN0x 9M8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=AcGphVvC0/caTtvh4+lg1JnnXtDLzy6lys2FZhvbGvY=; b=dWn3jhNoDhgu5+aZZGHwkf1a0O7SXKb/anY4n8wQI7KwVv441WwqHynMaV25E3gux7 KLi2zchrgh6USuRlK7uM08mk54AHUxrXKEqmbjqnq+lXxqQFhMYDT6iOuESG8gjtZxdl JzcOKZ3eSjqk7Lg23VaSZVRUV5J1XtgJMQVpCWQ7MAvTMb3XnqccapidABKiETBuGaVu /V6g/xyh+5rtJuCmIilsDDiQHH026LGGywbUyDCUeBwe2ylULjlLjkR2OWx9U6jBzBMW /5UwcjwXlTn1NVtw6Q/G0qcFZGFNzGlFNGsHPBdmbhp0y3O38ovPk/tPMulKuhjJyLN/ TywA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=uQcXATsi; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d203si3959832ybh.272.2021.02.17.15.40.47 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 17 Feb 2021 15:40:47 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=uQcXATsi; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:33658 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lCWR5-0007e4-2C for patch@linaro.org; Wed, 17 Feb 2021 18:40:47 -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) 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-Received: by 2002:a17:90b:1495:: with SMTP id js21mr1191621pjb.127.1613605229982; Wed, 17 Feb 2021 15:40:29 -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) 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 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_Benn=C3=A9e?= , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Richard Henderson Tested-by: Philippe Mathieu-Daudé Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Alex Bennée Message-Id: <20201021045149.1582203-2-richard.henderson@linaro.org> --- include/qemu/int128.h | 10 ++++++++++ 1 file changed, 10 insertions(+) -- 2.25.1 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; } +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 }; } +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;