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
b9b19ea2
Commit
b9b19ea2
authored
Apr 03, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Use the __rem_pio2()/__rem_pio2f() implementation from the bundled musl library.
parent
8252be56
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
2 deletions
+2
-2
math.c
dlls/msvcrt/math.c
+0
-0
__rem_pio2.c
libs/musl/src/math/__rem_pio2.c
+1
-1
__rem_pio2f.c
libs/musl/src/math/__rem_pio2f.c
+1
-1
No files found.
dlls/msvcrt/math.c
View file @
b9b19ea2
This diff is collapsed.
Click to expand it.
libs/musl/src/math/__rem_pio2.c
View file @
b9b19ea2
...
...
@@ -119,7 +119,7 @@ int __rem_pio2(double x, double *y)
if
(
ix
<
0x413921fb
)
{
/* |x| ~< 2^20*(pi/2), medium size */
medium:
/* rint(x/(pi/2)) */
fn
=
(
double_t
)
x
*
invpio2
+
toint
-
toint
;
fn
=
rint
(
x
*
invpio2
)
;
n
=
(
int32_t
)
fn
;
r
=
x
-
fn
*
pio2_1
;
w
=
fn
*
pio2_1t
;
/* 1st round, good to 85 bits */
...
...
libs/musl/src/math/__rem_pio2f.c
View file @
b9b19ea2
...
...
@@ -52,7 +52,7 @@ int __rem_pio2f(float x, double *y)
/* 25+53 bit pi is good enough for medium size */
if
(
ix
<
0x4dc90fdb
)
{
/* |x| ~< 2^28*(pi/2), medium size */
/* Use a specialized rint() to get fn. */
fn
=
(
double_t
)
x
*
invpio2
+
toint
-
toint
;
fn
=
fp_barrier
(
x
*
invpio2
+
toint
)
-
toint
;
n
=
(
int32_t
)
fn
;
*
y
=
x
-
fn
*
pio2_1
-
fn
*
pio2_1t
;
/* Matters with directed rounding. */
...
...
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