Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
9008cd2f
Commit
9008cd2f
authored
Jun 21, 2021
by
Piotr Caban
Committed by
Alexandre Julliard
Jun 21, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Match native cosf results in -Pi/4 - Pi/4 range.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ee7b5ebc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
math.c
dlls/msvcrt/math.c
+9
-8
No files found.
dlls/msvcrt/math.c
View file @
9008cd2f
...
@@ -680,16 +680,17 @@ static float __sindf(double x)
...
@@ -680,16 +680,17 @@ static float __sindf(double x)
/* Copied from musl: src/math/__cosdf.c */
/* Copied from musl: src/math/__cosdf.c */
static
float
__cosdf
(
double
x
)
static
float
__cosdf
(
double
x
)
{
{
static
const
double
C0
=
-
0x1ffffffd0c5e81
.
0
p
-
54
,
static
const
double
C0
=
-
0x1
.
0000000000000
p
-
1
,
C1
=
0x155553e1053a42
.
0
p
-
57
,
C1
=
0x1
.
5555555555555
p
-
5
,
C2
=
-
0x16c087e80f1e27
.
0
p
-
62
,
C2
=
-
0x1
.
6
c16c16c16c17p
-
10
,
C3
=
0x199342e0ee5069
.
0
p
-
68
;
C3
=
0x1
.
a01a01a01a01ap
-
16
,
double
r
,
w
,
z
;
C4
=
-
0x1
.27e4
fb7789f5cp
-
22
;
double
z
;
z
=
x
*
x
;
z
=
x
*
x
;
w
=
z
*
z
;
if
(
x
>
-
7.8163146972656250e-03
&&
x
<
7.8163146972656250e-03
)
r
=
C2
+
z
*
C3
;
return
1
+
C0
*
z
;
return
((
1
.
0
+
z
*
C0
)
+
w
*
C1
)
+
(
w
*
z
)
*
r
;
return
1
.
0
+
z
*
(
C0
+
z
*
(
C1
+
z
*
(
C2
+
z
*
(
C3
+
z
*
C4
))))
;
}
}
static
const
UINT64
exp2f_T
[]
=
{
static
const
UINT64
exp2f_T
[]
=
{
...
...
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