Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
668cf2e6
Commit
668cf2e6
authored
Apr 29, 2021
by
Piotr Caban
Committed by
Alexandre Julliard
Apr 29, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Import llroundf implementation from musl.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
833e8cdd
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
20 deletions
+8
-20
configure
configure
+0
-1
configure.ac
configure.ac
+0
-1
math.c
dlls/msvcrt/math.c
+8
-1
unixlib.c
dlls/msvcrt/unixlib.c
+0
-13
unixlib.h
dlls/msvcrt/unixlib.h
+0
-1
config.h.in
include/config.h.in
+0
-3
No files found.
configure
View file @
668cf2e6
...
...
@@ -19636,7 +19636,6 @@ for ac_func in \
llrint
\
llrintf
\
llround
\
llroundf
\
log1p
\
log1pf
\
log2
\
...
...
configure.ac
View file @
668cf2e6
...
...
@@ -2679,7 +2679,6 @@ AC_CHECK_FUNCS(\
llrint \
llrintf \
llround \
llroundf \
log1p \
log1pf \
log2 \
...
...
dlls/msvcrt/math.c
View file @
668cf2e6
...
...
@@ -4384,10 +4384,17 @@ __int64 CDECL llround(double x)
/*********************************************************************
* llroundf (MSVCR120.@)
*
* Copied from musl: src/math/llroundf.c
*/
__int64
CDECL
llroundf
(
float
x
)
{
return
unix_funcs
->
llroundf
(
x
);
float
f
=
roundf
(
x
);
if
(
f
!=
(
float
)(
__int64
)
f
)
{
*
_errno
()
=
EDOM
;
return
0
;
}
return
f
;
}
/*********************************************************************
...
...
dlls/msvcrt/unixlib.c
View file @
668cf2e6
...
...
@@ -802,18 +802,6 @@ static __int64 CDECL unix_llround(double x)
}
/*********************************************************************
* llroundf
*/
static
__int64
CDECL
unix_llroundf
(
float
x
)
{
#ifdef HAVE_LLROUNDF
return
llroundf
(
x
);
#else
return
unix_llround
(
x
);
#endif
}
/*********************************************************************
* sin
*/
static
double
CDECL
unix_sin
(
double
x
)
...
...
@@ -969,7 +957,6 @@ static const struct unix_funcs funcs =
unix_llrint
,
unix_llrintf
,
unix_llround
,
unix_llroundf
,
unix_log
,
unix_logf
,
unix_log10
,
...
...
dlls/msvcrt/unixlib.h
View file @
668cf2e6
...
...
@@ -63,7 +63,6 @@ struct unix_funcs
__int64
(
CDECL
*
llrint
)(
double
x
);
__int64
(
CDECL
*
llrintf
)(
float
x
);
__int64
(
CDECL
*
llround
)(
double
x
);
__int64
(
CDECL
*
llroundf
)(
float
x
);
double
(
CDECL
*
log
)(
double
x
);
float
(
CDECL
*
logf
)(
float
x
);
double
(
CDECL
*
log10
)(
double
x
);
...
...
include/config.h.in
View file @
668cf2e6
...
...
@@ -462,9 +462,6 @@
/* Define to 1 if you have the `llround' function. */
#undef HAVE_LLROUND
/* Define to 1 if you have the `llroundf' function. */
#undef HAVE_LLROUNDF
/* Define to 1 if you have the `log1p' function. */
#undef HAVE_LOG1P
...
...
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