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
0cdc52c6
Commit
0cdc52c6
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 llrintf using rintf function.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
45586c57
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 @
0cdc52c6
...
...
@@ -19636,7 +19636,6 @@ for ac_func in \
fmaf
\
lgamma
\
lgammaf
\
llrintf
\
log1p
\
log1pf
\
log2
\
...
...
configure.ac
View file @
0cdc52c6
...
...
@@ -2676,7 +2676,6 @@ AC_CHECK_FUNCS(\
fmaf \
lgamma \
lgammaf \
llrintf \
log1p \
log1pf \
log2 \
...
...
dlls/msvcrt/math.c
View file @
0cdc52c6
...
...
@@ -4388,7 +4388,15 @@ __int64 CDECL llrint(double x)
*/
__int64
CDECL
llrintf
(
float
x
)
{
return
unix_funcs
->
llrintf
(
x
);
float
f
;
f
=
rintf
(
x
);
if
((
f
<
0
&&
f
!=
(
float
)(
__int64
)
f
)
||
(
f
>=
0
&&
f
!=
(
float
)(
unsigned
__int64
)
f
))
{
*
_errno
()
=
EDOM
;
return
0
;
}
return
f
;
}
/*********************************************************************
...
...
dlls/msvcrt/unixlib.c
View file @
0cdc52c6
...
...
@@ -436,18 +436,6 @@ static float CDECL unix_lgammaf(float x)
}
/*********************************************************************
* llrintf
*/
static
__int64
CDECL
unix_llrintf
(
float
x
)
{
#ifdef HAVE_LLRINTF
return
llrintf
(
x
);
#else
return
x
>=
0
?
floorf
(
x
+
0
.
5
)
:
ceilf
(
x
-
0
.
5
);
#endif
}
/*********************************************************************
* log
*/
static
double
CDECL
unix_log
(
double
x
)
...
...
@@ -846,7 +834,6 @@ static const struct unix_funcs funcs =
unix_ldexp
,
unix_lgamma
,
unix_lgammaf
,
unix_llrintf
,
unix_log
,
unix_logf
,
unix_log10
,
...
...
dlls/msvcrt/unixlib.h
View file @
0cdc52c6
...
...
@@ -60,7 +60,6 @@ struct unix_funcs
double
(
CDECL
*
ldexp
)(
double
x
,
int
exp
);
double
(
CDECL
*
lgamma
)(
double
x
);
float
(
CDECL
*
lgammaf
)(
float
x
);
__int64
(
CDECL
*
llrintf
)(
float
x
);
double
(
CDECL
*
log
)(
double
x
);
float
(
CDECL
*
logf
)(
float
x
);
double
(
CDECL
*
log10
)(
double
x
);
...
...
include/config.h.in
View file @
0cdc52c6
...
...
@@ -453,9 +453,6 @@
/* Define to 1 if you have the <linux/videodev2.h> header file. */
#undef HAVE_LINUX_VIDEODEV2_H
/* Define to 1 if you have the `llrintf' function. */
#undef HAVE_LLRINTF
/* 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