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
5f395ee8
Commit
5f395ee8
authored
Dec 09, 2014
by
Martin Storsjo
Committed by
Alexandre Julliard
Dec 09, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcr120: Implement the _dclass/_fdclass/_ldclass functions.
parent
bb894833
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
51 additions
and
3 deletions
+51
-3
msvcr120.spec
dlls/msvcr120/msvcr120.spec
+3
-3
math.c
dlls/msvcrt/math.c
+41
-0
msvcrt.h
dlls/msvcrt/msvcrt.h
+7
-0
No files found.
dlls/msvcr120/msvcr120.spec
View file @
5f395ee8
...
...
@@ -1104,7 +1104,7 @@
@ varargs _cwscanf_s(wstr)
@ varargs _cwscanf_s_l(wstr ptr)
@ extern _daylight MSVCRT___daylight
@
stub
_dclass
@
cdecl _dclass(double) MSVCR120_
_dclass
@ cdecl _difftime32(long long) MSVCRT__difftime32
@ cdecl _difftime64(long long) MSVCRT__difftime64
@ stub _dosmaperr
...
...
@@ -1140,7 +1140,7 @@
@ cdecl _fcloseall() MSVCRT__fcloseall
@ cdecl _fcvt(double long ptr ptr) MSVCRT__fcvt
@ cdecl _fcvt_s(ptr long double long ptr ptr) MSVCRT__fcvt_s
@
stub
_fdclass
@
cdecl _fdclass(float) MSVCR120_
_fdclass
@ cdecl _fdopen(long str) MSVCRT__fdopen
@ stub _fdpcomp
@ stub _fdsign
...
...
@@ -1389,7 +1389,7 @@
@ cdecl _j1(double) MSVCRT__j1
@ cdecl _jn(long double) MSVCRT__jn
@ cdecl _kbhit()
@
stub
_ldclass
@
cdecl _ldclass(double) MSVCR120_
_ldclass
@ stub _ldpcomp
@ stub _ldsign
@ stub _ldtest
...
...
dlls/msvcrt/math.c
View file @
5f395ee8
...
...
@@ -2526,3 +2526,44 @@ LDOUBLE CDECL MSVCR120_truncl(LDOUBLE x)
{
return
MSVCR120_trunc
(
x
);
}
/*********************************************************************
* _dclass (MSVCR120.@)
*/
short
CDECL
MSVCR120__dclass
(
double
x
)
{
switch
(
MSVCRT__fpclass
(
x
))
{
case
MSVCRT__FPCLASS_QNAN
:
case
MSVCRT__FPCLASS_SNAN
:
return
MSVCRT_FP_NAN
;
case
MSVCRT__FPCLASS_NINF
:
case
MSVCRT__FPCLASS_PINF
:
return
MSVCRT_FP_INFINITE
;
case
MSVCRT__FPCLASS_ND
:
case
MSVCRT__FPCLASS_PD
:
return
MSVCRT_FP_SUBNORMAL
;
case
MSVCRT__FPCLASS_NN
:
case
MSVCRT__FPCLASS_PN
:
default:
return
MSVCRT_FP_NORMAL
;
case
MSVCRT__FPCLASS_NZ
:
case
MSVCRT__FPCLASS_PZ
:
return
MSVCRT_FP_ZERO
;
}
}
/*********************************************************************
* _fdclass (MSVCR120.@)
*/
short
CDECL
MSVCR120__fdclass
(
float
x
)
{
return
MSVCR120__dclass
(
x
);
}
/*********************************************************************
* _ldclass (MSVCR120.@)
*/
short
CDECL
MSVCR120__ldclass
(
LDOUBLE
x
)
{
return
MSVCR120__dclass
(
x
);
}
dlls/msvcrt/msvcrt.h
View file @
5f395ee8
...
...
@@ -824,6 +824,13 @@ struct MSVCRT__stat64 {
#define MSVCRT__FPCLASS_PN 0x0100
/* Positive Normal */
#define MSVCRT__FPCLASS_PINF 0x0200
/* Positive Infinity */
/* fpclassify constants */
#define MSVCRT_FP_INFINITE 1
#define MSVCRT_FP_NAN 2
#define MSVCRT_FP_NORMAL -1
#define MSVCRT_FP_SUBNORMAL -2
#define MSVCRT_FP_ZERO 0
#define MSVCRT__MCW_EM 0x0008001f
#define MSVCRT__MCW_IC 0x00040000
#define MSVCRT__MCW_RC 0x00000300
...
...
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