Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Nov 2010 18:31:00 -0700
From:      Tobias <tobiash@gmail.com>
To:        Alexander Best <arundel@freebsd.org>
Cc:        FreeBSD <freebsd-questions@freebsd.org>
Subject:   Re: libm alternative in ports
Message-ID:  <AANLkTinKNrguch=DOwLqXb0UGnpJ59xMvCSgzYwujDQe@mail.gmail.com>
In-Reply-To: <20101123231517.GA5056@freebsd.org>
References:  <20101123210013.GA71784@freebsd.org> <AANLkTinOnFU59K1e4BNZmitC=eHpEmXN6vCvGfMVZbQg@mail.gmail.com> <20101123231517.GA5056@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Nov 23, 2010 at 4:15 PM, Alexander Best <arundel@freebsd.org> wrote:

> On Tue Nov 23 10, Chris Brennan wrote:
> > On Tue, Nov 23, 2010 at 4:00 PM, Alexander Best <arundel@freebsd.org>
> 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

--Tobias



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTinKNrguch=DOwLqXb0UGnpJ59xMvCSgzYwujDQe>