From patchwork Sun Feb 4 04:11:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 126813 Delivered-To: patch@linaro.org Received: by 10.80.172.228 with SMTP id x91csp1228193edc; Sat, 3 Feb 2018 20:26:55 -0800 (PST) X-Google-Smtp-Source: AH8x226WaYZk/6CwqjXioArsQ6JttHILoTYXho9/l1KN3JJyXUyiswEnRHlmeP65+JxiRZQkKWvr X-Received: by 10.13.234.66 with SMTP id t63mr30470786ywe.319.1517718415042; Sat, 03 Feb 2018 20:26:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517718415; cv=none; d=google.com; s=arc-20160816; b=LtVYAjt1rMUOfNTkyxfN2fUIOnr10vrsbMXTAUh/PwnPz/eLtCRcXSWpaFZ0mD8jQl Gjmll3rHwD9y8MgG+9zt0MLNO1w62C7j2zcnPTJr4Q9Z7tKwJ+7FEKmPdZFrpi0X90H4 4MFMr06tcFMNyMmyYXyXA12ir1xREPGNA/PRlFHnHGjg6uavwJZKfwFRLZFBx7o3uq0V L5eeJcTPkTcBDzxGIx/QUWOYjCCrteYOGS0FGjnGKxYa31uRf+orkJcGyP7BEDZknckf UuBAfxqX8YwjAniU6Z39AY70JKYcu6aNh2nkH6VeHF8kRERr39FCO2KuZy5UOz3qfTCE Wkzg== 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:subject:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=6wLWChsK8okp0FYwdcnmAQywbUh86H7poSOt5I9EA8A=; b=miwgELZsT2+BlWCLpZLBU8MH53A+pMERdHnMckKEOrP4I63qM/VAlgOW42F9GeGlOk DVmZAeRBk38wWPPXRHCwWjyu7KWEw8p34+SjZDjvRYCCYevs3c2Hv7pySK36K+nuNoU/ xO5SEAjDH5gkC/fPu2iLHTqtqzmkRWm2vpJLRe55rhn6zKA4ksqCrEkgPWj/WLdF1P9Q Ep5xz5wkpvZ+tXQOwasIZTnSAQ9MsA1iwU2TPEEe6Uny/8Tw4havdarTSg9zt7j0A2DN PlrtnQDsmzNO1oB5oV4Udb+LsQP5BxWlGMbcyL5H2yrvfs4wCUCGNZag/d5hmyBhQqvU fp8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=EdjqOqp7; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id m186si499091ywb.96.2018.02.03.20.26.54 for (version=TLS1 cipher=AES128-SHA bits=128/128); Sat, 03 Feb 2018 20:26:55 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=EdjqOqp7; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:58340 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eiBtG-00012g-Ed for patch@linaro.org; Sat, 03 Feb 2018 23:26:54 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47367) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eiBer-0004j5-8A for qemu-devel@nongnu.org; Sat, 03 Feb 2018 23:12:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eiBeq-0004yZ-7z for qemu-devel@nongnu.org; Sat, 03 Feb 2018 23:12:01 -0500 Received: from mail-pl0-x242.google.com ([2607:f8b0:400e:c01::242]:34892) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eiBeq-0004yH-2K for qemu-devel@nongnu.org; Sat, 03 Feb 2018 23:12:00 -0500 Received: by mail-pl0-x242.google.com with SMTP id j19so9379034pll.2 for ; Sat, 03 Feb 2018 20:12:00 -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; bh=6wLWChsK8okp0FYwdcnmAQywbUh86H7poSOt5I9EA8A=; b=EdjqOqp7bYkQwmhyIxf1d2ZbD2D04b+ghVAdx7BjXpqapcjdDU3lCQWt6ApEVIS2aD oPv+mc6AHXaEZxojBd6kfeJZQR78WHA/jq6H6WfNkxZ0dYdbrOW8Dkw2N0i0TSrHSWf4 HYLU48GwlrWMLCZasdghp6jz3X/RdBOaP+Luc= 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; bh=6wLWChsK8okp0FYwdcnmAQywbUh86H7poSOt5I9EA8A=; b=HNluMFSdqqlTI4U7ez1vBVpiCdmJTeIa66ahvjTvqNJUy2I4rt39gNR8AzeumQEwMB y6rnkknxMkFZeMZtUzU5Z73ehFAWm5OydzCc73EFZbcBuCsPeO0GucgNTKVdXKQjqNjY WO4/gYXSGonWx+gZr7jr6Ax0Mxp5Bk4kJf/x31BJGkiqhKWtOOYwi8jOjiNJm5J/oGsF TN3DNySV+Y5jiAZO1b7byd6Qfpe5ox7oCt9y8adyAn5nRYqi/4ILSgIBJZ+ZUQHiqYXO 6JOsmujY4Lm6wHDjYGzcB0hWrsLndpJAQURk+eN3MtxSYXQlWvpETmAMsQv/ppAE7b7l AIsw== X-Gm-Message-State: AKwxytf7qL8koYRVHabmXn+/QXiPVdC7ETLlowyBUeGHxYQc8oBc1/bV TEz495auC7k1xBV/CgCO8GqXBVyzumI= X-Received: by 2002:a17:902:8:: with SMTP id 8-v6mr39418997pla.415.1517717518939; Sat, 03 Feb 2018 20:11:58 -0800 (PST) Received: from cloudburst.twiddle.net (174-21-6-47.tukw.qwest.net. [174.21.6.47]) by smtp.gmail.com with ESMTPSA id k3sm1399425pgr.12.2018.02.03.20.11.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 03 Feb 2018 20:11:58 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Date: Sat, 3 Feb 2018 20:11:25 -0800 Message-Id: <20180204041136.17525-14-richard.henderson@linaro.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180204041136.17525-1-richard.henderson@linaro.org> References: <20180204041136.17525-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c01::242 Subject: [Qemu-devel] [PATCH 13/24] fpu/soft-fp: Add arithmetic macros to half.h X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, cota@braap.org, alex.bennee@linaro.org, hsp.cat7@gmail.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" These were omitted from upstream glibc for some reason. Signed-off-by: Richard Henderson --- fpu/half.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) -- 2.14.3 diff --git a/fpu/half.h b/fpu/half.h index 75a3168a75..d9e1cd5e01 100644 --- a/fpu/half.h +++ b/fpu/half.h @@ -159,7 +159,19 @@ union _FP_UNION_H _FP_TO_INT_ROUND (H, 1, (r), X, (rsz), (rsg)) #define FP_FROM_INT_H(X, r, rs, rt) _FP_FROM_INT (H, 1, X, (r), (rs), rt) -/* HFmode arithmetic is not implemented. */ +#define FP_ISSIGNAN_H(X) _FP_ISSIGNAN (H, 1, X) +#define FP_NEG_H(R, X) _FP_NEG (H, 1, R, X) +#define FP_ADD_H(R, X, Y) _FP_ADD (H, 1, R, X, Y) +#define FP_SUB_H(R, X, Y) _FP_SUB (H, 1, R, X, Y) +#define FP_MUL_H(R, X, Y) _FP_MUL (H, 1, R, X, Y) +#define FP_DIV_H(R, X, Y) _FP_DIV (H, 1, R, X, Y) +#define FP_SQRT_H(R, X) _FP_SQRT (H, 1, R, X) +#define _FP_SQRT_MEAT_H(R, S, T, X, Q) _FP_SQRT_MEAT_1 (R, S, T, X, (Q)) +#define FP_FMA_H(R, X, Y, Z) _FP_FMA (H, 1, 1, R, X, Y, Z) + +#define FP_CMP_H(r, X, Y, un, ex) _FP_CMP (H, 1, (r), X, Y, (un), (ex)) +#define FP_CMP_EQ_H(r, X, Y, ex) _FP_CMP_EQ (H, 1, (r), X, Y, (ex)) +#define FP_CMP_UNORD_H(r, X, Y, ex) _FP_CMP_UNORD (H, 1, (r), X, Y, (ex)) #define _FP_FRAC_HIGH_H(X) _FP_FRAC_HIGH_1 (X) #define _FP_FRAC_HIGH_RAW_H(X) _FP_FRAC_HIGH_1 (X)