[MPlayer-dev-eng] lround?

Arpi arpi at thot.banki.hu
Sun Jun 16 01:42:34 CEST 2002


Hi,

> > > pl_eq.o(.text+0x311): undefined reference to `lround'
> > > libao2/libao2.a(pl_eq.o): In function `bp2': pl_eq.o(.text+0x6c4):
> > > undefined reference to `lround' libao2/libao2.a(pl_eq.o)(.text+0x6e2):
> > > more undefined references to `lround' follow gmake: *** [mplayer] Error 
> 1
> > 
> > Just, checked various unix manapages and it seems this is linux-only.
> 
> Seems a simple replacement of this is to just add .5 to the value and assign
> to an integer, why a function for it?

imho lround and +.5 behaves different with negative numbers
and probably c compilers have optimized inline code/macro for it...
(afair there is such rounding&conversion instruction on x86, so it may be
even faster than adding a constant and then converting to int)


A'rpi / Astral & ESP-team

--
Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu



More information about the MPlayer-dev-eng mailing list