From patchwork Sun Feb 4 04:11:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 126811 Delivered-To: patch@linaro.org Received: by 10.80.172.228 with SMTP id x91csp1227984edc; Sat, 3 Feb 2018 20:26:26 -0800 (PST) X-Google-Smtp-Source: AH8x225u8LKIGG28+IuuQfG5kzamVD7O51lQE7xUXalubv0QT1q5rcBJVcsgc9SkRolBwZWAq35r X-Received: by 10.37.55.138 with SMTP id e132mr8749057yba.110.1517718385931; Sat, 03 Feb 2018 20:26:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517718385; cv=none; d=google.com; s=arc-20160816; b=kyINbGaQ1f8gKloedW17iCo9NVQr3vJA7xSmWRnRIMUqjxZptOQeTXTxPhCji5T6nB 06KhWBssDrdqBx8mUCxAMpWv2I/YjvwOAIQWsmUEUDvo+GSPjmaRk1RwyLco9/3FfTgv DyXBTk/fgWAj/2z3hRPS/5l+/S6Gga7PNv4J1FBzVPh8yLmlIEhUJ7YM/1avRb0gZOZR hYI2ziG0LuPbmVfpUZbPNIEXEAOMhFGrzJ7JRsJdLhAxzA3x2D/VNXCw9nZpEfMeG+OA zXoFNDEJryH2t4TvPwKZ5Iz+zBW17rlxD/E/eia0ST/5y/1+ylJhmWOpRef8sIzT9cox 18PQ== 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=ONpNPHQiOaInUhbuueSdhiKAc0We9zR8arc4jZRkfBs=; b=TFLFqkWvWoNhwIt0R6TkKDfWIuNFZNsmSBL2+X1F+o/O53JOJpfIP73ZrzXBGMaGt7 XroC+KEAe5CaE07EYZqH/iHnqN7tGF0d2k1i/2qjOdr2Jw6PxBILyh5rTzEkJowPdzUT QBcK78r35fLSxIsUbGpWrVpvo091CyowHTE+BRg3y34vcUJ6GbX4/KDeePJnVNWWCtN9 7D16x+x6DOEpg3vUbJbSF5R6D+ZNjdco56LRO/WJdnHL0paer/cAzSWug7l8xIiskqOb eTwk9gn6R3XvC/f7vvzKJvFbMID9TyRWfrx5pGYxykf0EPT8lV5bPW8OL+Li49UXwMgs X0iA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Ei/39uhL; 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 g20si1058275ybh.103.2018.02.03.20.26.25 for (version=TLS1 cipher=AES128-SHA bits=128/128); Sat, 03 Feb 2018 20:26:25 -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=Ei/39uhL; 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]:58329 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eiBsn-00087V-8h for patch@linaro.org; Sat, 03 Feb 2018 23:26:25 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47344) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eiBeo-0004gK-Gv for qemu-devel@nongnu.org; Sat, 03 Feb 2018 23:11:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eiBen-0004xY-HG for qemu-devel@nongnu.org; Sat, 03 Feb 2018 23:11:58 -0500 Received: from mail-pl0-x242.google.com ([2607:f8b0:400e:c01::242]:34683) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eiBen-0004xE-BD for qemu-devel@nongnu.org; Sat, 03 Feb 2018 23:11:57 -0500 Received: by mail-pl0-x242.google.com with SMTP id q17so7156124pll.1 for ; Sat, 03 Feb 2018 20:11:57 -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=ONpNPHQiOaInUhbuueSdhiKAc0We9zR8arc4jZRkfBs=; b=Ei/39uhLESo7vmxMp8KyosrWyanz6fAXrUMBrYfhqTKMdtWq+NfmqkL0rlzUir15CO 9uCLdnD4nfUyu79NffvHafpqRsC6jLNNzLPtKk7av6y7u9f8Ynym+qdOyzVsFjNui2NI /8NjKN25hBsf6x3CTj7Kfn206Tg/deWKJcfwk= 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=ONpNPHQiOaInUhbuueSdhiKAc0We9zR8arc4jZRkfBs=; b=iNfxScT/SQvum6cdz9HORaVYryxDmWmtJM7IwlwGNP8JdW970XtnvYqJ3ZTnJ9UCLh RfeNdIIy9gSFsCUkHv0lFIX4ziLM+yWylz01nwuUyoxhduKyUSfSp0kycEA/F3yxWR9b nc7EgUCm5eojnI+n+vDFJM0EuknB3UEwfJN4mnzZkHfIywkNkABQON2JmQi0KY1PTzBs pyNuxhVLe/xRl1pZ/Z2xH4Wr6Ov0x83xf/Yf2IH+cTy04sS27meMJdX8rSHX3b6arngL VajVfPpwdKe++UbFo0aWvRYEcivbXTDNrKCkruqPk4D3PQLsjVx806jK0KerJhliO++x 5E4Q== X-Gm-Message-State: AKwxytfzmA/JoxAcTqcp8g4RRNOldgb+W9QwPLbLTviE3bTSDu3PqXOv i8DJifvGkfWcNc9NCSsz3V9Fnsl3Q28= X-Received: by 2002:a17:902:51e9:: with SMTP id y96-v6mr19993416plh.344.1517717516180; Sat, 03 Feb 2018 20:11:56 -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.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 03 Feb 2018 20:11:55 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Date: Sat, 3 Feb 2018 20:11:23 -0800 Message-Id: <20180204041136.17525-12-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 11/24] fpu/soft-fp: Adjust soft-fp types 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" Glibc uses host compiler floating-point types for packing. We need to use softfloat.h types. Signed-off-by: Richard Henderson --- fpu/double.h | 6 ++---- fpu/half.h | 4 +--- fpu/quad.h | 6 ++---- fpu/single.h | 4 +--- 4 files changed, 6 insertions(+), 14 deletions(-) -- 2.14.3 diff --git a/fpu/double.h b/fpu/double.h index f6c83d7253..6f8fe49a7d 100644 --- a/fpu/double.h +++ b/fpu/double.h @@ -69,13 +69,11 @@ #define _FP_HIGHBIT_DW_D \ ((_FP_W_TYPE) 1 << (_FP_WFRACBITS_DW_D - 1) % _FP_W_TYPE_SIZE) -typedef float DFtype __attribute__ ((mode (DF))); - #if _FP_W_TYPE_SIZE < 64 union _FP_UNION_D { - DFtype flt; + float64 flt; struct _FP_STRUCT_LAYOUT { # if __BYTE_ORDER == __BIG_ENDIAN @@ -198,7 +196,7 @@ union _FP_UNION_D union _FP_UNION_D { - DFtype flt; + float64 flt; struct _FP_STRUCT_LAYOUT { # if __BYTE_ORDER == __BIG_ENDIAN diff --git a/fpu/half.h b/fpu/half.h index ea28db6c18..75a3168a75 100644 --- a/fpu/half.h +++ b/fpu/half.h @@ -59,11 +59,9 @@ /* The implementation of _FP_MUL_MEAT_H and _FP_DIV_MEAT_H should be chosen by the target machine. */ -typedef float HFtype __attribute__ ((mode (HF))); - union _FP_UNION_H { - HFtype flt; + float16 flt; struct _FP_STRUCT_LAYOUT { #if __BYTE_ORDER == __BIG_ENDIAN diff --git a/fpu/quad.h b/fpu/quad.h index 71621f01bf..24a3245fb7 100644 --- a/fpu/quad.h +++ b/fpu/quad.h @@ -69,13 +69,11 @@ #define _FP_HIGHBIT_DW_Q \ ((_FP_W_TYPE) 1 << (_FP_WFRACBITS_DW_Q - 1) % _FP_W_TYPE_SIZE) -typedef float TFtype __attribute__ ((mode (TF))); - #if _FP_W_TYPE_SIZE < 64 union _FP_UNION_Q { - TFtype flt; + float128 flt; struct _FP_STRUCT_LAYOUT { # if __BYTE_ORDER == __BIG_ENDIAN @@ -202,7 +200,7 @@ union _FP_UNION_Q #else /* not _FP_W_TYPE_SIZE < 64 */ union _FP_UNION_Q { - TFtype flt /* __attribute__ ((mode (TF))) */ ; + float128 flt; struct _FP_STRUCT_LAYOUT { _FP_W_TYPE a, b; diff --git a/fpu/single.h b/fpu/single.h index 2918f78d97..91252f82ff 100644 --- a/fpu/single.h +++ b/fpu/single.h @@ -66,11 +66,9 @@ /* The implementation of _FP_MUL_MEAT_S and _FP_DIV_MEAT_S should be chosen by the target machine. */ -typedef float SFtype __attribute__ ((mode (SF))); - union _FP_UNION_S { - SFtype flt; + float32 flt; struct _FP_STRUCT_LAYOUT { #if __BYTE_ORDER == __BIG_ENDIAN