From owner-freebsd-standards Wed Feb 19 14: 7:27 2003 Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EB97837B401 for ; Wed, 19 Feb 2003 14:07:25 -0800 (PST) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 99F2D43F75 for ; Wed, 19 Feb 2003 14:07:24 -0800 (PST) (envelope-from bde@zeta.org.au) Received: from katana.zip.com.au (katana.zip.com.au [61.8.7.246]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id JAA08001; Thu, 20 Feb 2003 09:07:13 +1100 Date: Thu, 20 Feb 2003 09:08:07 +1100 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: Dag-Erling Smorgrav Cc: standards@FreeBSD.ORG Subject: Re: More missing math functions In-Reply-To: Message-ID: <20030220085333.M14561-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 Wed, 19 Feb 2003, Dag-Erling Smorgrav wrote: > Aside from long double support, we seem to be missing the following > math functions (and their float equivalents): > > Function Description Notes > ---------------------------------------------------------------------- > exp2(x) 2^x Documented but not implemented Not documented. I removed bogus .Nm's and links for exp2 and exp2f a while ago. You apparently have stale links. > fdim(x, y) |x - y| > ... > fmax(x, y) x > y ? x : y > fmin(x, y) x < y ? x : y At least in n869.txt, fmin() and fmax() are reqired to return the non-NaN arg if one of the args is a NaN. Someone whoe should know (Hauser?) objected to this in com.std.c. fdim() doesn't seem to be bug for bug compatible here. Anyway, a simple comparison might not be right here. > log2(x) log_2(x) Was bogusly documented like exp2. > ... Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message