From owner-freebsd-numerics@FreeBSD.ORG Mon Dec 24 11:06:47 2012 Return-Path: Delivered-To: freebsd-numerics@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 47707677 for ; Mon, 24 Dec 2012 11:06:47 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 2BFA68FC18 for ; Mon, 24 Dec 2012 11:06:47 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qBOB6lGL066118 for ; Mon, 24 Dec 2012 11:06:47 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qBOB6kSa066116 for freebsd-numerics@FreeBSD.org; Mon, 24 Dec 2012 11:06:46 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 24 Dec 2012 11:06:46 GMT Message-Id: <201212241106.qBOB6kSa066116@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-numerics@FreeBSD.org Subject: Current problem reports assigned to freebsd-numerics@FreeBSD.org X-BeenThere: freebsd-numerics@freebsd.org X-Mailman-Version: 2.1.14 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: Mon, 24 Dec 2012 11:06:47 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o bin/170206 numerics [msun] [patch] complex arcsinh, log, etc. 1 problem total. From owner-freebsd-numerics@FreeBSD.ORG Sat Dec 29 02:24:55 2012 Return-Path: Delivered-To: freebsd-numerics@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A724E453 for ; Sat, 29 Dec 2012 02:24:55 +0000 (UTC) (envelope-from stephen@missouri.edu) Received: from wilberforce.math.missouri.edu (wilberforce.math.missouri.edu [128.206.184.213]) by mx1.freebsd.org (Postfix) with ESMTP id 50D5A8FC0A for ; Sat, 29 Dec 2012 02:24:55 +0000 (UTC) Received: from [127.0.0.1] (wilberforce.math.missouri.edu [128.206.184.213]) by wilberforce.math.missouri.edu (8.14.5/8.14.5) with ESMTP id qBT2OqKN063165; Fri, 28 Dec 2012 20:24:53 -0600 (CST) (envelope-from stephen@missouri.edu) Message-ID: <50DE5474.1070900@missouri.edu> Date: Fri, 28 Dec 2012 20:24:52 -0600 From: Stephen Montgomery-Smith User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Bruce Evans Subject: Re: complex arc-trig etc References: <50CE9D0C.8080901@missouri.edu> <20121217191324.T1277@besplex.bde.org> In-Reply-To: <20121217191324.T1277@besplex.bde.org> X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-numerics@freebsd.org X-BeenThere: freebsd-numerics@freebsd.org X-Mailman-Version: 2.1.14 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: Sat, 29 Dec 2012 02:24:55 -0000 On 12/17/2012 02:38 AM, Bruce Evans wrote: > On Sun, 16 Dec 2012, Stephen Montgomery-Smith wrote: > >> Hey guys, my complex arc-trig functions at >> http://people.freebsd.org/~stephen/ have been sitting there a long time. >> Anyone want to commit them? > > I was sort of waiting for the next rounds of changes: > > 1. update the template to give similar code for float and long double > 2. make it work for i386 using ENTERI() What is ENTERI()? From owner-freebsd-numerics@FreeBSD.ORG Sat Dec 29 03:24:15 2012 Return-Path: Delivered-To: freebsd-numerics@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BA276910 for ; Sat, 29 Dec 2012 03:24:15 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.21]) by mx1.freebsd.org (Postfix) with ESMTP id 8AA3B8FC08 for ; Sat, 29 Dec 2012 03:24:15 +0000 (UTC) Received: from troutmask.apl.washington.edu (localhost.apl.washington.edu [127.0.0.1]) by troutmask.apl.washington.edu (8.14.5/8.14.5) with ESMTP id qBT3J74Z000497; Fri, 28 Dec 2012 19:19:07 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.14.5/8.14.5/Submit) id qBT3J72Z000496; Fri, 28 Dec 2012 19:19:07 -0800 (PST) (envelope-from sgk) Date: Fri, 28 Dec 2012 19:19:07 -0800 From: Steve Kargl To: Stephen Montgomery-Smith Subject: Re: complex arc-trig etc Message-ID: <20121229031907.GA428@troutmask.apl.washington.edu> References: <50CE9D0C.8080901@missouri.edu> <20121217191324.T1277@besplex.bde.org> <50DE5474.1070900@missouri.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <50DE5474.1070900@missouri.edu> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-numerics@freebsd.org, Bruce Evans X-BeenThere: freebsd-numerics@freebsd.org X-Mailman-Version: 2.1.14 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: Sat, 29 Dec 2012 03:24:15 -0000 On Fri, Dec 28, 2012 at 08:24:52PM -0600, Stephen Montgomery-Smith wrote: > On 12/17/2012 02:38 AM, Bruce Evans wrote: > > On Sun, 16 Dec 2012, Stephen Montgomery-Smith wrote: > > > >> Hey guys, my complex arc-trig functions at > >> http://people.freebsd.org/~stephen/ have been sitting there a long time. > >> Anyone want to commit them? > > > > I was sort of waiting for the next rounds of changes: > > > > 1. update the template to give similar code for float and long double > > 2. make it work for i386 using ENTERI() > > What is ENTERI()? > For 'long double' on i386, the precision is set to 53 bits in the kernel (see the file sys/x86/include/fpu.h). ENTERI() toggles the fpu control word to use 64 bits for long double and you use RETURNI() instead of 'return(val)' to return from the function. You can see these being used in msun/src/ld80/ s_expl.c. Also, note the ENTERI() and RETURNI() are defined in msun/src/math_private.h. Bruce can probably give a better explanation and the history. -- Steve From owner-freebsd-numerics@FreeBSD.ORG Sat Dec 29 03:37:28 2012 Return-Path: Delivered-To: freebsd-numerics@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D7E86B77 for ; Sat, 29 Dec 2012 03:37:28 +0000 (UTC) (envelope-from stephen@missouri.edu) Received: from wilberforce.math.missouri.edu (wilberforce.math.missouri.edu [128.206.184.213]) by mx1.freebsd.org (Postfix) with ESMTP id 9882C8FC08 for ; Sat, 29 Dec 2012 03:37:28 +0000 (UTC) Received: from [127.0.0.1] (wilberforce.math.missouri.edu [128.206.184.213]) by wilberforce.math.missouri.edu (8.14.5/8.14.5) with ESMTP id qBT3bQ49067826; Fri, 28 Dec 2012 21:37:26 -0600 (CST) (envelope-from stephen@missouri.edu) Message-ID: <50DE6576.9040200@missouri.edu> Date: Fri, 28 Dec 2012 21:37:26 -0600 From: Stephen Montgomery-Smith User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Steve Kargl Subject: Re: complex arc-trig etc References: <50CE9D0C.8080901@missouri.edu> <20121217191324.T1277@besplex.bde.org> <50DE5474.1070900@missouri.edu> <20121229031907.GA428@troutmask.apl.washington.edu> In-Reply-To: <20121229031907.GA428@troutmask.apl.washington.edu> X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-numerics@freebsd.org, Bruce Evans X-BeenThere: freebsd-numerics@freebsd.org X-Mailman-Version: 2.1.14 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: Sat, 29 Dec 2012 03:37:28 -0000 On 12/28/2012 09:19 PM, Steve Kargl wrote: > On Fri, Dec 28, 2012 at 08:24:52PM -0600, Stephen Montgomery-Smith wrote: >> On 12/17/2012 02:38 AM, Bruce Evans wrote: >>> On Sun, 16 Dec 2012, Stephen Montgomery-Smith wrote: >>> >>>> Hey guys, my complex arc-trig functions at >>>> http://people.freebsd.org/~stephen/ have been sitting there a long time. >>>> Anyone want to commit them? >>> >>> I was sort of waiting for the next rounds of changes: >>> >>> 1. update the template to give similar code for float and long double >>> 2. make it work for i386 using ENTERI() >> >> What is ENTERI()? >> > > For 'long double' on i386, the precision is > set to 53 bits in the kernel (see the file > sys/x86/include/fpu.h). ENTERI() toggles > the fpu control word to use 64 bits for > long double and you use RETURNI() instead > of 'return(val)' to return from the function. > You can see these being used in msun/src/ld80/ > s_expl.c. Also, note the ENTERI() and RETURNI() > are defined in msun/src/math_private.h. > > Bruce can probably give a better explanation > and the history. > Now I see why I couldn't find it. It is only in CURRENT. (I had grepped the whole of source, but I am still in the dark ages of FreeBSD-8.) From owner-freebsd-numerics@FreeBSD.ORG Sat Dec 29 05:28:02 2012 Return-Path: Delivered-To: freebsd-numerics@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EAC48E5D for ; Sat, 29 Dec 2012 05:28:02 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.21]) by mx1.freebsd.org (Postfix) with ESMTP id BCC3E8FC08 for ; Sat, 29 Dec 2012 05:28:02 +0000 (UTC) Received: from troutmask.apl.washington.edu (localhost.apl.washington.edu [127.0.0.1]) by troutmask.apl.washington.edu (8.14.5/8.14.5) with ESMTP id qBT5S2nc000851; Fri, 28 Dec 2012 21:28:02 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.14.5/8.14.5/Submit) id qBT5S1ot000850; Fri, 28 Dec 2012 21:28:01 -0800 (PST) (envelope-from sgk) Date: Fri, 28 Dec 2012 21:28:01 -0800 From: Steve Kargl To: Stephen Montgomery-Smith Subject: Re: complex arc-trig etc Message-ID: <20121229052801.GA841@troutmask.apl.washington.edu> References: <50CE9D0C.8080901@missouri.edu> <20121217191324.T1277@besplex.bde.org> <50DE5474.1070900@missouri.edu> <20121229031907.GA428@troutmask.apl.washington.edu> <50DE6576.9040200@missouri.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <50DE6576.9040200@missouri.edu> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-numerics@freebsd.org, Bruce Evans X-BeenThere: freebsd-numerics@freebsd.org X-Mailman-Version: 2.1.14 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: Sat, 29 Dec 2012 05:28:03 -0000 On Fri, Dec 28, 2012 at 09:37:26PM -0600, Stephen Montgomery-Smith wrote: > On 12/28/2012 09:19 PM, Steve Kargl wrote: > > On Fri, Dec 28, 2012 at 08:24:52PM -0600, Stephen Montgomery-Smith wrote: > >> On 12/17/2012 02:38 AM, Bruce Evans wrote: > >>> On Sun, 16 Dec 2012, Stephen Montgomery-Smith wrote: > >>> > >>>> Hey guys, my complex arc-trig functions at > >>>> http://people.freebsd.org/~stephen/ have been sitting there a long time. > >>>> Anyone want to commit them? > >>> > >>> I was sort of waiting for the next rounds of changes: > >>> > >>> 1. update the template to give similar code for float and long double > >>> 2. make it work for i386 using ENTERI() > >> > >> What is ENTERI()? > > > > For 'long double' on i386, the precision is > > set to 53 bits in the kernel (see the file > > sys/x86/include/fpu.h). ENTERI() toggles > > the fpu control word to use 64 bits for > > long double and you use RETURNI() instead > > of 'return(val)' to return from the function. > > You can see these being used in msun/src/ld80/ > > s_expl.c. Also, note the ENTERI() and RETURNI() > > are defined in msun/src/math_private.h. > > > > Bruce can probably give a better explanation > > and the history. > > > Now I see why I couldn't find it. It is only in CURRENT. (I had > grepped the whole of source, but I am still in the dark ages of FreeBSD-8.) Yes, it is a CURRENT only thing at the moment. I suppose that someone someday may do a merge from current, but it won't be me as I only run -current. -- Steve