Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
fe74581f
Commit
fe74581f
authored
Jun 03, 1997
by
Thomas G. Lockhart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use finite() macro if available to check returns from pow() and exp().
parent
93ac35f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
src/backend/utils/adt/float.c
src/backend/utils/adt/float.c
+13
-1
No files found.
src/backend/utils/adt/float.c
View file @
fe74581f
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/float.c,v 1.1
5 1997/05/14 04:35:10
thomas Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/float.c,v 1.1
6 1997/06/03 13:58:06
thomas Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -974,9 +974,15 @@ float64 dpow(float64 arg1, float64 arg2)
tmp1
=
*
arg1
;
tmp2
=
*
arg2
;
#ifndef finite
errno
=
0
;
#endif
*
result
=
(
float64data
)
pow
(
tmp1
,
tmp2
);
#ifndef finite
if
(
errno
==
ERANGE
)
#else
if
(
!
finite
(
*
result
))
#endif
elog
(
WARN
,
"pow() returned a floating point out of the range
\n
"
);
CheckFloat8Val
(
*
result
);
...
...
@@ -998,9 +1004,15 @@ float64 dexp(float64 arg1)
result
=
(
float64
)
palloc
(
sizeof
(
float64data
));
tmp
=
*
arg1
;
#ifndef finite
errno
=
0
;
#endif
*
result
=
(
float64data
)
exp
(
tmp
);
#ifndef finite
if
(
errno
==
ERANGE
)
#else
if
(
!
finite
(
*
result
))
#endif
elog
(
WARN
,
"exp() returned a floating point out of range
\n
"
);
CheckFloat8Val
(
*
result
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment