Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
7703b676
Commit
7703b676
authored
May 16, 2007
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal:/home/bk/mysql-5.0-maint
into pilot.blaudden:/home/msvensson/mysql/mysql-5.0-maint
parents
aeaadfac
9e1585ab
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
14 deletions
+21
-14
configure.in
configure.in
+13
-5
include/my_global.h
include/my_global.h
+5
-6
sql/item_func.cc
sql/item_func.cc
+2
-2
strings/strtod.c
strings/strtod.c
+1
-1
No files found.
configure.in
View file @
7703b676
...
...
@@ -2006,12 +2006,20 @@ case "$target" in
;;
esac
# isinf() could be a function or a macro (HPUX)
AC_MSG_CHECKING
(
for
isinf with <math.h>
)
# Check that isinf() is available in math.h and can be used in both C and C++
# code
AC_MSG_CHECKING
(
for
isinf
in
<math.h>
)
AC_TRY_LINK
([
#include <math.h>], [float f = 0.0; int r = isinf(f); return r],
AC_MSG_RESULT
(
yes
)
AC_MSG_CHECKING
(
whether isinf
()
can be used
in
C++ code
)
AC_LANG_SAVE
AC_LANG_CPLUSPLUS
AC_TRY_LINK
([
#include <math.h>], [float f = 0.0; int r = isinf(f); return r],
AC_MSG_RESULT
(
yes
)
AC_DEFINE
(
HAVE_ISINF,
[
1],
[
isinf
()
macro or
function
])
,
AC_MSG_RESULT
(
no
))
AC_LANG_RESTORE,
AC_MSG_RESULT
(
no
))
CFLAGS
=
"
$ORG_CFLAGS
"
...
...
include/my_global.h
View file @
7703b676
...
...
@@ -792,12 +792,11 @@ typedef SOCKET_SIZE_TYPE size_socket;
#define isnan(x) ((x) != (x))
#endif
#if !defined(HAVE_ISINF)
/* The configure check for "isinf with math.h" has failed */
#ifdef isinf
#undef isinf
#endif
#define isinf(X) (!finite(X) && !isnan(X))
#ifdef HAVE_ISINF
/* isinf() can be used in both C and C++ code */
#define my_isinf(X) isinf(X)
#else
#define my_isinf(X) (!finite(X) && !isnan(X))
#endif
/* Define missing math constants. */
...
...
sql/item_func.cc
View file @
7703b676
...
...
@@ -1980,9 +1980,9 @@ double my_double_round(double value, longlong dec, bool dec_unsigned,
tmp
=
(
abs_dec
<
array_elements
(
log_10
)
?
log_10
[
abs_dec
]
:
pow
(
10.0
,(
double
)
abs_dec
));
if
(
dec_negative
&&
isinf
(
tmp
))
if
(
dec_negative
&&
my_
isinf
(
tmp
))
tmp2
=
0
;
else
if
(
!
dec_negative
&&
isinf
(
value
*
tmp
))
else
if
(
!
dec_negative
&&
my_
isinf
(
value
*
tmp
))
tmp2
=
value
;
else
if
(
truncate
)
{
...
...
strings/strtod.c
View file @
7703b676
...
...
@@ -194,7 +194,7 @@ double my_strtod(const char *str, char **end_ptr, int *error)
done:
*
end_ptr
=
(
char
*
)
str
;
/* end of number */
if
(
overflow
||
isinf
(
result
))
if
(
overflow
||
my_
isinf
(
result
))
{
result
=
DBL_MAX
;
*
error
=
EOVERFLOW
;
...
...
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