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
aa224816
Commit
aa224816
authored
May 10, 2021
by
Piotr Caban
Committed by
Alexandre Julliard
May 10, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Implement lrintf using rintf function.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0838c995
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
20 deletions
+9
-20
configure
configure
+0
-1
configure.ac
configure.ac
+0
-1
math.c
dlls/msvcrt/math.c
+9
-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 @
aa224816
...
...
@@ -19642,7 +19642,6 @@ for ac_func in \
log1pf
\
log2
\
log2f
\
lrintf
\
nearbyint
\
nearbyintf
\
nexttoward
\
...
...
configure.ac
View file @
aa224816
...
...
@@ -2682,7 +2682,6 @@ AC_CHECK_FUNCS(\
log1pf \
log2 \
log2f \
lrintf \
nearbyint \
nearbyintf \
nexttoward \
...
...
dlls/msvcrt/math.c
View file @
aa224816
...
...
@@ -4356,7 +4356,15 @@ __msvcrt_long CDECL lrint(double x)
*/
__msvcrt_long
CDECL
lrintf
(
float
x
)
{
return
unix_funcs
->
lrintf
(
x
);
float
f
;
f
=
rintf
(
x
);
if
((
f
<
0
&&
f
!=
(
float
)(
__msvcrt_long
)
f
)
||
(
f
>=
0
&&
f
!=
(
float
)(
__msvcrt_ulong
)
f
))
{
*
_errno
()
=
EDOM
;
return
0
;
}
return
f
;
}
/*********************************************************************
...
...
dlls/msvcrt/unixlib.c
View file @
aa224816
...
...
@@ -556,18 +556,6 @@ static float CDECL unix_logbf( float x )
}
/*********************************************************************
* lrintf
*/
static
int
CDECL
unix_lrintf
(
float
x
)
{
#ifdef HAVE_LRINTF
return
lrintf
(
x
);
#else
return
x
>=
0
?
floorf
(
x
+
0
.
5
)
:
ceilf
(
x
-
0
.
5
);
#endif
}
/*********************************************************************
* modf
*/
static
double
CDECL
unix_modf
(
double
x
,
double
*
iptr
)
...
...
@@ -882,7 +870,6 @@ static const struct unix_funcs funcs =
unix_log2f
,
unix_logb
,
unix_logbf
,
unix_lrintf
,
unix_modf
,
unix_modff
,
unix_nearbyint
,
...
...
dlls/msvcrt/unixlib.h
View file @
aa224816
...
...
@@ -72,7 +72,6 @@ struct unix_funcs
float
(
CDECL
*
log2f
)(
float
x
);
double
(
CDECL
*
logb
)(
double
x
);
float
(
CDECL
*
logbf
)(
float
x
);
int
(
CDECL
*
lrintf
)(
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 @
aa224816
...
...
@@ -471,9 +471,6 @@
/* Define to 1 if you have the `log2f' function. */
#undef HAVE_LOG2F
/* Define to 1 if you have the `lrintf' function. */
#undef HAVE_LRINTF
/* 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