Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
4992b659
Commit
4992b659
authored
Apr 29, 2008
by
Petr Sumbera
Committed by
Alexandre Julliard
Apr 30, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
port: Add alternative for isinf.
parent
bfe07d1d
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
114 additions
and
0 deletions
+114
-0
configure
configure
+60
-0
configure.ac
configure.ac
+8
-0
config.h.in
include/config.h.in
+3
-0
port.h
include/wine/port.h
+4
-0
Makefile.in
libs/port/Makefile.in
+1
-0
isinf.c
libs/port/isinf.c
+38
-0
No files found.
configure
View file @
4992b659
...
...
@@ -21233,6 +21233,66 @@ _ACEOF
fi
{
echo
"
$as_me
:
$LINENO
: checking for isinf"
>
&5
echo
$ECHO_N
"checking for isinf...
$ECHO_C
"
>
&6
;
}
if
test
"
${
ac_cv_have_isinf
+set
}
"
=
set
;
then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
else
cat
>
conftest.
$ac_ext
<<
_ACEOF
/* confdefs.h. */
_ACEOF
cat
confdefs.h
>>
conftest.
$ac_ext
cat
>>
conftest.
$ac_ext
<<
_ACEOF
/* end confdefs.h. */
#include <math.h>
int
main ()
{
float f = 0.0; isinf(f)
;
return 0;
}
_ACEOF
rm
-f
conftest.
$ac_objext
conftest
$ac_exeext
if
{
(
ac_try
=
"
$ac_link
"
case
"((
$ac_try
"
in
*
\"
*
|
*
\`
*
|
*
\\
*
)
ac_try_echo
=
\$
ac_try
;;
*
)
ac_try_echo
=
$ac_try
;;
esac
eval
"echo
\"\$
as_me:
$LINENO
:
$ac_try_echo
\"
"
)
>
&5
(
eval
"
$ac_link
"
)
2>conftest.er1
ac_status
=
$?
grep
-v
'^ *+'
conftest.er1
>
conftest.err
rm
-f
conftest.er1
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
test
-z
"
$ac_c_werror_flag
"
||
test
!
-s
conftest.err
}
&&
test
-s
conftest
$ac_exeext
&&
$as_test_x
conftest
$ac_exeext
;
then
ac_cv_have_isinf
=
"yes"
else
echo
"
$as_me
: failed program was:"
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
ac_cv_have_isinf
=
"no"
fi
rm
-f
core conftest.err conftest.
$ac_objext
conftest_ipa8_conftest.oo
\
conftest
$ac_exeext
conftest.
$ac_ext
fi
{
echo
"
$as_me
:
$LINENO
: result:
$ac_cv_have_isinf
"
>
&5
echo
"
${
ECHO_T
}
$ac_cv_have_isinf
"
>
&6
;
}
if
test
"
$ac_cv_have_isinf
"
=
"yes"
then
cat
>>
confdefs.h
<<
\
_ACEOF
#define HAVE_ISINF 1
_ACEOF
fi
case
$host_cpu
in
*
i[3456789]86
*
)
{
echo
"
$as_me
:
$LINENO
: checking whether we need to define __i386__"
>
&5
...
...
configure.ac
View file @
4992b659
...
...
@@ -1607,6 +1607,14 @@ then
AC_DEFINE(HAVE_DAYLIGHT, 1, [Define if you have the daylight variable])
fi
dnl Check for isinf
AC_CACHE_CHECK([for isinf], ac_cv_have_isinf,
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <math.h>]], [[float f = 0.0; isinf(f)]])],[ac_cv_have_isinf="yes"],[ac_cv_have_isinf="no"]))
if test "$ac_cv_have_isinf" = "yes"
then
AC_DEFINE(HAVE_ISINF, 1, [Define to 1 if you have the `isinf' function.])
fi
dnl *** check for the need to define platform-specific symbols
case $host_cpu in
...
...
include/config.h.in
View file @
4992b659
...
...
@@ -249,6 +249,9 @@
/* Define to 1 if you have the <io.h> header file. */
#undef HAVE_IO_H
/* Define to 1 if you have the `isinf' function. */
#undef HAVE_ISINF
/* Define to 1 if you have the <jack/jack.h> header file. */
#undef HAVE_JACK_JACK_H
...
...
include/wine/port.h
View file @
4992b659
...
...
@@ -299,6 +299,10 @@ size_t getpagesize(void);
pid_t
gettid
(
void
);
#endif
/* HAVE_GETTID */
#ifndef HAVE_ISINF
int
isinf
(
double
x
);
#endif
#ifndef HAVE_LSTAT
int
lstat
(
const
char
*
file_name
,
struct
stat
*
buf
);
#endif
/* HAVE_LSTAT */
...
...
libs/port/Makefile.in
View file @
4992b659
...
...
@@ -15,6 +15,7 @@ C_SRCS = \
getpagesize.c
\
gettid.c
\
interlocked.c
\
isinf.c
\
lstat.c
\
memcpy_unaligned.c
\
memmove.c
\
...
...
libs/port/isinf.c
0 → 100644
View file @
4992b659
/*
* isinf function
*
* Copyright 2008 Petr Sumbera
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "config.h"
#include "wine/port.h"
#ifndef HAVE_ISINF
#ifdef HAVE_IEEEFP_H
#include <ieeefp.h>
int
isinf
(
double
x
)
{
return
(
!
(
finite
(
x
)
||
isnand
(
x
)));
}
#else
#error No isinf() implementation available.
#endif
#endif
/* HAVE_ISINF */
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