From owner-freebsd-standards Mon May 13 11:14: 7 2002 Delivered-To: freebsd-standards@freebsd.org Received: from mail-green.research.att.com (mail-green.research.att.com [135.207.30.103]) by hub.freebsd.org (Postfix) with ESMTP id 135E337B400; Mon, 13 May 2002 11:14:00 -0700 (PDT) Received: from alliance.research.att.com (alliance.research.att.com [135.207.26.26]) by mail-green.research.att.com (Postfix) with ESMTP id 6D7B51E079; Mon, 13 May 2002 14:13:59 -0400 (EDT) Received: from windsor.research.att.com (windsor.research.att.com [135.207.26.46]) by alliance.research.att.com (8.8.7/8.8.7) with ESMTP id OAA05239; Mon, 13 May 2002 14:13:58 -0400 (EDT) From: Bill Fenner Received: (from fenner@localhost) by windsor.research.att.com (8.8.8+Sun/8.8.5) id LAA19960; Mon, 13 May 2002 11:13:58 -0700 (PDT) Message-Id: <200205131813.LAA19960@windsor.research.att.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII To: obrien@FreeBSD.ORG Subject: Re: signbit ISO C99 macro Cc: standards@FreeBSD.ORG Date: Mon, 13 May 2002 11:13:58 -0700 Versions: dmail (solaris) 2.4/makemail 2.9b Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG It's easy if it's easy to treat doubles as uint64_t's. Like, I think signbit() might be something like #define signbit(d) (*((uint64_t *)&(d)) & UINT64_C(0x8000000000000000)) or maybe #define signbit(d) (*((uint64_t *)&(d)) >> 63) However, that assumes that d is an IEEE double (and there is a possibly-incorrect assumption about byte order). I don't know how to implement a macro that will take any real-floating type. Bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message From owner-freebsd-standards Mon May 13 11:31:40 2002 Delivered-To: freebsd-standards@freebsd.org Received: from fafoe.dyndns.org (chello212186121237.14.vie.surfer.at [212.186.121.237]) by hub.freebsd.org (Postfix) with ESMTP id 49EB137B401; Mon, 13 May 2002 11:31:38 -0700 (PDT) Received: by stefan.fafoe (Postfix, from userid 1001) id 4AEB2EA2F; Mon, 13 May 2002 20:31:18 +0200 (CEST) Date: Mon, 13 May 2002 20:31:18 +0200 From: Stefan Farfeleder To: Bill Fenner Cc: obrien@FreeBSD.ORG, standards@FreeBSD.ORG Subject: Re: signbit ISO C99 macro Message-ID: <20020513183118.GB228@stefan.fafoe> References: <200205131813.LAA19960@windsor.research.att.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200205131813.LAA19960@windsor.research.att.com> User-Agent: Mutt/1.3.99i Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, May 13, 2002 at 11:13:58AM -0700, Bill Fenner wrote: > > It's easy if it's easy to treat doubles as uint64_t's. Like, I think > signbit() might be something like > > #define signbit(d) (*((uint64_t *)&(d)) & UINT64_C(0x8000000000000000)) > > or maybe > > #define signbit(d) (*((uint64_t *)&(d)) >> 63) > > However, that assumes that d is an IEEE double (and there is a > possibly-incorrect assumption about byte order). I don't know how to > implement a macro that will take any real-floating type. signbit isn't limited to lvalues, is it? You'll have to handle eg signbit(3.0) too. Stefan Farfeleder To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message From owner-freebsd-standards Mon May 13 22:17: 5 2002 Delivered-To: freebsd-standards@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id A8F0037B400; Mon, 13 May 2002 22:17:02 -0700 (PDT) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id PAA09733; Tue, 14 May 2002 15:08:00 +1000 Date: Tue, 14 May 2002 15:10:13 +1000 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: Stefan Farfeleder Cc: Bill Fenner , , Subject: Re: signbit ISO C99 macro In-Reply-To: <20020513183118.GB228@stefan.fafoe> Message-ID: <20020514145305.N2616-100000@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, 13 May 2002, Stefan Farfeleder wrote: > On Mon, May 13, 2002 at 11:13:58AM -0700, Bill Fenner wrote: > > > > It's easy if it's easy to treat doubles as uint64_t's. Like, I think > > signbit() might be something like > > > > #define signbit(d) (*((uint64_t *)&(d)) & UINT64_C(0x8000000000000000)) > > > > or maybe > > > > #define signbit(d) (*((uint64_t *)&(d)) >> 63) > > > > However, that assumes that d is an IEEE double (and there is a > > possibly-incorrect assumption about byte order). I don't know how to The current libm seems to make similar assumptions. It uses 2 32-bit "words" instead of uint64_t, so it has to fight endianess problems involving the inter-word order, but it doesn't do anything special for the bits in the words. Does IEEE specify the bit order and/or sign bit enough for this to actually be correct? > > implement a macro that will take any real-floating type. The macro could expand to a function call. That's how I would implement it until/unless it is actually used enough for its efficiency to matter. > signbit isn't limited to lvalues, is it? You'll have to handle eg > signbit(3.0) too. Right. This could be handled using a gcc macro that assigns the arg to an lvalue if necessary. Where did this thread start? ISTR a PR that implements all the new floating point classification functions. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message From owner-freebsd-standards Tue May 14 20:41:31 2002 Delivered-To: freebsd-standards@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id EF85537B404; Tue, 14 May 2002 20:41:29 -0700 (PDT) Received: (from tjr@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g4F3fTb35419; Tue, 14 May 2002 20:41:29 -0700 (PDT) (envelope-from tjr) Date: Tue, 14 May 2002 20:41:29 -0700 (PDT) From: Message-Id: <200205150341.g4F3fTb35419@freefall.freebsd.org> To: tim@robbins.dropbear.id.au, tjr@FreeBSD.org, freebsd-standards@FreeBSD.org Subject: Re: standards/36130: P1003.2 asa utility is missing Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Synopsis: P1003.2 asa utility is missing State-Changed-From-To: open->patched State-Changed-By: tjr State-Changed-When: Tue May 14 20:41:08 PDT 2002 State-Changed-Why: Committed. http://www.freebsd.org/cgi/query-pr.cgi?pr=36130 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message From owner-freebsd-standards Wed May 15 10:21:28 2002 Delivered-To: freebsd-standards@freebsd.org Received: from vexpert.dbai.tuwien.ac.at (vexpert.dbai.tuwien.ac.at [128.130.111.12]) by hub.freebsd.org (Postfix) with ESMTP id B481437B406; Wed, 15 May 2002 10:21:22 -0700 (PDT) Received: from naos (naos [128.130.111.28]) by vexpert.dbai.tuwien.ac.at (8.11.6/8.11.6) with ESMTP id g4FHLEW29078; Wed, 15 May 2002 19:21:14 +0200 (MET DST) Date: Wed, 15 May 2002 19:21:11 +0200 (CEST) From: Gerald Pfeifer To: David Schultz Cc: freebsd-gnats-submit@freebsd.org, Subject: Re: misc/23103: lacks many ISO C99 features (NAN, isfinite,...) In-Reply-To: <20020509030926.A36699@HAL9000.wox.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, 9 May 2002, David Schultz wrote: >> Features missing include macros FP_INFINITE, FP_NAN, FP_NORMAL, >> FP_SUBNORMAL, FP_ZERO, fpclassify(), and isfinite(). > I've made some patches to add most of these features for i386. The > remaining ones are mostly trivial extensions to the ones I've already > added. Cool. Unfortunately, I'm not enough of an expert to be really able to review your improvements in detail, but have only been bitten by missing features while maintaining our emulators/wine port. But apart from isfinite(), everything originally require by Wine seems to be there with your patch, thanks! (Hopefully someone with more in-depth knowledge than me will review your patch soon!) Gerald -- Gerald "Jerry" pfeifer@dbai.tuwien.ac.at http://www.dbai.tuwien.ac.at/~pfeifer/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message From owner-freebsd-standards Wed May 15 10:30:11 2002 Delivered-To: freebsd-standards@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 7969037B400 for ; Wed, 15 May 2002 10:30:03 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g4FHU3q71465; Wed, 15 May 2002 10:30:03 -0700 (PDT) (envelope-from gnats) Date: Wed, 15 May 2002 10:30:03 -0700 (PDT) Message-Id: <200205151730.g4FHU3q71465@freefall.freebsd.org> To: standards@FreeBSD.org Cc: From: Gerald Pfeifer Subject: Re: misc/23103: lacks many ISO C99 features (NAN, isfinite,...) Reply-To: Gerald Pfeifer Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG The following reply was made to PR misc/23103; it has been noted by GNATS. From: Gerald Pfeifer To: David Schultz Cc: freebsd-gnats-submit@freebsd.org, Subject: Re: misc/23103: lacks many ISO C99 features (NAN, isfinite,...) Date: Wed, 15 May 2002 19:21:11 +0200 (CEST) On Thu, 9 May 2002, David Schultz wrote: >> Features missing include macros FP_INFINITE, FP_NAN, FP_NORMAL, >> FP_SUBNORMAL, FP_ZERO, fpclassify(), and isfinite(). > I've made some patches to add most of these features for i386. The > remaining ones are mostly trivial extensions to the ones I've already > added. Cool. Unfortunately, I'm not enough of an expert to be really able to review your improvements in detail, but have only been bitten by missing features while maintaining our emulators/wine port. But apart from isfinite(), everything originally require by Wine seems to be there with your patch, thanks! (Hopefully someone with more in-depth knowledge than me will review your patch soon!) Gerald -- Gerald "Jerry" pfeifer@dbai.tuwien.ac.at http://www.dbai.tuwien.ac.at/~pfeifer/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message From owner-freebsd-standards Wed May 15 11:54:21 2002 Delivered-To: freebsd-standards@freebsd.org Received: from HAL9000.wox.org (12-232-222-90.client.attbi.com [12.232.222.90]) by hub.freebsd.org (Postfix) with ESMTP id E83A837B427; Wed, 15 May 2002 11:54:16 -0700 (PDT) Received: (from das@localhost) by HAL9000.wox.org (8.11.6/8.11.6) id g4FIt1G57290; Wed, 15 May 2002 11:55:01 -0700 (PDT) (envelope-from das) Date: Wed, 15 May 2002 11:55:01 -0700 From: David Schultz To: Gerald Pfeifer Cc: freebsd-gnats-submit@freebsd.org, freebsd-standards@freebsd.org Subject: Re: misc/23103: lacks many ISO C99 features (NAN, isfinite,...) Message-ID: <20020515115501.A57275@HAL9000.wox.org> References: <20020509030926.A36699@HAL9000.wox.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: ; from pfeifer@dbai.tuwien.ac.at on Wed, May 15, 2002 at 07:21:11PM +0200 Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thus spake Gerald Pfeifer : > But apart from isfinite(), everything originally require by Wine seems > to be there with your patch, thanks! isfinite() is a really easy addition, since it's just a special case of fpclassify(). I just want to verify that someone is willing to support the work before I finish hacking up math.h and research any changes necessary for architectures other than i386. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message From owner-freebsd-standards Wed May 15 12: 0: 8 2002 Delivered-To: freebsd-standards@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 2A04F37B408 for ; Wed, 15 May 2002 12:00:05 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g4FJ05B85453; Wed, 15 May 2002 12:00:05 -0700 (PDT) (envelope-from gnats) Date: Wed, 15 May 2002 12:00:05 -0700 (PDT) Message-Id: <200205151900.g4FJ05B85453@freefall.freebsd.org> To: standards@FreeBSD.org Cc: From: David Schultz Subject: Re: misc/23103: lacks many ISO C99 features (NAN, isfinite,...) Reply-To: David Schultz Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG The following reply was made to PR misc/23103; it has been noted by GNATS. From: David Schultz To: Gerald Pfeifer Cc: freebsd-gnats-submit@freebsd.org, freebsd-standards@freebsd.org Subject: Re: misc/23103: lacks many ISO C99 features (NAN, isfinite,...) Date: Wed, 15 May 2002 11:55:01 -0700 Thus spake Gerald Pfeifer : > But apart from isfinite(), everything originally require by Wine seems > to be there with your patch, thanks! isfinite() is a really easy addition, since it's just a special case of fpclassify(). I just want to verify that someone is willing to support the work before I finish hacking up math.h and research any changes necessary for architectures other than i386. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message From owner-freebsd-standards Thu May 16 17: 3:50 2002 Delivered-To: freebsd-standards@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id C919E37B403; Thu, 16 May 2002 17:03:48 -0700 (PDT) Received: (from tjr@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g4H03m263948; Thu, 16 May 2002 17:03:48 -0700 (PDT) (envelope-from tjr) Date: Thu, 16 May 2002 17:03:48 -0700 (PDT) From: Message-Id: <200205170003.g4H03m263948@freefall.freebsd.org> To: pavalos@theshell.com, tjr@FreeBSD.org, freebsd-standards@FreeBSD.org, tjr@FreeBSD.org Subject: Re: standards/36950: Add -n to renice(8) Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Synopsis: Add -n to renice(8) State-Changed-From-To: open->patched State-Changed-By: tjr State-Changed-When: Thu May 16 17:00:40 PDT 2002 State-Changed-Why: Most of the changes you suggest have now been committed to HEAD in one form or another. Thanks. Responsible-Changed-From-To: freebsd-standards->tjr Responsible-Changed-By: tjr Responsible-Changed-When: Thu May 16 17:00:40 PDT 2002 Responsible-Changed-Why: I will MFC this when the RELENG_4 code slush ends. http://www.freebsd.org/cgi/query-pr.cgi?pr=36950 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message From owner-freebsd-standards Fri May 17 2:13:58 2002 Delivered-To: freebsd-standards@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 5575437B407; Fri, 17 May 2002 02:13:57 -0700 (PDT) Received: (from tjr@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g4H9DvC70800; Fri, 17 May 2002 02:13:57 -0700 (PDT) (envelope-from tjr) Date: Fri, 17 May 2002 02:13:57 -0700 (PDT) From: Message-Id: <200205170913.g4H9DvC70800@freefall.freebsd.org> To: tim@robbins.dropbear.id.au, tjr@FreeBSD.org, freebsd-standards@FreeBSD.org Subject: Re: standards/36783: P1003.1-2001 -s -A -j -N -t options for od(1) (patch) Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Synopsis: P1003.1-2001 -s -A -j -N -t options for od(1) (patch) State-Changed-From-To: open->closed State-Changed-By: tjr State-Changed-When: Fri May 17 02:11:22 PDT 2002 State-Changed-Why: Committed to HEAD. I don't plan to MFC this. http://www.freebsd.org/cgi/query-pr.cgi?pr=36783 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message From owner-freebsd-standards Fri May 17 10:50:14 2002 Delivered-To: freebsd-standards@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 64AD237B40F for ; Fri, 17 May 2002 10:50:01 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g4HHo1K53238; Fri, 17 May 2002 10:50:01 -0700 (PDT) (envelope-from gnats) Received: from nwww.freebsd.org (www.FreeBSD.org [216.136.204.117]) by hub.freebsd.org (Postfix) with ESMTP id 2429937B410 for ; Fri, 17 May 2002 10:40:05 -0700 (PDT) Received: from www.freebsd.org (localhost [127.0.0.1]) by nwww.freebsd.org (8.12.2/8.12.2) with ESMTP id g4HHe5hG013199 for ; Fri, 17 May 2002 10:40:05 -0700 (PDT) (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.2/8.12.2/Submit) id g4HHe4GJ013198; Fri, 17 May 2002 10:40:04 -0700 (PDT) Message-Id: <200205171740.g4HHe4GJ013198@www.freebsd.org> Date: Fri, 17 May 2002 10:40:04 -0700 (PDT) From: "J. Mallett" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: standards/38195: sed(1)'s process.c does not correctly append lines of input. Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG >Number: 38195 >Category: standards >Synopsis: sed(1)'s process.c does not correctly append lines of input. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-standards >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri May 17 10:50:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: J. Mallett >Release: HEAD >Organization: FreeBSD >Environment: ... >Description: FreeBSD's sed(1) is incompatible with its handling of the G and H commands because it does not explicitly append newlines when appending a line of input, it relies on them just "popping up" because we use fgetln to get lines of input. This relates to appending the hold or pattern space. >How-To-Repeat: (echo 1; echo 2; echo 3; echo 4) | sed '1,2H;2,3G' with our sed(1), and GNU's, and SysV's. >Fix: Create a function to append a line to a given space, instead of using cspace, and have it do the correct thing. Possibly, NUL-terminate at the newline when using fgetln(3) at mf_gets. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message