Re: power() function in Windows: "value out of range: underflow" - Mailing list pgsql-bugs

From David Rowley
Subject Re: power() function in Windows: "value out of range: underflow"
Date
Msg-id CAKJS1f_crLhE5OBKwGOZZQ-gWdJ9=SQ1u+fOzSb+WQQzChCOeA@mail.gmail.com
Whole thread Raw
In response to Re: power() function in Windows: "value out of range: underflow"  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: power() function in Windows: "value out of range: underflow"  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: power() function in Windows: "value out of range: underflow"  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
On 30 April 2018 at 07:24, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Pushed.  I'd mainly note that you need to update all the variant float8
> expected-files, not just the primary one.  (Sometimes this requires a
> bit of guesswork, but here we're expecting all platforms to produce
> the same result.  The buildfarm should tell us if I got it wrong.)

gaur does not seem happy with this. I get the impression that pow(1,
NaN) and pow(NaN, 0) on that machine must be returning NaN and setting
errno to EDOM, and now that we're only using that code path when both
are are non-NaN we no longer hit the special case which does result =
1;

I wonder if it's better just to hard code these two cases before even
calling the pow() function.

-- 
 David Rowley                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


pgsql-bugs by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #15178: не могу найти как получить бэта доступ к программе
Next
From: Tom Lane
Date:
Subject: Re: power() function in Windows: "value out of range: underflow"