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

Commit310049a

Browse files
committed
Clean up our static cbrt() implementation in float.c.
1 parent8facf2d commit310049a

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

‎src/backend/utils/adt/float.c

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/float.c,v 1.87 2003/05/09 21:19:49 tgl Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/float.c,v 1.88 2003/05/25 05:30:57 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -70,24 +70,9 @@
7070
#include"utils/builtins.h"
7171

7272

73-
#if !(NeXT&&NX_CURRENT_COMPILER_RELEASE>NX_COMPILER_RELEASE_3_2)
74-
/* NS3.3 has conflicting declarations of these in <math.h> */
75-
76-
#ifndefatof
77-
externdoubleatof(constchar*p);
78-
#endif
79-
8073
#ifndefHAVE_CBRT
81-
#definecbrt my_cbrt
8274
staticdoublecbrt(doublex);
83-
84-
#else
85-
#if !defined(nextstep)
86-
externdoublecbrt(doublex);
87-
#endif
8875
#endif/* HAVE_CBRT */
89-
#endif/* NeXT check */
90-
9176

9277
#ifndefM_PI
9378
/* from my RH5.2 gcc math.h file - thomas 2000-04-03 */
@@ -1983,7 +1968,7 @@ float84ge(PG_FUNCTION_ARGS)
19831968
/* ========== PRIVATE ROUTINES ========== */
19841969

19851970
#ifndefHAVE_CBRT
1986-
1971+
/* I doubt this is still needed by any platform. 2003-05-25 */
19871972
staticdouble
19881973
cbrt(doublex)
19891974
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp