[FFmpeg-devel] [PATCH] Implement the function cmdutils.c:parse_int_or_die

Michael Niedermayer michaelni
Wed Feb 20 12:38:16 CET 2008


On Wed, Feb 20, 2008 at 03:16:14AM -0500, D. Hugh Redelmeier wrote:
> | From: Rich Felker <dalias at aerifal.cx>
> 
> | On Wed, Feb 20, 2008 at 02:01:36AM -0500, D. Hugh Redelmeier wrote:
> 
> | > I'm not sure what you mean.
> 
> | No, rather x<=DBL_MAX is the same as x<INFINITY
> 
> One might be surprised.  I think that temporary reals in x87 have a
> larger dynmaic range that double.  So in an efficient
> (not-strictly-conforming) implementation these might not be the same.
> 
> FP is quite odd and tricky.
> 
> As far as I am concerned, the fewer axioms you count on, the better.

This is about parsing and checking command line options not about something
where a 0.00000000000001 difference could matter. Though code simplicity
and maintainability does matter.
Not to mention if such a difference does matter to you FP is not the right
tool for you.

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Asymptotically faster algorithms should always be preferred if you have
asymptotical amounts of data
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080220/85cb9b55/attachment.pgp>



More information about the ffmpeg-devel mailing list