From owner-freebsd-numerics@freebsd.org Tue Sep 3 08:27:20 2019 Return-Path: Delivered-To: freebsd-numerics@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 43DABD2170 for ; Tue, 3 Sep 2019 08:27:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 46N0S81526z42Pq for ; Tue, 3 Sep 2019 08:27:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 252B4D216E; Tue, 3 Sep 2019 08:27:20 +0000 (UTC) Delivered-To: numerics@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 24F20D216D for ; Tue, 3 Sep 2019 08:27:20 +0000 (UTC) (envelope-from bugzilla-noreply@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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46N0S80CJvz42Pp for ; Tue, 3 Sep 2019 08:27:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id DDF0B27D48 for ; Tue, 3 Sep 2019 08:27:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x838RJJF088334 for ; Tue, 3 Sep 2019 08:27:19 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x838RJQa088333 for numerics@FreeBSD.org; Tue, 3 Sep 2019 08:27:19 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: numerics@FreeBSD.org Subject: [Bug 240295] math(3): Add Complex Arithmetic functions and their hyperbolic counterparts Date: Tue, 03 Sep 2019 08:27:19 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: standards X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: feature, needs-qa, standards X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: lwhsu@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: numerics@FreeBSD.org X-Bugzilla-Flags: mfc-stable11? mfc-stable12? X-Bugzilla-Changed-Fields: assigned_to cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-numerics@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussions of high quality implementation of libm functions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Sep 2019 08:27:20 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240295 Li-Wen Hsu changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|standards@FreeBSD.org |numerics@FreeBSD.org CC| |lwhsu@FreeBSD.org --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-numerics@freebsd.org Tue Sep 3 18:13:15 2019 Return-Path: Delivered-To: freebsd-numerics@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 20027E75EB for ; Tue, 3 Sep 2019 18:13:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 46NFSC03Fyz410D for ; Tue, 3 Sep 2019 18:13:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 01B30E75EA; Tue, 3 Sep 2019 18:13:15 +0000 (UTC) Delivered-To: numerics@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 01789E75E9 for ; Tue, 3 Sep 2019 18:13:15 +0000 (UTC) (envelope-from bugzilla-noreply@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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46NFSB6Hrjz410C for ; Tue, 3 Sep 2019 18:13:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id BBB816ECA for ; Tue, 3 Sep 2019 18:13:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x83IDEVx085026 for ; Tue, 3 Sep 2019 18:13:14 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x83IDEmb085014 for numerics@FreeBSD.org; Tue, 3 Sep 2019 18:13:14 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: numerics@FreeBSD.org Subject: [Bug 240295] math(3): Add Complex Arithmetic functions and their hyperbolic counterparts Date: Tue, 03 Sep 2019 18:13:14 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: standards X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: feature, needs-qa, patch, standards X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: linimon@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: numerics@FreeBSD.org X-Bugzilla-Flags: mfc-stable11? mfc-stable12? X-Bugzilla-Changed-Fields: keywords Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-numerics@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussions of high quality implementation of libm functions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Sep 2019 18:13:15 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240295 Mark Linimon changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-numerics@freebsd.org Thu Sep 5 23:07:59 2019 Return-Path: Delivered-To: freebsd-numerics@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 95195D6EAC for ; Thu, 5 Sep 2019 23:07:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 46PbvM3VpFz4VRr for ; Thu, 5 Sep 2019 23:07:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 7840BD6EAB; Thu, 5 Sep 2019 23:07:59 +0000 (UTC) Delivered-To: numerics@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 78016D6EAA for ; Thu, 5 Sep 2019 23:07:59 +0000 (UTC) (envelope-from bugzilla-noreply@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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46PbvM2dqJz4VRp for ; Thu, 5 Sep 2019 23:07:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 3EAB4B87B for ; Thu, 5 Sep 2019 23:07:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x85N7x09037679 for ; Thu, 5 Sep 2019 23:07:59 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x85N7x4A037678 for numerics@FreeBSD.org; Thu, 5 Sep 2019 23:07:59 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: numerics@FreeBSD.org Subject: [Bug 240295] math(3): Add Complex Arithmetic functions and their hyperbolic counterparts Date: Thu, 05 Sep 2019 23:07:59 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: standards X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: feature, needs-qa, patch, standards X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: kargl@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: numerics@FreeBSD.org X-Bugzilla-Flags: mfc-stable11? mfc-stable12? X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-numerics@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussions of high quality implementation of libm functions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Sep 2019 23:07:59 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240295 Steve Kargl changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kargl@FreeBSD.org --- Comment #2 from Steve Kargl --- Sigh. Here we go again. >From src/lib/msun/src/math_private.h * The C99 standard intends x+I*y to be used for this, but x+I*y is * currently unusable in general since gcc introduces many overflow, * underflow, sign and efficiency bugs by rewriting I*y as * (0.0+I)*(y+0.0*I) and laboriously computing the full complex product. * In particular, I*Inf is corrupted to NaN+I*Inf, and I*-0 is corrupted * to -0.0+I*0.0. >From the llvm bug database https://bugs.llvm.org/show_bug.cgi?id=3D8532 Some of the code in the patch uses I. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-numerics@freebsd.org Thu Sep 5 23:12:57 2019 Return-Path: Delivered-To: freebsd-numerics@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id C78DDD7202 for ; Thu, 5 Sep 2019 23:12:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 46Pc154y6jz4W6H for ; Thu, 5 Sep 2019 23:12:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id A9E5BD7201; Thu, 5 Sep 2019 23:12:57 +0000 (UTC) Delivered-To: numerics@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A9AC4D71FF for ; Thu, 5 Sep 2019 23:12:57 +0000 (UTC) (envelope-from bugzilla-noreply@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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46Pc153yp5z4W6F for ; Thu, 5 Sep 2019 23:12:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 6D0C1BA24 for ; Thu, 5 Sep 2019 23:12:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x85NCvrE055467 for ; Thu, 5 Sep 2019 23:12:57 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x85NCv70055466 for numerics@FreeBSD.org; Thu, 5 Sep 2019 23:12:57 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: numerics@FreeBSD.org Subject: [Bug 240295] math(3): Add Complex Arithmetic functions and their hyperbolic counterparts Date: Thu, 05 Sep 2019 23:12:57 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: standards X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: feature, needs-qa, patch, standards X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: kargl@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: numerics@FreeBSD.org X-Bugzilla-Flags: mfc-stable11? mfc-stable12? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-numerics@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussions of high quality implementation of libm functions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Sep 2019 23:12:57 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240295 --- Comment #3 from Steve Kargl --- Sigh**2. The patch includes functions already implemented in FreeBSD. r226458 | das | 2011-10-16 22:41:03 -0700 (Sun, 16 Oct 2011) | 3 lines Add c{cos,sin,tan}{,h}{,f} functions. This is joint work with bde and kargl. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-numerics@freebsd.org Thu Sep 5 23:58:33 2019 Return-Path: Delivered-To: freebsd-numerics@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8012FD9051 for ; Thu, 5 Sep 2019 23:58:33 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 46Pd1j0brFz4ZQ3 for ; Thu, 5 Sep 2019 23:58:33 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: by mailman.nyi.freebsd.org (Postfix) id 14973D904E; Thu, 5 Sep 2019 23:58:33 +0000 (UTC) Delivered-To: numerics@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 145C1D904B for ; Thu, 5 Sep 2019 23:58:33 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "troutmask", Issuer "troutmask" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 46Pd1d64kyz4ZQ0; Thu, 5 Sep 2019 23:58:29 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.15.2/8.15.2) with ESMTPS id x85NwMxw086715 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Thu, 5 Sep 2019 16:58:22 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.15.2/8.15.2/Submit) id x85NwMxO086714; Thu, 5 Sep 2019 16:58:22 -0700 (PDT) (envelope-from sgk) Date: Thu, 5 Sep 2019 16:58:22 -0700 From: Steve Kargl To: bugzilla-noreply@freebsd.org Cc: numerics@freebsd.org Subject: Re: [Bug 240295] math(3): Add Complex Arithmetic functions and their hyperbolic counterparts Message-ID: <20190905235822.GA86663@troutmask.apl.washington.edu> Reply-To: sgk@troutmask.apl.washington.edu References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.1 (2019-06-15) X-Rspamd-Queue-Id: 46Pd1d64kyz4ZQ0 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-6.93 / 15.00]; NEURAL_HAM_MEDIUM(-0.99)[-0.993,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[]; NEURAL_HAM_SHORT(-0.94)[-0.937,0] X-BeenThere: freebsd-numerics@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussions of high quality implementation of libm functions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Sep 2019 23:58:33 -0000 On Thu, Sep 05, 2019 at 11:12:57PM +0000, bugzilla-noreply@freebsd.org wrote: > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240295 > > --- Comment #3 from Steve Kargl --- > Sigh**2. The patch includes functions already implemented in FreeBSD. > > r226458 | das | 2011-10-16 22:41:03 -0700 (Sun, 16 Oct 2011) | 3 lines > > Add c{cos,sin,tan}{,h}{,f} functions. This is joint work with > bde and kargl. > The only C99 functions missing are ccosl, ccoshl, csinl, csinhl, ctanl, ctanhl, and cexpl. I have ld80 and ld128 code for ccosl, ccoshl, and cexpl, based on porting src/s_ccosh.c and src/s_cexp.c to the appropriate precisions. -- Steve From owner-freebsd-numerics@freebsd.org Fri Sep 6 00:13:23 2019 Return-Path: Delivered-To: freebsd-numerics@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 9BBE8D9828 for ; Fri, 6 Sep 2019 00:13:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 46PdLq3fN5z4bWZ for ; Fri, 6 Sep 2019 00:13:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 7D487D9827; Fri, 6 Sep 2019 00:13:23 +0000 (UTC) Delivered-To: numerics@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7D13DD9826 for ; Fri, 6 Sep 2019 00:13:23 +0000 (UTC) (envelope-from bugzilla-noreply@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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46PdLq2nGCz4bWY for ; Fri, 6 Sep 2019 00:13:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4325CC71F for ; Fri, 6 Sep 2019 00:13:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x860DNBr020722 for ; Fri, 6 Sep 2019 00:13:23 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x860DNxe020712 for numerics@FreeBSD.org; Fri, 6 Sep 2019 00:13:23 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: numerics@FreeBSD.org Subject: [Bug 240295] math(3): Add Complex Arithmetic functions and their hyperbolic counterparts Date: Fri, 06 Sep 2019 00:13:23 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: standards X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: feature, needs-qa, patch, standards X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: kargl@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: numerics@FreeBSD.org X-Bugzilla-Flags: mfc-stable11? mfc-stable12? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-numerics@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussions of high quality implementation of libm functions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Sep 2019 00:13:23 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240295 --- Comment #4 from Steve Kargl --- (In reply to Steve Kargl from comment #3) > Sigh**2. The patch includes functions already implemented in FreeBSD. >=20 > r226458 | das | 2011-10-16 22:41:03 -0700 (Sun, 16 Oct 2011) | 3 lines >=20 > Add c{cos,sin,tan}{,h}{,f} functions. This is joint work with > bde and kargl. The only C99 functions missing are ccosl, ccoshl, csinl, csinhl, ctanl, ctanhl, and cexpl. I have ld80 and ld128 code for ccosl, ccoshl, and cexpl, based on porting src/s_ccosh.c and src/s_cexp.c to the appropriate precisions. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-numerics@freebsd.org Fri Sep 6 01:58:02 2019 Return-Path: Delivered-To: freebsd-numerics@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 87597DB95D for ; Fri, 6 Sep 2019 01:58:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 46PggZ358jz4gFr for ; Fri, 6 Sep 2019 01:58:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 67FC4DB95B; Fri, 6 Sep 2019 01:58:02 +0000 (UTC) Delivered-To: numerics@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 67BE4DB95A for ; Fri, 6 Sep 2019 01:58:02 +0000 (UTC) (envelope-from bugzilla-noreply@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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46PggZ2B4wz4gFp for ; Fri, 6 Sep 2019 01:58:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 2D4F2D8EA for ; Fri, 6 Sep 2019 01:58:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x861w2G0013000 for ; Fri, 6 Sep 2019 01:58:02 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x861w2AV012999 for numerics@FreeBSD.org; Fri, 6 Sep 2019 01:58:02 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: numerics@FreeBSD.org Subject: [Bug 240295] math(3): Add Complex Arithmetic functions and their hyperbolic counterparts Date: Fri, 06 Sep 2019 01:58:00 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: standards X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: feature, needs-qa, patch, standards X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: stephen@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: numerics@FreeBSD.org X-Bugzilla-Flags: mfc-stable11? mfc-stable12? X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-numerics@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussions of high quality implementation of libm functions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Sep 2019 01:58:02 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240295 Stephen Montgomery-Smith changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |stephen@FreeBSD.org --- Comment #5 from Stephen Montgomery-Smith --- If you want to make additions to the FreeBSD math libraries, you really sho= uld subscribe to the numerics@freebsd.org mailing list. The people on that mai= ling list aren't necessarily the warmest people in the world, and may bite your = head off. But at least you will get a good sense of what is needed, and also how overly exacting their standards are. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-numerics@freebsd.org Fri Sep 6 02:31:20 2019 Return-Path: Delivered-To: freebsd-numerics@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2BABADC658 for ; Fri, 6 Sep 2019 02:31:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 46PhQ00Q0Cz3D8k for ; Fri, 6 Sep 2019 02:31:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 0DBCBDC657; Fri, 6 Sep 2019 02:31:20 +0000 (UTC) Delivered-To: numerics@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0D813DC656 for ; Fri, 6 Sep 2019 02:31:20 +0000 (UTC) (envelope-from bugzilla-noreply@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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46PhPz6dTYz3D8j for ; Fri, 6 Sep 2019 02:31:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id ADB82DE9C for ; Fri, 6 Sep 2019 02:31:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x862VJrM080964 for ; Fri, 6 Sep 2019 02:31:19 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x862VJ1M080963 for numerics@FreeBSD.org; Fri, 6 Sep 2019 02:31:19 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: numerics@FreeBSD.org Subject: [Bug 240295] math(3): Add Complex Arithmetic functions and their hyperbolic counterparts Date: Fri, 06 Sep 2019 02:31:19 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: standards X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: feature, needs-qa, patch, standards X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: kargl@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: numerics@FreeBSD.org X-Bugzilla-Flags: mfc-stable11? mfc-stable12? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-numerics@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussions of high quality implementation of libm functions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Sep 2019 02:31:20 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240295 --- Comment #6 from Steve Kargl --- (In reply to Stephen Montgomery-Smith from comment #5) > > If you want to make additions to the FreeBSD math libraries, you > really should subscribe to the numerics@freebsd.org mailing list. > The people on that mailing list aren't necessarily the warmest > people in the world, and may bite your head off. Given that the list seems to be bde and myself, and bde sticks to technical details on steroids, I suppose I should take this as a comment. Oh, the irony. > But at least you will get a good sense of what is needed, and > also how overly exacting their standards are. Overly exacting? If you make your living doing numerical computations and you use libm, don't you want the functions in that library to give you high quality results? BTW, if you look at the patch, the long double complex functions will have at least 2**11 ULP error on i686-class hardware (i.e.,=20 that last 4 to 6 decimal digits are likely wrong). See the ld80 routines that use LD80C to set constants and ENTERI and RETURNI to toggle the FPU precision. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-numerics@freebsd.org Fri Sep 6 05:58:54 2019 Return-Path: Delivered-To: freebsd-numerics@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 97F14E938A for ; Fri, 6 Sep 2019 05:58:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 46Pn1V3YJcz3QGQ for ; Fri, 6 Sep 2019 05:58:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 780F4E9389; Fri, 6 Sep 2019 05:58:54 +0000 (UTC) Delivered-To: numerics@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 77D9FE9388 for ; Fri, 6 Sep 2019 05:58:54 +0000 (UTC) (envelope-from bugzilla-noreply@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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46Pn1V2cknz3QGP for ; Fri, 6 Sep 2019 05:58:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 3A37F18521 for ; Fri, 6 Sep 2019 05:58:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x865wsNq014669 for ; Fri, 6 Sep 2019 05:58:54 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x865ws7F014668 for numerics@FreeBSD.org; Fri, 6 Sep 2019 05:58:54 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: numerics@FreeBSD.org Subject: [Bug 240295] math(3): Add Complex Arithmetic functions and their hyperbolic counterparts Date: Fri, 06 Sep 2019 05:58:54 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: standards X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: feature, needs-qa, patch, standards X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: kargl@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: numerics@FreeBSD.org X-Bugzilla-Flags: mfc-stable11? mfc-stable12? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-numerics@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussions of high quality implementation of libm functions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Sep 2019 05:58:54 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240295 --- Comment #7 from Steve Kargl --- I really should stop looking at the patch, ... but FreeBSD already has man pages for the float complex and double complex functions. Why do you think= you need man pages from openbsd? --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-numerics@freebsd.org Fri Sep 6 10:54:45 2019 Return-Path: Delivered-To: freebsd-numerics@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A1351F0243 for ; Fri, 6 Sep 2019 10:54:45 +0000 (UTC) (envelope-from stefan.kanthak@nexgo.de) Received: from vsmx009.vodafonemail.xion.oxcs.net (vsmx009.vodafonemail.xion.oxcs.net [153.92.174.87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46PvZn2mgmz4C0v; Fri, 6 Sep 2019 10:54:40 +0000 (UTC) (envelope-from stefan.kanthak@nexgo.de) Received: from vsmx001.vodafonemail.xion.oxcs.net (unknown [192.168.75.191]) by mta-5-out.mta.xion.oxcs.net (Postfix) with ESMTP id 3057B15A6534; Fri, 6 Sep 2019 10:54:38 +0000 (UTC) Received: from H270 (unknown [93.230.223.140]) by mta-5-out.mta.xion.oxcs.net (Postfix) with ESMTPA id C621515A5D1E; Fri, 6 Sep 2019 10:54:33 +0000 (UTC) Message-ID: <582553CAF6B647A09A15C24F50B9A75E@H270> From: "Stefan Kanthak" To: Cc: Subject: Superfluous instructions in crufty old releng/12.0/lib/msun/i387/s_remquo.S, releng/12.0/lib/msun/amd64/s_remquo.S, ... Date: Fri, 6 Sep 2019 12:45:03 +0200 Organization: Me, myself & IT MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Windows Mail 6.0.6002.18197 X-MimeOLE: Produced By Microsoft MimeOLE V6.1.7601.24158 X-VADE-STATUS: LEGIT X-Rspamd-Queue-Id: 46PvZn2mgmz4C0v X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of stefan.kanthak@nexgo.de designates 153.92.174.87 as permitted sender) smtp.mailfrom=stefan.kanthak@nexgo.de X-Spamd-Result: default: False [-2.24 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-0.94)[-0.935,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:153.92.174.0/24]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[nexgo.de]; HAS_ORG_HEADER(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; RCVD_TLS_LAST(0.00)[]; NEURAL_HAM_LONG(-1.00)[-0.998,0]; RCPT_COUNT_TWO(0.00)[2]; HAS_X_PRIO_THREE(0.00)[3]; NEURAL_HAM_SHORT(-0.40)[-0.402,0]; IP_SCORE(-0.00)[country: DE(-0.01)]; FROM_EQ_ENVFROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[87.174.92.153.list.dnswl.org : 127.0.5.1]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:60664, ipnet:153.92.174.0/24, country:DE]; MID_RHS_NOT_FQDN(0.50)[]; RECEIVED_SPAMHAUS_PBL(0.00)[140.223.230.93.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10] X-BeenThere: freebsd-numerics@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussions of high quality implementation of libm functions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Sep 2019 10:54:45 -0000 Hi, although I doubt that this FPU code might still be used, here's a patch to shave 2 superfluous instructions from http://sources.freebsd.org/releng/12.0/lib/msun/i387/s_remquo.S http://sources.freebsd.org/releng/12.0/lib/msun/i387/s_remquof.S http://sources.freebsd.org/releng/12.0/lib/msun/i387/s_remquol.S http://sources.freebsd.org/releng/12.0/lib/msun/amd64/s_remquo.S http://sources.freebsd.org/releng/12.0/lib/msun/amd64/s_remquof.S http://sources.freebsd.org/releng/12.0/lib/msun/amd64/s_remquol.S regards Stefan Kanthak --- -/releng/12.0/lib/msun/i387/s_remquo.S +++ +/releng/12.0/lib/msun/i387/s_remquo.S @@ -51,8 +51,6 @@ /* Negate the quotient bits if x*y<0. Avoid using an unpredictable branch. */ movl 16(%esp),%ecx xorl 8(%esp),%ecx - sarl $16,%ecx - sarl $16,%ecx + sarl $31,%ecx xorl %ecx,%eax - andl $1,%ecx - addl %ecx,%eax + subl %ecx,%eax --- -/releng/12.0/lib/msun/i387/s_remquof.S +++ +/releng/12.0/lib/msun/i387/s_remquof.S @@ -51,8 +51,6 @@ /* Negate the quotient bits if x*y<0. Avoid using an unpredictable branch. */ movl 8(%esp),%ecx xorl 4(%esp),%ecx - sarl $16,%ecx - sarl $16,%ecx + sarl $31,%ecx xorl %ecx,%eax - andl $1,%ecx - addl %ecx,%eax + subl %ecx,%eax --- -/releng/12.0/lib/msun/i387/s_remquol.S +++ +/releng/12.0/lib/msun/i387/s_remquol.S @@ -51,9 +51,7 @@ /* Negate the quotient bits if x*y<0. Avoid using an unpredictable branch. */ movl 24(%esp),%ecx xorl 12(%esp),%ecx movsx %cx,%ecx sarl $16,%ecx - sarl $16,%ecx xorl %ecx,%eax - andl $1,%ecx - addl %ecx,%eax + subl %ecx,%eax --- -/releng/12.0/lib/msun/amd64/s_remquo.S --- +/releng/12.0/lib/msun/amd64/s_remquo.S @@ -53,8 +53,6 @@ /* Negate the quotient bits if x*y<0. Avoid using an unpredictable branch. */ movl -12(%rsp),%ecx xorl -4(%rsp),%ecx - sarl $16,%ecx - sarl $16,%ecx + sarl $31,%ecx xorl %ecx,%eax - andl $1,%ecx - addl %ecx,%eax + subl %ecx,%eax --- -/releng/12.0/lib/msun/amd64/s_remquof.S --- +/releng/12.0/lib/msun/amd64/s_remquof.S @@ -53,8 +53,6 @@ /* Negate the quotient bits if x*y<0. Avoid using an unpredictable branch. */ movl -8(%rsp),%ecx xorl -4(%rsp),%ecx - sarl $16,%ecx - sarl $16,%ecx + sarl $31,%ecx xorl %ecx,%eax - andl $1,%ecx - addl %ecx,%eax + subl %ecx,%eax --- -/releng/12.0/lib/msun/amd64/s_remquol.S --- +/releng/12.0/lib/msun/amd64/s_remquol.S @@ -51,9 +51,6 @@ /* Negate the quotient bits if x*y<0. Avoid using an unpredictable branch. */ movl 32(%rsp),%ecx xorl 16(%rsp),%ecx movsx %cx,%ecx sarl $16,%ecx - sarl $16,%ecx xorl %ecx,%eax - andl $1,%ecx - addl %ecx,%eax + subl %ecx,%eax From owner-freebsd-numerics@freebsd.org Fri Sep 6 14:15:22 2019 Return-Path: Delivered-To: freebsd-numerics@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7CF42F4CEC for ; Fri, 6 Sep 2019 14:15:22 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "troutmask", Issuer "troutmask" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 46Q02J64CVz4Ps7; Fri, 6 Sep 2019 14:15:20 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.15.2/8.15.2) with ESMTPS id x86EFInA091328 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Fri, 6 Sep 2019 07:15:18 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.15.2/8.15.2/Submit) id x86EFHiC091327; Fri, 6 Sep 2019 07:15:17 -0700 (PDT) (envelope-from sgk) Date: Fri, 6 Sep 2019 07:15:17 -0700 From: Steve Kargl To: Stefan Kanthak Cc: freebsd-numerics@freebsd.org, das@freebsd.org Subject: Re: Superfluous instructions in crufty old releng/12.0/lib/msun/i387/s_remquo.S, releng/12.0/lib/msun/amd64/s_remquo.S, ... Message-ID: <20190906141517.GA91272@troutmask.apl.washington.edu> Reply-To: sgk@troutmask.apl.washington.edu References: <582553CAF6B647A09A15C24F50B9A75E@H270> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <582553CAF6B647A09A15C24F50B9A75E@H270> User-Agent: Mutt/1.12.1 (2019-06-15) X-Rspamd-Queue-Id: 46Q02J64CVz4Ps7 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of sgk@troutmask.apl.washington.edu has no SPF policy when checking 128.95.76.21) smtp.mailfrom=sgk@troutmask.apl.washington.edu X-Spamd-Result: default: False [-0.87 / 15.00]; ARC_NA(0.00)[]; HAS_REPLYTO(0.00)[sgk@troutmask.apl.washington.edu]; NEURAL_HAM_MEDIUM(-0.64)[-0.637,0]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; NEURAL_SPAM_SHORT(0.03)[0.027,0]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[washington.edu]; REPLYTO_ADDR_EQ_FROM(0.00)[]; AUTH_NA(1.00)[]; NEURAL_HAM_LONG(-0.94)[-0.936,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; IP_SCORE(-0.22)[ip: (0.06), ipnet: 128.95.0.0/16(-0.24), asn: 73(-0.88), country: US(-0.05)]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:73, ipnet:128.95.0.0/16, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-numerics@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussions of high quality implementation of libm functions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Sep 2019 14:15:22 -0000 On Fri, Sep 06, 2019 at 12:45:03PM +0200, Stefan Kanthak wrote: > > although I doubt that this FPU code might still be used, > here's a patch to shave 2 superfluous instructions from > http://sources.freebsd.org/releng/12.0/lib/msun/i387/s_remquo.S > http://sources.freebsd.org/releng/12.0/lib/msun/i387/s_remquof.S > http://sources.freebsd.org/releng/12.0/lib/msun/i387/s_remquol.S > http://sources.freebsd.org/releng/12.0/lib/msun/amd64/s_remquo.S > http://sources.freebsd.org/releng/12.0/lib/msun/amd64/s_remquof.S > http://sources.freebsd.org/releng/12.0/lib/msun/amd64/s_remquol.S > I don't know assembly, so cannot judge the correctness of your patch. Perhaps, bde will chime in here. The files are used. % make |& tee make.txt ... cc -O2 -pipe -I/usr/src/lib/msun/x86 -I/usr/src/lib/msun/ld80 -I/usr/src/lib/msun/i387 -I/usr/src/lib/msun/src -I/usr/src/lib/libc/include -I/usr/src/lib/libc/i386 -march=core2 -MD -MF.depend.s_remquo.o -MTs_remquo.o -std=gnu99 -fstack-protector-strong -Wsystem-headers -Werror -Wno-pointer-sign -Wno-unknown-pragmas -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef -Wno-address-of-packed-member -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses -Qunused-arguments -c /usr/src/lib/msun/i387/s_remquo.S -o s_remquo.o -- Steve From owner-freebsd-numerics@freebsd.org Fri Sep 6 19:09:31 2019 Return-Path: Delivered-To: freebsd-numerics@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 84451D459F for ; Fri, 6 Sep 2019 19:09:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 46Q6Yl30rLz4m7j for ; Fri, 6 Sep 2019 19:09:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 65595D459E; Fri, 6 Sep 2019 19:09:31 +0000 (UTC) Delivered-To: numerics@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 65213D459D for ; Fri, 6 Sep 2019 19:09:31 +0000 (UTC) (envelope-from bugzilla-noreply@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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46Q6Yl26wmz4m7g for ; Fri, 6 Sep 2019 19:09:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 2C8C62165A for ; Fri, 6 Sep 2019 19:09:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x86J9VP3077370 for ; Fri, 6 Sep 2019 19:09:31 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x86J9VF6077369 for numerics@FreeBSD.org; Fri, 6 Sep 2019 19:09:31 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: numerics@FreeBSD.org Subject: [Bug 240295] math(3): Add Complex Arithmetic functions and their hyperbolic counterparts Date: Fri, 06 Sep 2019 19:09:31 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: standards X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: feature, needs-qa, patch, standards X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: gbergling@gmail.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: numerics@FreeBSD.org X-Bugzilla-Flags: mfc-stable11? mfc-stable12? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-numerics@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussions of high quality implementation of libm functions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Sep 2019 19:09:31 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240295 --- Comment #8 from Gordon Bergling --- Dear Steve, I hope this was good for you, and you were able to direct all your anger, f= ear and uncertainty towards this problem report. For my perspective, I just saw at [1] that there is an unresolved issue with FreeBSD's math(3) implementation and I thought, that this could be solved by stepping a few steps backwards and looking at what the other BSDs have done= to overcome that issue. The tickets I mentioned within my original ticket were open for years, and = you are about to attacking the first person, who tries to address that issues. = I am quite sure that is not the spirit what the FreeBSD project is about. Cheers, Gordon=20 [1] https://wiki.freebsd.org/Numerics PS: Talk to what ever medical doctor is necessary! --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-numerics@freebsd.org Fri Sep 6 20:24:05 2019 Return-Path: Delivered-To: freebsd-numerics@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 54111D637C for ; Fri, 6 Sep 2019 20:24:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 46Q8Cn1fl1z4rSc for ; Fri, 6 Sep 2019 20:24:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 36F3BD637B; Fri, 6 Sep 2019 20:24:05 +0000 (UTC) Delivered-To: numerics@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 36B4AD6379 for ; Fri, 6 Sep 2019 20:24:05 +0000 (UTC) (envelope-from bugzilla-noreply@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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46Q8Cn0f2Yz4rSY for ; Fri, 6 Sep 2019 20:24:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id EEDDC224D0 for ; Fri, 6 Sep 2019 20:24:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x86KO4hB082679 for ; Fri, 6 Sep 2019 20:24:04 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x86KO4f0082678 for numerics@FreeBSD.org; Fri, 6 Sep 2019 20:24:04 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: numerics@FreeBSD.org Subject: [Bug 240295] math(3): Add Complex Arithmetic functions and their hyperbolic counterparts Date: Fri, 06 Sep 2019 20:24:04 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: standards X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: feature, needs-qa, patch, standards X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: kargl@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: numerics@FreeBSD.org X-Bugzilla-Flags: mfc-stable11? mfc-stable12? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-numerics@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussions of high quality implementation of libm functions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Sep 2019 20:24:05 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240295 --- Comment #9 from Steve Kargl --- (In reply to Gordon Bergling from comment #8) > > I hope this was good for you, and you were able to direct all your anger, > fear and uncertainty towards this problem report. > > For my perspective, I just saw at [1] that there is an unresolved > issue with FreeBSD's math(3) implementation and I thought, that > this could be solved by stepping a few steps backwards and looking > at what the other BSDs have done to overcome that issue. There is no anger, fear, or uncertainty in my response. More likely disillusionment in that it seems that you=20 have made no effort to review the freebsd-numerics mailing list archive or what libm currently has implemented. Why does your patch have float complex and double complex versions of the functions? FreeBSD's libm has had those since 2011. ccos() already implement in src/s_ccosh.c * Copyright (c) 2005 Bruce D. Evans and Steven G. Kargl ccosf() already implement in src/s_ccoshf.c * Copyright (c) 2005 Bruce D. Evans and Steven G. Kargl (Yes, the Copyright year is correct as it is likely that some code came from other files hwne ccos and ccosf > The tickets I mentioned within my original ticket were open > for years Yeah, I know. I'm the person who filed those PRs. I'm also the only person for the last 20 years who has consistently=20 tried to fix FreeBSD libm to be C99 compliant with quality implementations. > and you are about to attacking the first person, who tries to > address that issues. I am quite sure that is not the spirit > what the FreeBSD project is about. You're not the first person, and you're not the first person who tries to grab code from one of the other BSDs as a solution without understanding some of the nuances of the floating point environment of FreeBSD. Did you actually test the functions? Here's a test for your ccoshl, and its wrong results ccoshl(-0,-inf) =3D (nan,nan) expecting (nan,+0) ccoshl(-0,+inf) =3D (nan,nan) expecting (nan,-0) ccoshl(+0,+nan) =3D (nan,nan) expecting (nan,+0) ccoshl(+0,-nan) =3D (nan,nan) expecting (nan,-0) ccoshl(-0,-nan) =3D (nan,nan) expecting (nan,+0) ccoshl(-0,+nan) =3D (nan,nan) expecting (nan,-0) ccoshl(+inf,+0) =3D (nan,nan) expecting (+inf,+0) ccoshl(+inf,-0) =3D (nan,nan) expecting (+inf,-0) ccoshl(-inf,-0) =3D (nan,nan) expecting (+inf,+0) ccoshl(-inf,+0) =3D (nan,nan) expecting (+inf,-0) ccoshl(+nan,+0) =3D (nan,nan) expecting (nan,+0) ccoshl(+nan,-0) =3D (nan,nan) expecting (nan,-0) ccoshl(-nan,-0) =3D (nan,nan) expecting (nan,+0) ccoshl(-nan,+0) =3D (nan,nan) expecting (nan,-0) ccoshl(+inf,+nan) =3D (nan,nan) expecting (+inf,nan) ccoshl(+inf,-nan) =3D (nan,nan) expecting (+inf,nan) ccoshl(-inf,-nan) =3D (nan,nan) expecting (+inf,nan) ccoshl(-inf,+nan) =3D (nan,nan) expecting (+inf,nan) ccoshl(+inf,+inf) =3D (nan,nan) expecting (+inf,nan) ccoshl(+inf,-inf) =3D (nan,nan) expecting (+inf,nan) ccoshl(-inf,-inf) =3D (nan,nan) expecting (+inf,nan) ccoshl(-inf,+inf) =3D (nan,nan) expecting (+inf,nan) ccoshl(+inf,1) =3D (nan,+inf) expecting (+inf*cos(y),+inf*sin(y)) ccoshl(-inf,1) =3D (nan,-inf) expecting (+inf*cos(y),-inf*sin(y)) --=20 You are receiving this mail because: You are the assignee for the bug.=