Re: Slaying the HYPOTamus - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Slaying the HYPOTamus
Date
Msg-id 9413.1251159271@sss.pgh.pa.us
Whole thread Raw
In response to Re: Slaying the HYPOTamus  (Paul Matthews <plm@netspace.net.au>)
Responses Re: Slaying the HYPOTamus
List pgsql-hackers
Paul Matthews <plm@netspace.net.au> writes:
> Just trying to implement correct C99 behaviour here.

Around here we tend to read the Single Unix Spec before C99, and SUS
saith something different:

http://www.opengroup.org/onlinepubs/007908799/xsh/hypot.html

It would be serious folly for us to suppose that every platform's
version of hypot() behaves exactly the same for these corner cases,
anyway.  If you're proposing to write code that would depend on that,
we need to call it something else and not pretend that it's just a
fill-in for platforms that lack hypot() entirely.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: 8.5 release timetable, again
Next
From: David Fetter
Date:
Subject: Re: Bug in date arithmetic