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
80eec636
Commit
80eec636
authored
Jan 19, 2022
by
Piotr Caban
Committed by
Alexandre Julliard
Jan 19, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Fix Pi constants while computing acosf.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
64c6deda
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
math.c
dlls/msvcrt/math.c
+3
-2
No files found.
dlls/msvcrt/math.c
View file @
80eec636
...
...
@@ -798,6 +798,7 @@ static float asinf_R(float z)
float
CDECL
acosf
(
float
x
)
{
static
const
double
pio2_lo
=
6.12323399573676603587e-17
;
static
const
double
pio2_hi
=
1.57079632679489655800e+00
;
float
z
,
w
,
s
,
c
,
df
;
unsigned
int
hx
,
ix
;
...
...
@@ -818,13 +819,13 @@ float CDECL acosf( float x )
if
(
ix
<
0x3f000000
)
{
if
(
ix
<=
0x32800000
)
/* |x| < 2**-26 */
return
M_PI_2
;
return
M_PI_2
-
(
x
-
(
pio2_lo
-
x
*
asinf_R
(
x
*
x
)));
return
pio2_hi
-
(
x
-
(
pio2_lo
-
x
*
asinf_R
(
x
*
x
)));
}
/* x < -0.5 */
if
(
hx
>>
31
)
{
z
=
(
1
+
x
)
*
0
.
5
f
;
s
=
sqrtf
(
z
);
return
M_PI
-
2
*
(
s
+
((
double
)
s
*
asinf_R
(
z
)));
return
2
*
(
pio2_hi
-
(
s
+
(
asinf_R
(
z
)
*
s
-
pio2_lo
)));
}
/* x > 0.5 */
z
=
(
1
-
x
)
*
0
.
5
f
;
...
...
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