Skip to content

Commit 138668c

Browse files
committed
Update float dpow() comment about whick platforms had issues with Nan.
Stefan Kaltenbrunner
1 parent 53c26d6 commit 138668c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backend/utils/adt/float.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/utils/adt/float.c,v 1.140 2007/01/04 05:18:39 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/utils/adt/float.c,v 1.141 2007/01/05 03:19:26 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -1443,8 +1443,8 @@ dpow(PG_FUNCTION_ARGS)
14431443
* follows _IEEE_, _POSIX_, _XOPEN_, or _SVID_, so we try to avoid
14441444
* using errno. However, some platform/CPU combinations return
14451445
* errno == EDOM and result == Nan, so we have to check for that and
1446-
* set result properly. For example, Linux on Pentium, pre-Xeon
1447-
* hardware returns EDOM/Nan for (-1) ^ 1e19, but (-1) ^ 1e18 retuns
1446+
* set result properly. For example, Linux on 32-bit x86 hardware
1447+
* returns EDOM/Nan for (-1) ^ 1e19, but (-1) ^ 1e18 returns
14481448
* 1 -- basically a negative base raised to a very high power causes
14491449
* it on some CPUs.
14501450
*/

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy