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
3b1e2a7b
Commit
3b1e2a7b
authored
Mar 31, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Use the remainder()/remainderf() implementation from the bundled musl library.
parent
64eed89a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
16 deletions
+14
-16
msvcr120.spec
dlls/msvcr120/msvcr120.spec
+3
-3
math.c
dlls/msvcrt/math.c
+11
-13
No files found.
dlls/msvcr120/msvcr120.spec
View file @
3b1e2a7b
...
...
@@ -2325,9 +2325,9 @@
@ cdecl rand()
@ cdecl rand_s(ptr)
@ cdecl realloc(ptr long)
@ cdecl remainder(double double)
@ cdecl remainderf(float float)
@ cdecl remainderl(double double) remainder
@ cdecl remainder(double double)
MSVCRT_remainder
@ cdecl remainderf(float float)
MSVCRT_remainderf
@ cdecl remainderl(double double)
MSVCRT_
remainder
@ cdecl remove(str)
@ cdecl remquo(double double ptr)
@ cdecl remquof(float float ptr)
...
...
dlls/msvcrt/math.c
View file @
3b1e2a7b
...
...
@@ -3350,36 +3350,34 @@ float CDECL _scalbf(float num, __msvcrt_long power)
return
ldexp
(
num
,
power
);
}
#if _MSVCR_VER
>=120
#if _MSVCR_VER
== 120
/* other versions call remainder() directly */
/*********************************************************************
* remainder (MSVCR120.@)
*
* Copied from musl: src/math/remainder.c
*/
double
CDECL
remainder
(
double
x
,
double
y
)
double
CDECL
MSVCRT_
remainder
(
double
x
,
double
y
)
{
int
q
;
#if _MSVCR_VER == 120 && defined(__x86_64__)
#ifdef __x86_64__
if
(
isnan
(
x
)
||
isnan
(
y
))
*
_errno
()
=
EDOM
;
#endif
return
rem
quo
(
x
,
y
,
&
q
);
return
rem
ainder
(
x
,
y
);
}
/*********************************************************************
* remainderf (MSVCR120.@)
*
* Copied from musl: src/math/remainderf.c
*/
float
CDECL
remainderf
(
float
x
,
float
y
)
float
CDECL
MSVCRT_
remainderf
(
float
x
,
float
y
)
{
int
q
;
#if _MSVCR_VER == 120 && defined(__x86_64__)
#ifdef __x86_64__
if
(
isnan
(
x
)
||
isnan
(
y
))
*
_errno
()
=
EDOM
;
#endif
return
rem
quof
(
x
,
y
,
&
q
);
return
rem
ainderf
(
x
,
y
);
}
#endif
/* _MSVCR_VER == 120 */
#if _MSVCR_VER>=120
/*********************************************************************
* _except1 (MSVCR120.@)
* TODO:
...
...
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