libm alternative in ports
arundel at freebsd.org
Wed Nov 24 02:45:58 UTC 2010
On Tue Nov 23 10, Tobias wrote:
> On Tue, Nov 23, 2010 at 4:15 PM, Alexander Best <arundel at freebsd.org> wrote:
> > On Tue Nov 23 10, Chris Brennan wrote:
> > > On Tue, Nov 23, 2010 at 4:00 PM, Alexander Best <arundel at 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)?
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.
More information about the freebsd-questions