[MPlayer-dev-eng] Patch for gcc 3.4 against MPlayer-1.0pre5
Torinthiel
torinthiel at megapolis.pl
Thu Sep 2 09:17:16 CEST 2004
On Thu, Sep 02, 2004 at 03:03:38AM -0400, A. Guru wrote:
>
> * On Thursday 2004-09-02 at 08:12:10 +0200, Torinthiel wrote:
> > 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.
>
> $ man 3 fesetround
DESCRIPTION
These eleven functions were defined in C99, and describe the handling
of floating point rounding and exceptions (overflow, zero-divide etc.).
C99 is not widely used here. gcc 2.95 doesn't support it.
By the way. As I understand it if I call fesetround(FE_DOWNWARD) than
round(0.7)==0? Ouch. If I want this then I use ceil And it still doesn't
define what happens with +/-0.5 under FE_TONEAREST.
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/00a6008e/attachment.pgp>
More information about the MPlayer-dev-eng
mailing list