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
7981ab4f
Commit
7981ab4f
authored
Mar 11, 2021
by
Daniel Lehman
Committed by
Alexandre Julliard
Mar 12, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcr120: Add fetestexcept.
Signed-off-by:
Daniel Lehman
<
dlehman25@gmail.com
>
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
272d35af
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
45 additions
and
5 deletions
+45
-5
api-ms-win-crt-runtime-l1-1-0.spec
...win-crt-runtime-l1-1-0/api-ms-win-crt-runtime-l1-1-0.spec
+1
-1
msvcr120.spec
dlls/msvcr120/msvcr120.spec
+1
-1
msvcr120.c
dlls/msvcr120/tests/msvcr120.c
+32
-1
msvcr120_app.spec
dlls/msvcr120_app/msvcr120_app.spec
+1
-1
math.c
dlls/msvcrt/math.c
+8
-0
ucrtbase.spec
dlls/ucrtbase/ucrtbase.spec
+1
-1
fenv.h
include/msvcrt/fenv.h
+1
-0
No files found.
dlls/api-ms-win-crt-runtime-l1-1-0/api-ms-win-crt-runtime-l1-1-0.spec
View file @
7981ab4f
...
...
@@ -95,7 +95,7 @@
@ cdecl fesetenv(ptr) ucrtbase.fesetenv
@ stub fesetexceptflag
@ cdecl fesetround(long) ucrtbase.fesetround
@
stub
fetestexcept
@
cdecl fetestexcept(long) ucrtbase.
fetestexcept
@ cdecl perror(str) ucrtbase.perror
@ cdecl quick_exit(long) ucrtbase.quick_exit
@ cdecl raise(long) ucrtbase.raise
...
...
dlls/msvcr120/msvcr120.spec
View file @
7981ab4f
...
...
@@ -2154,7 +2154,7 @@
@ cdecl fesetenv(ptr)
@ stub fesetexceptflag
@ cdecl fesetround(long)
@
stub fetestexcept
@
cdecl fetestexcept(long)
@ stub feupdateenv
@ cdecl fflush(ptr)
@ cdecl fgetc(ptr)
...
...
dlls/msvcr120/tests/msvcr120.c
View file @
7981ab4f
...
...
@@ -182,6 +182,7 @@ static int (CDECL *p_fegetenv)(fenv_t*);
static
int
(
CDECL
*
p_fesetenv
)(
const
fenv_t
*
);
static
int
(
CDECL
*
p_fegetround
)(
void
);
static
int
(
CDECL
*
p_fesetround
)(
int
);
static
int
(
CDECL
*
p_fetestexcept
)(
int
);
static
int
(
CDECL
*
p__clearfp
)(
void
);
static
_locale_t
(
__cdecl
*
p_wcreate_locale
)(
int
,
const
wchar_t
*
);
static
void
(
__cdecl
*
p_free_locale
)(
_locale_t
);
...
...
@@ -257,6 +258,7 @@ static BOOL init(void)
SET
(
p_fesetenv
,
"fesetenv"
);
SET
(
p_fegetround
,
"fegetround"
);
SET
(
p_fesetround
,
"fesetround"
);
SET
(
p_fetestexcept
,
"fetestexcept"
);
SET
(
p__clearfp
,
"_clearfp"
);
SET
(
p_vsscanf
,
"vsscanf"
);
...
...
@@ -788,8 +790,17 @@ static void test_critical_section(void)
static
void
test_feenv
(
void
)
{
static
const
int
tests
[]
=
{
0
,
FE_INEXACT
,
FE_UNDERFLOW
,
FE_OVERFLOW
,
FE_DIVBYZERO
,
FE_INVALID
,
FE_ALL_EXCEPT
,
};
fenv_t
env
,
env2
;
int
ret
;
int
i
,
ret
,
flags
;
p__clearfp
();
...
...
@@ -807,6 +818,26 @@ static void test_feenv(void)
ok
(
!
ret
,
"fesetenv returned %x
\n
"
,
ret
);
ret
=
p_fegetround
();
ok
(
ret
==
FE_TONEAREST
,
"Got unexpected round mode %#x.
\n
"
,
ret
);
ret
=
p_fetestexcept
(
FE_ALL_EXCEPT
);
ok
(
!
ret
,
"fetestexcept returned %x
\n
"
,
ret
);
flags
=
0
;
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
tests
);
i
++
)
{
ret
=
p_fegetenv
(
&
env
);
ok
(
!
ret
,
"Test %d: fegetenv returned %x
\n
"
,
i
,
ret
);
env
.
_Fe_stat
|=
tests
[
i
];
ret
=
p_fesetenv
(
&
env
);
ok
(
!
ret
,
"Test %d: fesetenv returned %x
\n
"
,
i
,
ret
);
ret
=
p_fetestexcept
(
tests
[
i
]);
ok
(
ret
==
tests
[
i
],
"Test %d: expected %x, got %x
\n
"
,
i
,
tests
[
i
],
ret
);
flags
|=
tests
[
i
];
ret
=
p_fetestexcept
(
FE_ALL_EXCEPT
);
ok
(
ret
==
flags
,
"Test %d: expected %x, got %x
\n
"
,
i
,
flags
,
ret
);
}
p__clearfp
();
}
static
void
test__wcreate_locale
(
void
)
...
...
dlls/msvcr120_app/msvcr120_app.spec
View file @
7981ab4f
...
...
@@ -1820,7 +1820,7 @@
@ cdecl fesetenv(ptr) msvcr120.fesetenv
@ stub fesetexceptflag
@ cdecl fesetround(long) msvcr120.fesetround
@
stub
fetestexcept
@
cdecl fetestexcept(long) msvcr120.
fetestexcept
@ stub feupdateenv
@ cdecl fflush(ptr) msvcr120.fflush
@ cdecl fgetc(ptr) msvcr120.fgetc
...
...
dlls/msvcrt/math.c
View file @
7981ab4f
...
...
@@ -2214,6 +2214,14 @@ int CDECL fegetenv(fenv_t *env)
env
->
_Fe_stat
=
_statusfp
();
return
0
;
}
/*********************************************************************
* fetestexcept (MSVCR120.@)
*/
int
CDECL
fetestexcept
(
int
flags
)
{
return
_statusfp
()
&
flags
;
}
#endif
#if _MSVCR_VER>=140
...
...
dlls/ucrtbase/ucrtbase.spec
View file @
7981ab4f
...
...
@@ -2296,7 +2296,7 @@
@ cdecl fesetenv(ptr)
@ stub fesetexceptflag
@ cdecl fesetround(long)
@
stub fetestexcept
@
cdecl fetestexcept(long)
@ cdecl fflush(ptr)
@ cdecl fgetc(ptr)
@ cdecl fgetpos(ptr ptr)
...
...
include/msvcrt/fenv.h
View file @
7981ab4f
...
...
@@ -34,6 +34,7 @@ _ACRTIMP int __cdecl fegetenv(fenv_t*);
_ACRTIMP
int
__cdecl
fesetenv
(
const
fenv_t
*
);
_ACRTIMP
int
__cdecl
fegetround
(
void
);
_ACRTIMP
int
__cdecl
fesetround
(
int
);
_ACRTIMP
int
__cdecl
fetestexcept
(
int
);
#ifdef __cplusplus
}
...
...
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