[MPlayer-dev-eng] Patch for gcc 3.4 against MPlayer-1.0pre5

Torinthiel torinthiel at megapolis.pl
Thu Sep 2 08:12:10 CEST 2004


On Thu, Sep 02, 2004 at 01:20:23AM +0100, Martin Simmons wrote:
> Based on what spec?  It is normal for floating point rounding of an exact half
> to generate an even integer, i.e.

I don't know spec's, but ALWAYS if two directions are possible, then
half is rounded up. So that round(x)=trunc(x+0.5)
I don't know about negative numbers though.

However, Maple (a symbolical mathematical package, used by
mathematisians) rounds -0.5 to -1. So does scilab, a numerical package.
Octave however (another numerical package) rounds -0.5 to 0.
So even mathematicians cannot reach a consensus here ;)
Torinthiel

-- 
 Waclaw "Torinthiel" Schiller       GG#: 542916, 3073512
   torinthiel(at)megapolis(dot)pl
   gpg: B06901F1 fpr: FAA3 559F CAE9 34DE CDC8  7346 2B6E 39F2 B069 01F1
 "No classmates may be used during this examination"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20040902/36c69565/attachment.pgp>


More information about the MPlayer-dev-eng mailing list