Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified)) by mollari.NetBSD.org (Postfix) with ESMTPS id DF11B1A9213 for ; Tue, 7 Jul 2020 01:47:48 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id 7FB4184D36; Tue, 7 Jul 2020 01:47:48 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id F419184D66 for ; Tue, 7 Jul 2020 01:47:47 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id 0WRzCcZvDeLS for ; Tue, 7 Jul 2020 01:47:47 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 7272784CE0 for ; Tue, 7 Jul 2020 01:47:47 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 6BE5EFB28; Tue, 7 Jul 2020 01:47:47 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Tue, 7 Jul 2020 01:47:47 +0000 From: "Rin Okuyama" Subject: CVS commit: src/crypto/external/bsd/openssl/dist/crypto To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20200707014747.6BE5EFB28@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Rin Okuyama" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: rin Date: Tue Jul 7 01:47:47 UTC 2020 Modified Files: src/crypto/external/bsd/openssl/dist/crypto: ppccap.c Log Message: Part of PR port-powerpc/55425 openssl fails on FPU emulation for powerpc When machdep.fpu_present sysctl variable can be retrieved, and its value is zero, avoid using FPU arithmetic. FPU is absent and emulated by kernel in that case, and calculation results are not correct in bit-to-bit precision. This behavior should be useful even if we could fix FPU emulation; it is much faster to skip FPU arithmetic in general, rather than relying upon emulation by kernel via illegal instruction handler. To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 \ src/crypto/external/bsd/openssl/dist/crypto/ppccap.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.