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
be147a80
Commit
be147a80
authored
Apr 03, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Use the frexp()/frexpf() implementation from the bundled musl library.
parent
b7228259
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
52 deletions
+0
-52
math.c
dlls/msvcrt/math.c
+0
-52
No files found.
dlls/msvcrt/math.c
View file @
be147a80
...
...
@@ -2010,32 +2010,6 @@ float CDECL floorf( float x )
}
/*********************************************************************
* frexpf (MSVCRT.@)
*
* Copied from musl: src/math/frexpf.c
*/
float
CDECL
frexpf
(
float
x
,
int
*
e
)
{
UINT32
ux
=
*
(
UINT32
*
)
&
x
;
int
ee
=
ux
>>
23
&
0xff
;
if
(
!
ee
)
{
if
(
x
)
{
x
=
frexpf
(
x
*
0x1
p64
,
e
);
*
e
-=
64
;
}
else
*
e
=
0
;
return
x
;
}
else
if
(
ee
==
0xff
)
{
return
x
;
}
*
e
=
ee
-
0x7e
;
ux
&=
0x807ffffful
;
ux
|=
0x3f000000ul
;
return
*
(
float
*
)
&
ux
;
}
/*********************************************************************
* modff (MSVCRT.@)
*
* Copied from musl: src/math/modff.c
...
...
@@ -5080,32 +5054,6 @@ float CDECL fmaf( float x, float y, float z )
}
/*********************************************************************
* frexp (MSVCRT.@)
*
* Copied from musl: src/math/frexp.c
*/
double
CDECL
frexp
(
double
x
,
int
*
e
)
{
UINT64
ux
=
*
(
UINT64
*
)
&
x
;
int
ee
=
ux
>>
52
&
0x7ff
;
if
(
!
ee
)
{
if
(
x
)
{
x
=
frexp
(
x
*
0x1
p64
,
e
);
*
e
-=
64
;
}
else
*
e
=
0
;
return
x
;
}
else
if
(
ee
==
0x7ff
)
{
return
x
;
}
*
e
=
ee
-
0x3fe
;
ux
&=
0x800fffffffffffffull
;
ux
|=
0x3fe0000000000000ull
;
return
*
(
double
*
)
&
ux
;
}
/*********************************************************************
* modf (MSVCRT.@)
*
* Copied from musl: src/math/modf.c
...
...
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