From nobody Sun Sep 17 14:45:00 2023 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RpW185Gl2z4sxqs; Sun, 17 Sep 2023 14:45:00 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RpW184lyxz3gl5; Sun, 17 Sep 2023 14:45:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694961900; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=92ks+HcXngEKhWmNEbmwMXH2GWR62XvIYdfdo4Rhi1k=; b=yPIup5nwZeZ/c+rGbDlDJvZd3D70ZT35rlEwcCsuAMbl/PtBE793cfegv5qGguwJCvs7P5 xByoGTW4VUrwg+ykfwfwLoHjHutGSuxN/UQv+BZKGdIMmvAiSWZPkc/1CDzbLNxdsSDLnx Fp/PC3H0zYxKBgrSfQ+OeLxcI9ICu0Xqg1GqRwd9RR7e+ptCAU0I0/41MvdzezXWDMHXgJ gfS759DCadcXXPCCEPov5REjZG1oRRLQGd0czPqedNYUl06YvRlO/HAQq6xqKeaUXO+GQY EUAQ3n4a47+K2EQq4l62xaHu7cCydJEljZzSmTWOqZ1QHerXUqXC25rHisXj4w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694961900; a=rsa-sha256; cv=none; b=yv+T+TeljVjkAs0BaNEPg+ews14XiQUxlNP6gcdELIvMvvQyYiULmWkzHesx0S/qCU+sPI 3HbHY0QFLozVpNIr1KQSej15cZLPcafA3ILrFnXr3hyywnC7M7kRhHEULuYNDCQ16hNMKd n2T0UDgglEPsQYpxr99LSpDNeUukkkTIwtLcAQ2Q2GhuJT0lL2oQ1jPDWzPy5mmuykW8NX bZ8WuUsk6Lw3dgkBq7Uv/HYR4t5EnRz/A9YnbILqpbvYeULASAZAv8pxBk5Ep0McRRjsQC yuVRYvJx2xCySK5QVntHlH+EdfZrnu7jwSvdYZ2biXKB6TcTKri0G0inf7hSbQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694961900; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=92ks+HcXngEKhWmNEbmwMXH2GWR62XvIYdfdo4Rhi1k=; b=JtHvIZo8LW/3eayxcW5uOxUHBnJIMynjECQZqYbA90qzOt+i/vQyDvOtmEYKda6bHiDepz grNGBKB/jiCW/nG2wrQIzA6mm2MQwjXrKg49i8qArUlEkb0HrXAiRobVnoEmhkwJJCAdQM NA0llNTvloWj6OP0Z1Jp6maqjQrzRB1Agb8K/vfpIvCiXo0pEH0GIagWRc0F+06KswLRJU fU+av1yL+XxJYm+s1CBuYgQq3Uz4wp2UT75kk37WWMn1GyM/d6HpC+1noOvBas+X4Gvvhn HhSzwNuAzU1Fw9rjooKst1QV9y0rEgxULyHuAQh6oTBD7tmUQ/hbAJT05WvEaQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RpW183s5qzt5m; Sun, 17 Sep 2023 14:45:00 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 38HEj0Fk039093; Sun, 17 Sep 2023 14:45:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 38HEj01N039090; Sun, 17 Sep 2023 14:45:00 GMT (envelope-from git) Date: Sun, 17 Sep 2023 14:45:00 GMT Message-Id: <202309171445.38HEj01N039090@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Warner Losh Subject: git: 75e7075fcadd - stable/14 - powerpcspe: Fix build List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 75e7075fcadd66fa8a63a252e71513d729776805 Auto-Submitted: auto-generated The branch stable/14 has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=75e7075fcadd66fa8a63a252e71513d729776805 commit 75e7075fcadd66fa8a63a252e71513d729776805 Author: Li-Wen Hsu AuthorDate: 2023-09-17 14:43:26 +0000 Commit: Warner Losh CommitDate: 2023-09-17 14:43:26 +0000 powerpcspe: Fix build Copy _fpmath.h from powerpc, which is the same as the one in powerpc64. Sponsored by: The FreeBSD Foundation (cherry picked from commit 604f6bf022cea7e48f3675aa82e756a440716fd9) --- lib/libc/powerpcspe/_fpmath.h | 56 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/lib/libc/powerpcspe/_fpmath.h b/lib/libc/powerpcspe/_fpmath.h new file mode 100644 index 000000000000..9bc7450aacaf --- /dev/null +++ b/lib/libc/powerpcspe/_fpmath.h @@ -0,0 +1,56 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause + * + * Copyright (c) 2003 David Schultz + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + */ + +union IEEEl2bits { + long double e; + struct { +#if _BYTE_ORDER == _LITTLE_ENDIAN + unsigned int manl :32; + unsigned int manh :20; + unsigned int exp :11; + unsigned int sign :1; +#else /* _BYTE_ORDER == _LITTLE_ENDIAN */ + unsigned int sign :1; + unsigned int exp :11; + unsigned int manh :20; + unsigned int manl :32; +#endif + } bits; +}; + +#define mask_nbit_l(u) ((void)0) +#define LDBL_IMPLICIT_NBIT +#define LDBL_NBIT 0 + +#define LDBL_MANH_SIZE 20 +#define LDBL_MANL_SIZE 32 + +#define LDBL_TO_ARRAY32(u, a) do { \ + (a)[0] = (uint32_t)(u).bits.manl; \ + (a)[1] = (uint32_t)(u).bits.manh; \ +} while(0)