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
45586c57
Commit
45586c57
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 llrint using rint function.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
aa224816
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 @
45586c57
...
...
@@ -19636,7 +19636,6 @@ for ac_func in \
fmaf
\
lgamma
\
lgammaf
\
llrint
\
llrintf
\
log1p
\
log1pf
\
...
...
configure.ac
View file @
45586c57
...
...
@@ -2676,7 +2676,6 @@ AC_CHECK_FUNCS(\
fmaf \
lgamma \
lgammaf \
llrint \
llrintf \
log1p \
log1pf \
...
...
dlls/msvcrt/math.c
View file @
45586c57
...
...
@@ -4372,7 +4372,15 @@ __msvcrt_long CDECL lrintf(float x)
*/
__int64
CDECL
llrint
(
double
x
)
{
return
unix_funcs
->
llrint
(
x
);
double
d
;
d
=
rint
(
x
);
if
((
d
<
0
&&
d
!=
(
double
)(
__int64
)
d
)
||
(
d
>=
0
&&
d
!=
(
double
)(
unsigned
__int64
)
d
))
{
*
_errno
()
=
EDOM
;
return
0
;
}
return
d
;
}
/*********************************************************************
...
...
dlls/msvcrt/unixlib.c
View file @
45586c57
...
...
@@ -436,18 +436,6 @@ static float CDECL unix_lgammaf(float x)
}
/*********************************************************************
* llrint
*/
static
__int64
CDECL
unix_llrint
(
double
x
)
{
#ifdef HAVE_LLRINT
return
llrint
(
x
);
#else
return
x
>=
0
?
floor
(
x
+
0
.
5
)
:
ceil
(
x
-
0
.
5
);
#endif
}
/*********************************************************************
* llrintf
*/
static
__int64
CDECL
unix_llrintf
(
float
x
)
...
...
@@ -858,7 +846,6 @@ static const struct unix_funcs funcs =
unix_ldexp
,
unix_lgamma
,
unix_lgammaf
,
unix_llrint
,
unix_llrintf
,
unix_log
,
unix_logf
,
...
...
dlls/msvcrt/unixlib.h
View file @
45586c57
...
...
@@ -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
*
llrint
)(
double
x
);
__int64
(
CDECL
*
llrintf
)(
float
x
);
double
(
CDECL
*
log
)(
double
x
);
float
(
CDECL
*
logf
)(
float
x
);
...
...
include/config.h.in
View file @
45586c57
...
...
@@ -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 `llrint' function. */
#undef HAVE_LLRINT
/* Define to 1 if you have the `llrintf' function. */
#undef HAVE_LLRINTF
...
...
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