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
b22faf3d
Commit
b22faf3d
authored
Jun 12, 2018
by
Piotr Caban
Committed by
Alexandre Julliard
Jun 13, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcr100: Fix lldiv implementation.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
48a7d4d0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
math.c
dlls/msvcrt/math.c
+4
-5
misc.c
dlls/ucrtbase/tests/misc.c
+2
-2
No files found.
dlls/msvcrt/math.c
View file @
b22faf3d
...
...
@@ -1938,12 +1938,11 @@ MSVCRT_ldiv_t CDECL MSVCRT_ldiv(MSVCRT_long num, MSVCRT_long denom)
/*********************************************************************
* lldiv (MSVCR100.@)
*/
MSVCRT_lldiv_t
CDECL
MSVCRT_lldiv
(
MSVCRT_longlong
num
,
MSVCRT_longlong
denom
)
MSVCRT_lldiv_t
*
CDECL
MSVCRT_lldiv
(
MSVCRT_lldiv_t
*
ret
,
MSVCRT_longlong
num
,
MSVCRT_longlong
denom
)
{
MSVCRT_lldiv_t
ret
;
ret
.
quot
=
num
/
denom
;
ret
.
rem
=
num
%
denom
;
ret
->
quot
=
num
/
denom
;
ret
->
rem
=
num
%
denom
;
return
ret
;
}
...
...
dlls/ucrtbase/tests/misc.c
View file @
b22faf3d
...
...
@@ -114,7 +114,7 @@ static int (CDECL *p__ltoa_s)(LONG, char*, size_t, int);
static
char
*
(
CDECL
*
p__get_narrow_winmain_command_line
)(
void
);
static
int
(
CDECL
*
p_sopen_dispatch
)(
const
char
*
,
int
,
int
,
int
,
int
*
,
int
);
static
int
(
CDECL
*
p_sopen_s
)(
int
*
,
const
char
*
,
int
,
int
,
int
);
static
MSVCRT_lldiv_t
(
CDECL
*
p_lldiv
)(
LONGLONG
,
LONGLONG
);
static
MSVCRT_lldiv_t
*
(
CDECL
*
p_lldiv
)(
MSVCRT_lldiv_t
*
,
LONGLONG
,
LONGLONG
);
static
int
(
CDECL
*
p__isctype
)(
int
,
int
);
static
int
(
CDECL
*
p_isblank
)(
int
);
static
int
(
CDECL
*
p__isblank_l
)(
int
,
_locale_t
);
...
...
@@ -504,7 +504,7 @@ static void test_lldiv(void)
{
MSVCRT_lldiv_t
r
;
r
=
p_lldiv
(
(
LONGLONG
)
0x111
<<
32
|
0x222
,
(
LONGLONG
)
1
<<
32
);
p_lldiv
(
&
r
,
(
LONGLONG
)
0x111
<<
32
|
0x222
,
(
LONGLONG
)
1
<<
32
);
ok
(
r
.
quot
==
0x111
,
"quot = %s
\n
"
,
wine_dbgstr_longlong
(
r
.
quot
));
ok
(
r
.
rem
==
0x222
,
"rem = %s
\n
"
,
wine_dbgstr_longlong
(
r
.
rem
));
}
...
...
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