From owner-freebsd-questions@FreeBSD.ORG Wed Nov 24 02:45:58 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id 66D561065695; Wed, 24 Nov 2010 02:45:58 +0000 (UTC) Date: Wed, 24 Nov 2010 02:45:58 +0000 From: Alexander Best To: Tobias Message-ID: <20101124024558.GA53600@freebsd.org> References: <20101123210013.GA71784@freebsd.org> <20101123231517.GA5056@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Cc: FreeBSD Subject: Re: libm alternative in ports X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Nov 2010 02:45:58 -0000 On Tue Nov 23 10, Tobias wrote: > On Tue, Nov 23, 2010 at 4:15 PM, Alexander Best wrote: > > > On Tue Nov 23 10, Chris Brennan wrote: > > > On Tue, Nov 23, 2010 at 4:00 PM, Alexander Best > > wrote: > > > > > > > hi there, > > > > > > > > does anybody if there's an alternative for libm in the ports dir? i > > need > > > > it, > > > > because the newest snapshots of mplayer require log2() and log2f(), > > which > > > > the > > > > base libm doesn't support. > > > > > > > > cheers. > > > > alex > > > > Can't you just calculate it yourself? > log2(n) = log10(n)/log10(2)? > http://logbase2.blogspot.com/2007/12/log-base-2.html thanks a lot for the hint. that might be a temporal solution. i don't think log2() and log2f() can be implemented that simply, because POSIX defines quite a few historical bugs which programs rely on. cheers. alex > > --Tobias -- a13x