From nobody Tue Feb 10 19:48:32 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 1517718347211286.929062112325; Sat, 3 Feb 2018 20:25:47 -0800 (PST) Received: from localhost ([::1]:58329 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eiBs2-00087V-7Q for importer@patchew.org; Sat, 03 Feb 2018 23:25:38 -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) 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) 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-Google-Smtp-Source: AH8x2271DYluwGcyU07jM301eqiDlnenssT4PFLaQigBxYb2mwo8b0b2kttACE1cMU4tQPPmnGNWoA== X-Received: by 2002:a17:902:51e9:: with SMTP id y96-v6mr19993416plh.344.1517717516180; Sat, 03 Feb 2018 20:11:56 -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+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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(-) 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) =20 -typedef float DFtype __attribute__ ((mode (DF))); - #if _FP_W_TYPE_SIZE < 64 =20 union _FP_UNION_D { - DFtype flt; + float64 flt; struct _FP_STRUCT_LAYOUT { # if __BYTE_ORDER =3D=3D __BIG_ENDIAN @@ -198,7 +196,7 @@ union _FP_UNION_D =20 union _FP_UNION_D { - DFtype flt; + float64 flt; struct _FP_STRUCT_LAYOUT { # if __BYTE_ORDER =3D=3D __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. */ =20 -typedef float HFtype __attribute__ ((mode (HF))); - union _FP_UNION_H { - HFtype flt; + float16 flt; struct _FP_STRUCT_LAYOUT { #if __BYTE_ORDER =3D=3D __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) =20 -typedef float TFtype __attribute__ ((mode (TF))); - #if _FP_W_TYPE_SIZE < 64 =20 union _FP_UNION_Q { - TFtype flt; + float128 flt; struct _FP_STRUCT_LAYOUT { # if __BYTE_ORDER =3D=3D __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. */ =20 -typedef float SFtype __attribute__ ((mode (SF))); - union _FP_UNION_S { - SFtype flt; + float32 flt; struct _FP_STRUCT_LAYOUT { #if __BYTE_ORDER =3D=3D __BIG_ENDIAN --=20 2.14.3