[FFmpeg-devel] [PATCH] Add a MAXDIST parameter to tiny_psnr (for 1-off fate tests)

Rafaël Carré rafael.carre
Sun Jul 11 19:37:40 CEST 2010


On Fri, 09 Jul 2010 02:51:05 +0100
M?ns Rullg?rd <mans at mansr.com> wrote:

> Rafa?l Carr? <rafael.carre at gmail.com> writes:
> 
> > On Thu, 08 Jul 2010 21:06:55 +0100
> > M?ns Rullg?rd <mans at mansr.com> wrote:
> >
> >> > What about, just... abs()?
> >> 
> >> I'll bet a beer there's at least one system where it's missing.
> >
> > I accept the bet (although Vitor said it was "present in all
> > supported archs" so perhaps it's too late, up to you)
> 
> To win the bet you must show that no system exists where this function
> is missing.  This could prove rather difficult given the forking rate
> of BSD (and their penchant for randomly leaving out standard
> functions).

All the BSD I checked have had abs() since the start and it was not
removed.

However I found that Haiku lacked an abs() prototype, until October 2002
http://svn.berlios.de/viewvc/haiku?view=revision&revision=1649

And some versions of HP-UX failed to declare abs() under certain
conditions (can't find the link again)
- including both stdlib.h and math.h in some specific order
- the file being compiled being C++ (C was not affected)


- The FreeBSD commit which brought stdlib.h together with abs() came
  from "BSD 4.4 Lite"
- OpenBSD/NetBSD are ok
- mingw32 is ok
- I didn't find a source browsing web service for DragonFlyBSD, PCBSD,
  DesktopBSD, so I assume since they're based on other correct BSDs
  they wouldn't be mad enough to remove abs()
- glibc is ok (used in Linux, HURD, Syllable, debian kFreeBSD ..)
- uclibc is ok
- amigaOS is probably ok (reportedly builds FFmpeg 0.6)
- Bionic (android libc) is ok 
- QNX is ok
- Plan9 is ok (though i couldn't find a stdlib.h, plan9 doesn't aim to
standards compliance)

I only checked headers for the prototype or a macro, not if the actual
function was present


I don't know if a nearly 8 years old haiku count as a "system" and the
list of systems I checked is clearly not exhaustive.


So is the bet won/lost by one of us? If you hesitate we could vote

-- 
? Rafa?l Carr? ?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100711/d7ab6d46/attachment.pgp>



More information about the ffmpeg-devel mailing list