Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit138668c

Browse files
committed
Update float dpow() comment about whick platforms had issues with Nan.
Stefan Kaltenbrunner
1 parent53c26d6 commit138668c

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 onPentium, pre-Xeon
1447-
*hardwarereturns EDOM/Nan for (-1) ^ 1e19, but (-1) ^ 1e18retuns
1446+
* set result properly. For example, Linux on32-bit x86 hardware
1447+
* returns EDOM/Nan for (-1) ^ 1e19, but (-1) ^ 1e18returns
14481448
* 1 -- basically a negative base raised to a very high power causes
14491449
* it on some CPUs.
14501450
*/

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp