From owner-freebsd-arch@FreeBSD.ORG Mon Aug 17 11:06:50 2009 Return-Path: Delivered-To: freebsd-arch@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5AB221065691 for ; Mon, 17 Aug 2009 11:06:50 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 2F58C8FC67 for ; Mon, 17 Aug 2009 11:06:50 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n7HB6oXD075708 for ; Mon, 17 Aug 2009 11:06:50 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n7HB6nv6075704 for freebsd-arch@FreeBSD.org; Mon, 17 Aug 2009 11:06:49 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 17 Aug 2009 11:06:49 GMT Message-Id: <200908171106.n7HB6nv6075704@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-arch@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-arch@FreeBSD.org X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Aug 2009 11:06:50 -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 kern/120749 arch [request] Suggest upping the default kern.ps_arg_cache 1 problem total. From owner-freebsd-arch@FreeBSD.ORG Mon Aug 17 20:28:30 2009 Return-Path: Delivered-To: freebsd-arch@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0E2B1106568E for ; Mon, 17 Aug 2009 20:28:30 +0000 (UTC) (envelope-from das@FreeBSD.ORG) Received: from zim.MIT.EDU (ZIM.MIT.EDU [18.95.3.101]) by mx1.freebsd.org (Postfix) with ESMTP id C4B2E8FC61 for ; Mon, 17 Aug 2009 20:28:29 +0000 (UTC) Received: from zim.MIT.EDU (localhost [127.0.0.1]) by zim.MIT.EDU (8.14.3/8.14.2) with ESMTP id n7HKDKBB022463; Mon, 17 Aug 2009 16:13:20 -0400 (EDT) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by zim.MIT.EDU (8.14.3/8.14.2/Submit) id n7HKDJg6022462; Mon, 17 Aug 2009 16:13:19 -0400 (EDT) (envelope-from das@FreeBSD.ORG) Date: Mon, 17 Aug 2009 16:13:19 -0400 From: David Schultz To: Peter Jeremy Message-ID: <20090817201319.GA22437@zim.MIT.EDU> Mail-Followup-To: Peter Jeremy , freebsd-arch@FreeBSD.ORG References: <20090815015947.GA4682@server.vk2pj.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090815015947.GA4682@server.vk2pj.dyndns.org> Cc: freebsd-arch@FreeBSD.ORG Subject: Re: C99 Complex Math Functions X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Aug 2009 20:28:30 -0000 On Sat, Aug 15, 2009, Peter Jeremy wrote: > Hi David, > > I've recently had a requirement for the C99 complex math functions. > I know you have been doing some work on implementing functions in > complex.h and wonder what (if any) plans you have for implementing > the rest of the C99 functions. Which ones do you need? They are on my todo list, but they're not a priority, and I'm swamped right now, so don't hold your breath! Steve Kargle and Bruce Evans also have some interest in this. Many of the functions can be fudged with some simple formulas that you can look up. The simple formulas work great in most cases, but often fail near asymptotes and for special cases (infinity, NaN, underflow, etc.) From owner-freebsd-arch@FreeBSD.ORG Tue Aug 18 10:54:16 2009 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0206D106568F for ; Tue, 18 Aug 2009 10:54:16 +0000 (UTC) (envelope-from avg@freebsd.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 4C0208FC3D for ; Tue, 18 Aug 2009 10:54:14 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id NAA22324 for ; Tue, 18 Aug 2009 13:43:58 +0300 (EEST) (envelope-from avg@freebsd.org) Message-ID: <4A8A85ED.4090404@freebsd.org> Date: Tue, 18 Aug 2009 13:43:57 +0300 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.22 (X11/20090724) MIME-Version: 1.0 To: freebsd-arch@freebsd.org X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: on architecture of dumping X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Aug 2009 10:54:16 -0000 I think that the following is quite obvious, but it needs to be said anyway. I think that we should switch from current approach of hierarchically configuring dumper to having a hierarchy of dumpers. Right now only disks provide dumping routines and the layers above disks can only set offset and size of dump area. This results in the following limitations: 1. dump can be made only to contiguous area of a disk 2. dump can be made only to a single disk Having a hierarchy of dumpers is a need that arises from having a GEOM hierarchy. I think that each compliant GEOM provider could expose a dump method for writing out a blob of data to certain offset within the provider. Such a dump routine would dispatch data to dump methods of underlying provider(s) according to provider's logic. Disk providers would have almost the same dump routines as they do now (they are actually in disk drivers). This would allow, for example, mirrored dumping to gmirror devices. And this would pave a way for porting dumping to a zvol from OpenSolaris. Please comment. Thank you. -- Andriy Gapon From owner-freebsd-arch@FreeBSD.ORG Tue Aug 18 11:16:47 2009 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9AA581065690; Tue, 18 Aug 2009 11:16:47 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.freebsd.org (Postfix) with ESMTP id 6067A8FC57; Tue, 18 Aug 2009 11:16:47 +0000 (UTC) Received: from critter.freebsd.dk (l106.freebsd.dk [192.168.60.106]) by phk.freebsd.dk (Postfix) with ESMTP id 877C669959; Tue, 18 Aug 2009 10:59:41 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.14.3/8.14.3) with ESMTP id n7IAxkb7090049; Tue, 18 Aug 2009 10:59:46 GMT (envelope-from phk@critter.freebsd.dk) To: Andriy Gapon From: "Poul-Henning Kamp" In-Reply-To: Your message of "Tue, 18 Aug 2009 13:43:57 +0300." <4A8A85ED.4090404@freebsd.org> Date: Tue, 18 Aug 2009 10:59:46 +0000 Message-ID: <90048.1250593186@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: freebsd-arch@freebsd.org Subject: Re: on architecture of dumping X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Aug 2009 11:16:47 -0000 In message <4A8A85ED.4090404@freebsd.org>, Andriy Gapon writes: > >I think that the following is quite obvious, but it needs to be said anyway. > >I think that we should switch from current approach of hierarchically >configuring dumper to having a hierarchy of dumpers. I think this is utterly wolly thinking. The amount of complexity this will impose is staggering, and the potential benefit is no where close to justifying it. Add a cheap ATA disk for your dumps or make an USB stick work for dumps and use that. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. From owner-freebsd-arch@FreeBSD.ORG Tue Aug 18 11:55:09 2009 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BCB28106568B for ; Tue, 18 Aug 2009 11:55:09 +0000 (UTC) (envelope-from avg@freebsd.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 1163E8FC55 for ; Tue, 18 Aug 2009 11:55:08 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id OAA23938; Tue, 18 Aug 2009 14:55:05 +0300 (EEST) (envelope-from avg@freebsd.org) Message-ID: <4A8A9699.1020808@freebsd.org> Date: Tue, 18 Aug 2009 14:55:05 +0300 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.22 (X11/20090724) MIME-Version: 1.0 To: Poul-Henning Kamp References: <90048.1250593186@critter.freebsd.dk> In-Reply-To: <90048.1250593186@critter.freebsd.dk> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-arch@freebsd.org Subject: Re: on architecture of dumping X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Aug 2009 11:55:09 -0000 on 18/08/2009 13:59 Poul-Henning Kamp said the following: > In message <4A8A85ED.4090404@freebsd.org>, Andriy Gapon writes: >> I think that the following is quite obvious, but it needs to be said anyway. >> >> I think that we should switch from current approach of hierarchically >> configuring dumper to having a hierarchy of dumpers. > > I think this is utterly wolly thinking. 'wolly'? Please improve my English. > The amount of complexity this will impose is staggering, and the potential > benefit is no where close to justifying it. I can't see the staggering complexity in the proposal, could you please expand? Example of what I had in mind (pseudo-code): static int gmirror_dump(this, void *data, off_t offset, size_t size) { LIST_FOREACH(pp, ...) { DUMP(pp, data, offset, size); } } > Add a cheap ATA disk for your dumps or make an USB stick work for dumps > and use that. Say, I do want mirrored dumps and/or I do want encrypted dumps - wouldn't it be logical to re-use GEOM capabilities here. -- Andriy Gapon From owner-freebsd-arch@FreeBSD.ORG Tue Aug 18 11:57:20 2009 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2FFC2106568C; Tue, 18 Aug 2009 11:57:20 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.freebsd.org (Postfix) with ESMTP id EABF78FC5B; Tue, 18 Aug 2009 11:57:19 +0000 (UTC) Received: from critter.freebsd.dk (l106.freebsd.dk [192.168.60.106]) by phk.freebsd.dk (Postfix) with ESMTP id D9A0E69959; Tue, 18 Aug 2009 11:57:18 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.14.3/8.14.3) with ESMTP id n7IBvNWb028519; Tue, 18 Aug 2009 11:57:23 GMT (envelope-from phk@critter.freebsd.dk) To: Andriy Gapon From: "Poul-Henning Kamp" In-Reply-To: Your message of "Tue, 18 Aug 2009 14:55:05 +0300." <4A8A9699.1020808@freebsd.org> Date: Tue, 18 Aug 2009 11:57:23 +0000 Message-ID: <28518.1250596643@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: freebsd-arch@freebsd.org Subject: Re: on architecture of dumping X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Aug 2009 11:57:20 -0000 In message <4A8A9699.1020808@freebsd.org>, Andriy Gapon writes: >>> I think that we should switch from current approach of hierarchically >>> configuring dumper to having a hierarchy of dumpers. >> >> I think this is utterly wolly thinking. > >'wolly'? Please improve my English. Wolly as in "unclear". >> The amount of complexity this will impose is staggering, and the potential >> benefit is no where close to justifying it. > >I can't see the staggering complexity in the proposal, could you please expand? >Example of what I had in mind (pseudo-code): That may be the difference between you and me, I do see the complexity. I suggest you try to implement it, it is probably just as fast as me trying to convince you this is not simple. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. From owner-freebsd-arch@FreeBSD.ORG Tue Aug 18 15:37:13 2009 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 126B91065672; Tue, 18 Aug 2009 15:37:13 +0000 (UTC) (envelope-from gary.jennejohn@freenet.de) Received: from mout5.freenet.de (mout5.freenet.de [IPv6:2001:748:100:40::2:7]) by mx1.freebsd.org (Postfix) with ESMTP id A1A8E8FC15; Tue, 18 Aug 2009 15:37:12 +0000 (UTC) Received: from [195.4.92.10] (helo=0.mx.freenet.de) by mout5.freenet.de with esmtpa (ID gary.jennejohn@freenet.de) (port 25) (Exim 4.69 #92) id 1MdQkJ-0007WI-3u; Tue, 18 Aug 2009 17:37:11 +0200 Received: from te65c.t.pppool.de ([89.55.230.92]:37559 helo=ernst.jennejohn.org) by 0.mx.freenet.de with esmtpa (ID gary.jennejohn@freenet.de) (port 25) (Exim 4.69 #94) id 1MdQkI-0004Fq-RN; Tue, 18 Aug 2009 17:37:11 +0200 Date: Tue, 18 Aug 2009 17:37:10 +0200 From: Gary Jennejohn To: "Poul-Henning Kamp" Message-ID: <20090818173710.1082a7af@ernst.jennejohn.org> In-Reply-To: <28518.1250596643@critter.freebsd.dk> References: <4A8A9699.1020808@freebsd.org> <28518.1250596643@critter.freebsd.dk> X-Mailer: Claws Mail 3.7.2 (GTK+ 2.16.2; amd64-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-purgate-ID: 149285::1250609831-00006070-AA801CDF/0-0/0-0 Cc: Andriy Gapon , freebsd-arch@freebsd.org Subject: Re: on architecture of dumping X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gary.jennejohn@freenet.de List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Aug 2009 15:37:13 -0000 On Tue, 18 Aug 2009 11:57:23 +0000 "Poul-Henning Kamp" wrote: > In message <4A8A9699.1020808@freebsd.org>, Andriy Gapon writes: > > >>> I think that we should switch from current approach of hierarchically > >>> configuring dumper to having a hierarchy of dumpers. > >> > >> I think this is utterly wolly thinking. > > > >'wolly'? Please improve my English. > > Wolly as in "unclear". > phk means wooly. Here the applicable definition found with dict: wooly 2: confused and vague; used especially of thinking; "muddleheaded ideas"; "your addled little brain"; "woolly thinking"; "woolly-headed ideas" [syn: {addled}, {befuddled}, {muddled}, {muzzy}, {woolly}, {woolly-headed}, {wooly-minded}] --- Gary Jennejohn From owner-freebsd-arch@FreeBSD.ORG Wed Aug 19 11:15:11 2009 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 37C93106568B for ; Wed, 19 Aug 2009 11:15:11 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id F03768FC68 for ; Wed, 19 Aug 2009 11:15:10 +0000 (UTC) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id 231466D418; Wed, 19 Aug 2009 11:15:10 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id 015F88448F; Wed, 19 Aug 2009 13:15:09 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: gary.jennejohn@freenet.de References: <4A8A9699.1020808@freebsd.org> <28518.1250596643@critter.freebsd.dk> <20090818173710.1082a7af@ernst.jennejohn.org> Date: Wed, 19 Aug 2009 13:15:09 +0200 In-Reply-To: <20090818173710.1082a7af@ernst.jennejohn.org> (Gary Jennejohn's message of "Tue, 18 Aug 2009 17:37:10 +0200") Message-ID: <863a7ot5qa.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: Poul-Henning Kamp , Andriy Gapon , freebsd-arch@freebsd.org Subject: Re: on architecture of dumping X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Aug 2009 11:15:11 -0000 Gary Jennejohn writes: > "Poul-Henning Kamp" writes: > > Wolly as in "unclear". =3D=3D=3D=3D=3D > phk means wooly. Here the applicable definition found with dict: =3D=3D=3D=3D=3D > wooly > 2: confused and vague; used especially of thinking; > "muddleheaded ideas"; "your addled little brain"; "woolly =3D=3D=3D=3D=3D= =3D :) DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-freebsd-arch@FreeBSD.ORG Wed Aug 19 13:01:34 2009 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 927EA106568B for ; Wed, 19 Aug 2009 13:01:34 +0000 (UTC) (envelope-from gary.jennejohn@freenet.de) Received: from mout1.freenet.de (mout1.freenet.de [IPv6:2001:748:100:40::2:3]) by mx1.freebsd.org (Postfix) with ESMTP id 31F028FC59 for ; Wed, 19 Aug 2009 13:01:34 +0000 (UTC) Received: from [195.4.92.25] (helo=15.mx.freenet.de) by mout1.freenet.de with esmtpa (ID gary.jennejohn@freenet.de) (port 25) (Exim 4.69 #92) id 1MdknE-000283-VN; Wed, 19 Aug 2009 15:01:32 +0200 Received: from t9bd4.t.pppool.de ([89.55.155.212]:14582 helo=ernst.jennejohn.org) by 15.mx.freenet.de with esmtpa (ID gary.jennejohn@freenet.de) (port 25) (Exim 4.69 #94) id 1MdknE-0000ng-Nl; Wed, 19 Aug 2009 15:01:32 +0200 Date: Wed, 19 Aug 2009 15:01:31 +0200 From: Gary Jennejohn To: Dag-Erling =?ISO-8859-1?Q?Sm=F8rgrav?= Message-ID: <20090819150131.5d6a77b8@ernst.jennejohn.org> In-Reply-To: <863a7ot5qa.fsf@ds4.des.no> References: <4A8A9699.1020808@freebsd.org> <28518.1250596643@critter.freebsd.dk> <20090818173710.1082a7af@ernst.jennejohn.org> <863a7ot5qa.fsf@ds4.des.no> X-Mailer: Claws Mail 3.7.2 (GTK+ 2.16.2; amd64-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-purgate-ID: 149285::1250686892-00000B35-7CE14ED7/0-0/0-0 Cc: freebsd-arch@freebsd.org Subject: Re: on architecture of dumping X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gary.jennejohn@freenet.de List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Aug 2009 13:01:34 -0000 On Wed, 19 Aug 2009 13:15:09 +0200 Dag-Erling Sm__rgrav wrote: > Gary Jennejohn writes: > > "Poul-Henning Kamp" writes: > > > Wolly as in "unclear". > ===== > > phk means wooly. Here the applicable definition found with dict: > ===== > > wooly > > 2: confused and vague; used especially of thinking; > > "muddleheaded ideas"; "your addled little brain"; "woolly > ====== > > :) > That's English for you. If it can be confusing, then it is :) --- Gary Jennejohn From owner-freebsd-arch@FreeBSD.ORG Thu Aug 20 23:04:01 2009 Return-Path: Delivered-To: freebsd-arch@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6EA2F106568E for ; Thu, 20 Aug 2009 23:04:01 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.freebsd.org (Postfix) with ESMTP id 31FE18FC16 for ; Thu, 20 Aug 2009 23:04:01 +0000 (UTC) Received: from troutmask.apl.washington.edu (localhost.apl.washington.edu [127.0.0.1]) by troutmask.apl.washington.edu (8.14.3/8.14.3) with ESMTP id n7KN40ZJ061188; Thu, 20 Aug 2009 16:04:00 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.14.3/8.14.3/Submit) id n7KN40jb061187; Thu, 20 Aug 2009 16:04:00 -0700 (PDT) (envelope-from sgk) Date: Thu, 20 Aug 2009 16:04:00 -0700 From: Steve Kargl To: Peter Jeremy , freebsd-arch@FreeBSD.ORG Message-ID: <20090820230400.GA61066@troutmask.apl.washington.edu> References: <20090815015947.GA4682@server.vk2pj.dyndns.org> <20090817201319.GA22437@zim.MIT.EDU> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090817201319.GA22437@zim.MIT.EDU> User-Agent: Mutt/1.4.2.3i Cc: Subject: Re: C99 Complex Math Functions X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Aug 2009 23:04:01 -0000 On Mon, Aug 17, 2009 at 04:13:19PM -0400, David Schultz wrote: > On Sat, Aug 15, 2009, Peter Jeremy wrote: > > Hi David, > > > > I've recently had a requirement for the C99 complex math functions. > > I know you have been doing some work on implementing functions in > > complex.h and wonder what (if any) plans you have for implementing > > the rest of the C99 functions. > > Which ones do you need? > > They are on my todo list, but they're not a priority, and I'm > swamped right now, so don't hold your breath! Steve Kargle and > Bruce Evans also have some interest in this. > > Many of the functions can be fudged with some simple formulas that > you can look up. The simple formulas work great in most cases, > but often fail near asymptotes and for special cases (infinity, > NaN, underflow, etc.) In a private response to Peter, I directed him to NetBSD. NetBSD contains some/most(?)/all(?) of the simple formula implementations. I sent Peter the guts of ccosh as implemented by NetBSD (the simple formula) and the current version of ccosh that Bruce and I had written. The netbsd version is 15 lines (excluding the license). The bde+me version is 91 lines (excluding license and initial comment). To be fair, a large portion of those 91 lines are comments of the form /* * cosh(+-Inf + I NaN) = +Inf + I d(NaN). * * cosh(+-Inf +- I Inf) = +Inf + I dNaN. * The sign of Inf in the result is unspecified. Choice = always +. * Raise the invalid floating-point exception. * * cosh(+-Inf + I y) = +Inf cos(y) +- I Inf sin(y) */ To be more fair, most of the comments with the above form are due to Bruce as well as the details of the implementation. PS: yes, I'll get around to completing the commit bit stuff one of these days. But, for now, I need to return to a report that is 6 weeks late and 2 proposals. -- Steve From owner-freebsd-arch@FreeBSD.ORG Fri Aug 21 09:38:52 2009 Return-Path: Delivered-To: freebsd-arch@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EB9591065691 for ; Fri, 21 Aug 2009 09:38:52 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail10.syd.optusnet.com.au (mail10.syd.optusnet.com.au [211.29.132.191]) by mx1.freebsd.org (Postfix) with ESMTP id 7AD008FC43 for ; Fri, 21 Aug 2009 09:38:52 +0000 (UTC) Received: from server.vk2pj.dyndns.org (c122-106-255-167.belrs3.nsw.optusnet.com.au [122.106.255.167]) by mail10.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id n7L9cndk018353 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 21 Aug 2009 19:38:50 +1000 X-Bogosity: Ham, spamicity=0.000000 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.3/8.14.3) with ESMTP id n7L9cn1V034385 for ; Fri, 21 Aug 2009 19:38:49 +1000 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.3/8.14.3/Submit) id n7L9cns8034384 for freebsd-arch@FreeBSD.ORG; Fri, 21 Aug 2009 19:38:49 +1000 (EST) (envelope-from peter) Date: Fri, 21 Aug 2009 19:38:49 +1000 From: Peter Jeremy To: freebsd-arch@FreeBSD.ORG Message-ID: <20090821093849.GA33774@server.vk2pj.dyndns.org> References: <20090815015947.GA4682@server.vk2pj.dyndns.org> <20090817201319.GA22437@zim.MIT.EDU> <20090820230400.GA61066@troutmask.apl.washington.edu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="XsQoSWH+UP9D9v3l" Content-Disposition: inline In-Reply-To: <20090820230400.GA61066@troutmask.apl.washington.edu> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.20 (2009-06-14) Cc: Subject: Re: C99 Complex Math Functions X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Aug 2009 09:38:53 -0000 --XsQoSWH+UP9D9v3l Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2009-Aug-20 16:04:00 -0700, Steve Kargl wrote: >On Mon, Aug 17, 2009 at 04:13:19PM -0400, David Schultz wrote: >> On Sat, Aug 15, 2009, Peter Jeremy wrote: >> > I've recently had a requirement for the C99 complex math functions. >> > I know you have been doing some work on implementing functions in >> > complex.h and wonder what (if any) plans you have for implementing >> > the rest of the C99 functions. >>=20 >> Which ones do you need? cacos, cacosh, casin, casinh, catan, catanh, ccos, ccosh, cexp, clog, cpow, csin, csinh, ctan, ctanh :-) >> Many of the functions can be fudged with some simple formulas that >> you can look up. I have all the simple formulae. >> The simple formulas work great in most cases, >> but often fail near asymptotes and for special cases (infinity, >> NaN, underflow, etc.) And simplistic implementations can lose significant amounts of precision as well. >In a private response to Peter, I directed him to NetBSD. Thanks for that. I've also discovered that math/gsl also implements the required functions (though with non-standard names and argument types). Since I already have gsl available, I might use it instead. (As a warning for anyone else interested in math/gsl - it's complex functions are implemented very simplisticly - no better than NetBSD). --=20 Peter Jeremy --XsQoSWH+UP9D9v3l Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (FreeBSD) iEYEARECAAYFAkqOaykACgkQ/opHv/APuIf7xQCcDiVq+12gFn3b76a1xiJED+Ok ppcAoKJHuZPToapOz7lETx6BcN3aj93R =U+rf -----END PGP SIGNATURE----- --XsQoSWH+UP9D9v3l-- From owner-freebsd-arch@FreeBSD.ORG Fri Aug 21 09:45:18 2009 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6E2AA106568B for ; Fri, 21 Aug 2009 09:45:18 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from mail04.syd.optusnet.com.au (mail04.syd.optusnet.com.au [211.29.132.185]) by mx1.freebsd.org (Postfix) with ESMTP id 08C2C8FC63 for ; Fri, 21 Aug 2009 09:45:17 +0000 (UTC) Received: from c122-106-152-1.carlnfd1.nsw.optusnet.com.au (c122-106-152-1.carlnfd1.nsw.optusnet.com.au [122.106.152.1]) by mail04.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id n7L9jDfQ032411 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 21 Aug 2009 19:45:14 +1000 Date: Fri, 21 Aug 2009 19:45:12 +1000 (EST) From: Bruce Evans X-X-Sender: bde@delplex.bde.org To: Steve Kargl In-Reply-To: <20090820230400.GA61066@troutmask.apl.washington.edu> Message-ID: <20090821190006.E36897@delplex.bde.org> References: <20090815015947.GA4682@server.vk2pj.dyndns.org> <20090817201319.GA22437@zim.MIT.EDU> <20090820230400.GA61066@troutmask.apl.washington.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-arch@freebsd.org Subject: Re: C99 Complex Math Functions X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Aug 2009 09:45:18 -0000 On Thu, 20 Aug 2009, Steve Kargl wrote: > On Mon, Aug 17, 2009 at 04:13:19PM -0400, David Schultz wrote: > > In a private response to Peter, I directed him to NetBSD. NetBSD > contains some/most(?)/all(?) of the simple formula implementations. > I sent Peter the guts of ccosh as implemented by NetBSD (the simple > formula) and the current version of ccosh that Bruce and I had written. > The netbsd version is 15 lines (excluding the license). The bde+me > version is 91 lines (excluding license and initial comment). To be > fair, a large portion of those 91 lines are comments of the form > > /* > * cosh(+-Inf + I NaN) = +Inf + I d(NaN). > * > * cosh(+-Inf +- I Inf) = +Inf + I dNaN. > * The sign of Inf in the result is unspecified. Choice = always +. > * Raise the invalid floating-point exception. > * > * cosh(+-Inf + I y) = +Inf cos(y) +- I Inf sin(y) > */ > ... We also have a ~15 line version for ccosh[f]() only (after removing comments that are less detailed than the above). Howver, the error handling has only been checked for the float version, and the overflow handling is mostly nonexistent for all versions. Here is a simple version: % /* % * Hyperbolic cosine of a double complex argument. % * % * Most exceptional values are automatically correctly handled by the % * standard formula. See n1124.pdf for details. ^^^^^^^^^ This (draft) C99+ standard gives details like the above, except of course our choice of sign and our details of NaN handling). % */ % % #include % #include % % #include "../math_private.h" % % double complex % ccosh1(double complex z) % { % double x, y; % % x = creal(z); % y = cimag(z); % % /* % * This is subtler than it looks. We handle the cases x == 0 and % * y == 0 directly not for efficiency, but to avoid multiplications % * that don't work like we need. In these cases, the result must % * be almost pure real or a pure imaginary, except it has type % * float complex and its impure part may be -0. Multiplication of % * +-0 by an infinity or a NaN would give a NaN for the impure part, % * and would raise an unwanted exception. % * % * We depend on cos(y) and sin(y) never being precisely +-0 except % * when y is +-0 to prevent getting NaNs from other cases of % * +-Inf*+-0. This is true in infinite precision (since pi is % * irrational), and checking shows that it is also true after % * rounding to float precision. This is impossible to check in a reasonable time for double and higher precisions, but our implementation of accuracy for trig functions already depends on more (on certain bounding of the results away from 0). % */ % if (x == 0 && !isfinite(y)) % return (cpack(y - y, copysign(0, x * (y - y)))); % if (y == 0) % return (cpack(cosh(x), isnan(x) ? copysign(0, (x + x) * y) : % copysign(0, x) * y)); % if (isinf(x) && !isfinite(y)) % return (cpack(x * x, x * (y - y))); % return (cpack(cosh(x) * cos(y), sinh(x) * sin(y))); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Standard formulas like this almost work for this and for all elementary transcendental functions. There are obvious accuracy and overflow problems in such formulas. Here cosh(x) may overflow although all of the infinitely precise results are less than DBL_MAX. All these problems can be reduced by evaluating expressions in extra precision, but that would be slow, and no extra precision is availble for the long double versions. % } Bruce