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
fd0c03c6
Commit
fd0c03c6
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 feclearexcept.
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
5fd51250
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
41 additions
and
6 deletions
+41
-6
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
+24
-2
msvcr120_app.spec
dlls/msvcr120_app/msvcr120_app.spec
+1
-1
math.c
dlls/msvcrt/math.c
+12
-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 @
fd0c03c6
...
@@ -87,7 +87,7 @@
...
@@ -87,7 +87,7 @@
@ cdecl _wsystem(wstr) ucrtbase._wsystem
@ cdecl _wsystem(wstr) ucrtbase._wsystem
@ cdecl abort() ucrtbase.abort
@ cdecl abort() ucrtbase.abort
@ cdecl exit(long) ucrtbase.exit
@ cdecl exit(long) ucrtbase.exit
@
stub
feclearexcept
@
cdecl feclearexcept(long) ucrtbase.
feclearexcept
@ cdecl fegetenv(ptr) ucrtbase.fegetenv
@ cdecl fegetenv(ptr) ucrtbase.fegetenv
@ stub fegetexceptflag
@ stub fegetexceptflag
@ cdecl fegetround() ucrtbase.fegetround
@ cdecl fegetround() ucrtbase.fegetround
...
...
dlls/msvcr120/msvcr120.spec
View file @
fd0c03c6
...
@@ -2143,7 +2143,7 @@
...
@@ -2143,7 +2143,7 @@
@ cdecl fdim(double double)
@ cdecl fdim(double double)
@ cdecl fdimf(float float)
@ cdecl fdimf(float float)
@ cdecl fdiml(double double) fdim
@ cdecl fdiml(double double) fdim
@
stub feclearexcept
@
cdecl feclearexcept(long)
@ cdecl fegetenv(ptr)
@ cdecl fegetenv(ptr)
@ stub fegetexceptflag
@ stub fegetexceptflag
@ cdecl fegetround()
@ cdecl fegetround()
...
...
dlls/msvcr120/tests/msvcr120.c
View file @
fd0c03c6
...
@@ -184,6 +184,7 @@ static int (CDECL *p_fegetround)(void);
...
@@ -184,6 +184,7 @@ static int (CDECL *p_fegetround)(void);
static
int
(
CDECL
*
p_fesetround
)(
int
);
static
int
(
CDECL
*
p_fesetround
)(
int
);
static
int
(
CDECL
*
p_fesetexceptflag
)(
const
fexcept_t
*
,
int
);
static
int
(
CDECL
*
p_fesetexceptflag
)(
const
fexcept_t
*
,
int
);
static
int
(
CDECL
*
p_fetestexcept
)(
int
);
static
int
(
CDECL
*
p_fetestexcept
)(
int
);
static
int
(
CDECL
*
p_feclearexcept
)(
int
);
static
int
(
CDECL
*
p__clearfp
)(
void
);
static
int
(
CDECL
*
p__clearfp
)(
void
);
static
_locale_t
(
__cdecl
*
p_wcreate_locale
)(
int
,
const
wchar_t
*
);
static
_locale_t
(
__cdecl
*
p_wcreate_locale
)(
int
,
const
wchar_t
*
);
static
void
(
__cdecl
*
p_free_locale
)(
_locale_t
);
static
void
(
__cdecl
*
p_free_locale
)(
_locale_t
);
...
@@ -261,6 +262,7 @@ static BOOL init(void)
...
@@ -261,6 +262,7 @@ static BOOL init(void)
SET
(
p_fesetround
,
"fesetround"
);
SET
(
p_fesetround
,
"fesetround"
);
SET
(
p_fesetexceptflag
,
"fesetexceptflag"
);
SET
(
p_fesetexceptflag
,
"fesetexceptflag"
);
SET
(
p_fetestexcept
,
"fetestexcept"
);
SET
(
p_fetestexcept
,
"fetestexcept"
);
SET
(
p_feclearexcept
,
"feclearexcept"
);
SET
(
p__clearfp
,
"_clearfp"
);
SET
(
p__clearfp
,
"_clearfp"
);
SET
(
p_vsscanf
,
"vsscanf"
);
SET
(
p_vsscanf
,
"vsscanf"
);
...
@@ -854,6 +856,11 @@ static void test_feenv(void)
...
@@ -854,6 +856,11 @@ static void test_feenv(void)
except
=
p_fetestexcept
(
FE_ALL_EXCEPT
);
except
=
p_fetestexcept
(
FE_ALL_EXCEPT
);
ok
(
except
==
(
FE_INEXACT
|
FE_UNDERFLOW
),
"expected %x, got %lx
\n
"
,
FE_INEXACT
|
FE_UNDERFLOW
,
except
);
ok
(
except
==
(
FE_INEXACT
|
FE_UNDERFLOW
),
"expected %x, got %lx
\n
"
,
FE_INEXACT
|
FE_UNDERFLOW
,
except
);
ret
=
p_feclearexcept
(
~
FE_ALL_EXCEPT
);
ok
(
!
ret
,
"feclearexceptflag returned %x
\n
"
,
ret
);
except
=
p_fetestexcept
(
FE_ALL_EXCEPT
);
ok
(
except
==
(
FE_INEXACT
|
FE_UNDERFLOW
),
"expected %x, got %lx
\n
"
,
FE_INEXACT
|
FE_UNDERFLOW
,
except
);
/* no crash, but no-op */
/* no crash, but no-op */
ret
=
p_fesetexceptflag
(
NULL
,
0
);
ret
=
p_fesetexceptflag
(
NULL
,
0
);
ok
(
!
ret
,
"fesetexceptflag returned %x
\n
"
,
ret
);
ok
(
!
ret
,
"fesetexceptflag returned %x
\n
"
,
ret
);
...
@@ -885,7 +892,18 @@ static void test_feenv(void)
...
@@ -885,7 +892,18 @@ static void test_feenv(void)
ok
(
ret
==
flags
,
"Test %d: expected %x, got %x
\n
"
,
i
,
flags
,
ret
);
ok
(
ret
==
flags
,
"Test %d: expected %x, got %x
\n
"
,
i
,
flags
,
ret
);
}
}
p__clearfp
();
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
tests
);
i
++
)
{
ret
=
p_feclearexcept
(
tests
[
i
]);
ok
(
!
ret
,
"Test %d: feclearexceptflag returned %x
\n
"
,
i
,
ret
);
flags
&=
~
tests
[
i
];
except
=
p_fetestexcept
(
tests
[
i
]);
ok
(
!
except
,
"Test %d: expected %x, got %lx
\n
"
,
i
,
flags
,
except
);
}
except
=
p_fetestexcept
(
FE_ALL_EXCEPT
);
ok
(
!
except
,
"expected 0, got %lx
\n
"
,
except
);
/* setting bits with except */
/* setting bits with except */
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
tests
);
i
++
)
{
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
tests
);
i
++
)
{
except
=
tests
[
i
];
except
=
tests
[
i
];
...
@@ -909,7 +927,11 @@ static void test_feenv(void)
...
@@ -909,7 +927,11 @@ static void test_feenv(void)
ret
=
p_fetestexcept
(
tests2
[
i
].
get
);
ret
=
p_fetestexcept
(
tests2
[
i
].
get
);
ok
(
ret
==
tests2
[
i
].
expect
,
"Test %d: expected %lx, got %x
\n
"
,
i
,
tests2
[
i
].
expect
,
ret
);
ok
(
ret
==
tests2
[
i
].
expect
,
"Test %d: expected %lx, got %x
\n
"
,
i
,
tests2
[
i
].
expect
,
ret
);
}
}
p__clearfp
();
ret
=
p_feclearexcept
(
FE_ALL_EXCEPT
);
ok
(
!
ret
,
"feclearexceptflag returned %x
\n
"
,
ret
);
except
=
p_fetestexcept
(
FE_ALL_EXCEPT
);
ok
(
!
except
,
"expected 0, got %lx
\n
"
,
except
);
}
}
static
void
test__wcreate_locale
(
void
)
static
void
test__wcreate_locale
(
void
)
...
...
dlls/msvcr120_app/msvcr120_app.spec
View file @
fd0c03c6
...
@@ -1809,7 +1809,7 @@
...
@@ -1809,7 +1809,7 @@
@ cdecl fdim(double double) msvcr120.fdim
@ cdecl fdim(double double) msvcr120.fdim
@ cdecl fdimf(float float) msvcr120.fdimf
@ cdecl fdimf(float float) msvcr120.fdimf
@ cdecl fdiml(double double) msvcr120.fdiml
@ cdecl fdiml(double double) msvcr120.fdiml
@
stub
feclearexcept
@
cdecl feclearexcept(long) msvcr120.
feclearexcept
@ cdecl fegetenv(ptr) msvcr120.fegetenv
@ cdecl fegetenv(ptr) msvcr120.fegetenv
@ stub fegetexceptflag
@ stub fegetexceptflag
@ cdecl fegetround() msvcr120.fegetround
@ cdecl fegetround() msvcr120.fegetround
...
...
dlls/msvcrt/math.c
View file @
fd0c03c6
...
@@ -2239,6 +2239,18 @@ int CDECL fesetexceptflag(const fexcept_t *status, int excepts)
...
@@ -2239,6 +2239,18 @@ int CDECL fesetexceptflag(const fexcept_t *status, int excepts)
env
.
_Fe_stat
|=
(
*
status
&
excepts
);
env
.
_Fe_stat
|=
(
*
status
&
excepts
);
return
fesetenv
(
&
env
);
return
fesetenv
(
&
env
);
}
}
/*********************************************************************
* feclearexcept (MSVCR120.@)
*/
int
CDECL
feclearexcept
(
int
flags
)
{
fenv_t
env
;
fegetenv
(
&
env
);
env
.
_Fe_stat
&=
~
(
flags
&
FE_ALL_EXCEPT
);
return
fesetenv
(
&
env
);
}
#endif
#endif
#if _MSVCR_VER>=140
#if _MSVCR_VER>=140
...
...
dlls/ucrtbase/ucrtbase.spec
View file @
fd0c03c6
...
@@ -2286,7 +2286,7 @@
...
@@ -2286,7 +2286,7 @@
@ cdecl fdim(double double)
@ cdecl fdim(double double)
@ cdecl fdimf(float float)
@ cdecl fdimf(float float)
@ cdecl fdiml(double double) fdim
@ cdecl fdiml(double double) fdim
@
stub feclearexcept
@
cdecl feclearexcept(long)
@ cdecl fegetenv(ptr)
@ cdecl fegetenv(ptr)
@ stub fegetexceptflag
@ stub fegetexceptflag
@ cdecl fegetround()
@ cdecl fegetround()
...
...
include/msvcrt/fenv.h
View file @
fd0c03c6
...
@@ -37,6 +37,7 @@ _ACRTIMP int __cdecl fesetenv(const fenv_t*);
...
@@ -37,6 +37,7 @@ _ACRTIMP int __cdecl fesetenv(const fenv_t*);
_ACRTIMP
int
__cdecl
fegetround
(
void
);
_ACRTIMP
int
__cdecl
fegetround
(
void
);
_ACRTIMP
int
__cdecl
fesetround
(
int
);
_ACRTIMP
int
__cdecl
fesetround
(
int
);
_ACRTIMP
int
__cdecl
fesetexceptflag
(
const
fexcept_t
*
,
int
);
_ACRTIMP
int
__cdecl
fesetexceptflag
(
const
fexcept_t
*
,
int
);
_ACRTIMP
int
__cdecl
feclearexcept
(
int
);
_ACRTIMP
int
__cdecl
fetestexcept
(
int
);
_ACRTIMP
int
__cdecl
fetestexcept
(
int
);
#ifdef __cplusplus
#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