NetBSD Problem Report #30800

From rpaulo@netbsd.org  Thu Jul 21 12:35:30 2005
Return-Path: <rpaulo@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 1358)
	id 78C8063B104; Thu, 21 Jul 2005 12:35:30 +0000 (UTC)
Message-Id: <20050721123530.78C8063B104@narn.netbsd.org>
Date: Thu, 21 Jul 2005 12:35:30 +0000 (UTC)
From: Rui Paulo <rpaulo@NetBSD.org>
Reply-To: Rui Paulo <rpaulo@NetBSD.org>
To: gnats-bugs@netbsd.org
Subject: log2() family of functions
X-Send-Pr-Version: 3.95

>Number:         30800
>Category:       standards
>Synopsis:       log2() family of functions
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    standards-manager
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 21 12:36:01 +0000 2005
>Closed-Date:    Thu Jul 21 13:09:36 +0000 2005
>Last-Modified:  Thu Jul 21 13:09:36 +0000 2005
>Originator:     Rui Paulo
>Release:        NetBSD 3.99.7
>Organization:
>Environment:
System: NetBSD proton.internal.fnop.net 3.99.7 NetBSD 3.99.7 (proton) #3: Wed Jul 20 00:16:14 WEST 2005 rpaulo@proton.internal.fnop.net:/home/rpaulo/netbsd/obj-head/sys/arch/i386/compile/proton i386
Architecture: i386
Machine: i386
>Description:
As you know, you can compute log_2(x) by: log(x) / log(2).
However, log2*() seems to be a required function for C99. FreeBSD doesn't
support this function at the time of the writing, but there is an open
PR at http://www.freebsd.org/cgi/query-pr.cgi?pr=83845.

I don't know if we can use the patch in that PR since it comes from SunSoft.

I think the NetBSD libc misses some C99 functions so we aren't fully
C99-compliant, but this can be a start.

http://www.opengroup.org/onlinepubs/009695399/functions/log2.html
>How-To-Repeat:
>Fix:

>Release-Note:

>Audit-Trail:
From: christos@zoulas.com (Christos Zoulas)
To: gnats-bugs@netbsd.org, standards-manager@netbsd.org,
	gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Cc: 
Subject: Re: standards/30800: log2() family of functions
Date: Thu, 21 Jul 2005 09:01:02 -0400

 On Jul 21, 12:36pm, rpaulo@NetBSD.org (Rui Paulo) wrote:
 -- Subject: standards/30800: log2() family of functions

 Oops forgot to give you credit in the commit messages...
 Sorry! Anyway, committed.

 christos

From: Rui Paulo <rpaulo@NetBSD.org>
To: Christos Zoulas <christos@zoulas.com>
Cc: gnats-bugs@netbsd.org, standards-manager@netbsd.org,
	gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: standards/30800: log2() family of functions
Date: Thu, 21 Jul 2005 14:02:47 +0100

 On 2005.07.21 09:01:02 +0000, Christos Zoulas wrote:
 | On Jul 21, 12:36pm, rpaulo@NetBSD.org (Rui Paulo) wrote:
 | -- Subject: standards/30800: log2() family of functions
 | 
 | Oops forgot to give you credit in the commit messages...
 | Sorry! Anyway, committed.

 Credit ? For what ? :)
 Close the PR then ;)

 		-- Rui Paulo

State-Changed-From-To: open->closed
State-Changed-By: christos@netbsd.org
State-Changed-When: Thu, 21 Jul 2005 09:09:36 -0400
State-Changed-Why:
fixed, thanks


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.