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
7fa8b03c
Commit
7fa8b03c
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 lroundf implementation from musl.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
389e0532
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 @
7fa8b03c
...
...
@@ -19642,7 +19642,6 @@ for ac_func in \
lrint
\
lrintf
\
lround
\
lroundf
\
nearbyint
\
nearbyintf
\
nexttoward
\
...
...
configure.ac
View file @
7fa8b03c
...
...
@@ -2685,7 +2685,6 @@ AC_CHECK_FUNCS(\
lrint \
lrintf \
lround \
lroundf \
nearbyint \
nearbyintf \
nexttoward \
...
...
dlls/msvcrt/math.c
View file @
7fa8b03c
...
...
@@ -4368,10 +4368,17 @@ __msvcrt_long CDECL lround(double x)
/*********************************************************************
* lroundf (MSVCR120.@)
*
* Copied from musl: src/math/lroundf.c
*/
__msvcrt_long
CDECL
lroundf
(
float
x
)
{
return
unix_funcs
->
lroundf
(
x
);
float
f
=
roundf
(
x
);
if
(
f
!=
(
float
)(
__msvcrt_long
)
f
)
{
*
_errno
()
=
EDOM
;
return
0
;
}
return
f
;
}
/*********************************************************************
...
...
dlls/msvcrt/unixlib.c
View file @
7fa8b03c
...
...
@@ -778,18 +778,6 @@ static int CDECL unix_lround(double x)
}
/*********************************************************************
* lroundf
*/
static
int
CDECL
unix_lroundf
(
float
x
)
{
#ifdef HAVE_LROUNDF
return
lroundf
(
x
);
#else
return
unix_lround
(
x
);
#endif
}
/*********************************************************************
* sin
*/
static
double
CDECL
unix_sin
(
double
x
)
...
...
@@ -957,7 +945,6 @@ static const struct unix_funcs funcs =
unix_lrint
,
unix_lrintf
,
unix_lround
,
unix_lroundf
,
unix_modf
,
unix_modff
,
unix_nearbyint
,
...
...
dlls/msvcrt/unixlib.h
View file @
7fa8b03c
...
...
@@ -75,7 +75,6 @@ struct unix_funcs
int
(
CDECL
*
lrint
)(
double
x
);
int
(
CDECL
*
lrintf
)(
float
x
);
int
(
CDECL
*
lround
)(
double
x
);
int
(
CDECL
*
lroundf
)(
float
x
);
double
(
CDECL
*
modf
)(
double
x
,
double
*
iptr
);
float
(
CDECL
*
modff
)(
float
x
,
float
*
iptr
);
double
(
CDECL
*
nearbyint
)(
double
num
);
...
...
include/config.h.in
View file @
7fa8b03c
...
...
@@ -480,9 +480,6 @@
/* Define to 1 if you have the `lround' function. */
#undef HAVE_LROUND
/* Define to 1 if you have the `lroundf' function. */
#undef HAVE_LROUNDF
/* Define to 1 if you have the `lstat' function. */
#undef HAVE_LSTAT
...
...
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