[MPlayer-dev-eng] Patch for gcc 3.4 against MPlayer-1.0pre5
Attila Kinali
attila at kinali.ch
Sat Aug 28 04:34:03 CEST 2004
On Tue, Aug 24, 2004 at 02:12:22AM -0500, Joey Parrish wrote:
> On Mon, Aug 23, 2004 at 08:55:46PM -0500, Joey Parrish wrote:
> > > > According to the original mail, this is already done in some place in
> > > > MPlayer (IIRC). But the point is that someone should create a proper
> > > > replacement in the case of a system without one. We should not put
> > > > code everywhere to define lrintf over and over again.
> > >
> > > You just volunteered :)
>
> Okay, here's my first try.
> I took code from MPlayer's copy of libfaad2 for x86 asm lrintf.
> The fallback version doesn't give the same results for lrintf(0.5)
> as the asm version, though.
>
> For the asm version:
> lrintf(0.5) == 0
> lrintf(-0.5) == 0
>
> For the C version:
> lrintf(0.5) == 1
> lrintf(-0.5) == -1
>
> Is this a problem, or is that behavior even defined?
> Any other comments?
IMHO this is a bug, the asm version should round 0.5 to 1.
Attila Kinali
More information about the MPlayer-dev-eng
mailing list