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
bbc8c347
Commit
bbc8c347
authored
Apr 03, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Use the __expo2()/__expo2f() implementation from the bundled musl library.
parent
c53bd233
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
19 deletions
+2
-19
math.c
dlls/msvcrt/math.c
+2
-19
No files found.
dlls/msvcrt/math.c
View file @
bbc8c347
...
...
@@ -983,16 +983,7 @@ float CDECL cosf( float x )
}
}
/* Copied from musl: src/math/__expo2f.c */
static
float
__expo2f
(
float
x
,
float
sign
)
{
static
const
int
k
=
235
;
static
const
float
kln2
=
0x1
.
45
c778p
+
7
f
;
float
scale
;
*
(
UINT32
*
)
&
scale
=
(
UINT32
)(
0x7f
+
k
/
2
)
<<
23
;
return
expf
(
x
-
kln2
)
*
(
sign
*
scale
)
*
scale
;
}
extern
float
__expo2f
(
float
x
,
float
sign
);
/*********************************************************************
* coshf (MSVCRT.@)
...
...
@@ -2237,15 +2228,7 @@ double CDECL cos( double x )
}
}
static
double
__expo2
(
double
x
,
double
sign
)
{
static
const
int
k
=
2043
;
static
const
double
kln2
=
0x1
.
62066151
add8bp
+
10
;
double
scale
;
*
(
UINT64
*
)
&
scale
=
(
UINT64
)(
0x3ff
+
k
/
2
)
<<
52
;
return
exp
(
x
-
kln2
)
*
(
sign
*
scale
)
*
scale
;
}
extern
double
__expo2
(
double
x
,
double
sign
);
/*********************************************************************
* cosh (MSVCRT.@)
...
...
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