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
09006678
Commit
09006678
authored
Apr 03, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Use the trunc()/truncf() implementation from the bundled musl library.
parent
15b50e98
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
44 deletions
+0
-44
math.c
dlls/msvcrt/math.c
+0
-44
No files found.
dlls/msvcrt/math.c
View file @
09006678
...
...
@@ -8483,50 +8483,6 @@ __int64 CDECL llroundf(float x)
}
/*********************************************************************
* trunc (MSVCR120.@)
*
* Copied from musl: src/math/trunc.c
*/
double
CDECL
trunc
(
double
x
)
{
union
{
double
f
;
UINT64
i
;}
u
=
{
x
};
int
e
=
(
u
.
i
>>
52
&
0x7ff
)
-
0x3ff
+
12
;
UINT64
m
;
if
(
e
>=
52
+
12
)
return
x
;
if
(
e
<
12
)
e
=
1
;
m
=
-
1ULL
>>
e
;
if
((
u
.
i
&
m
)
==
0
)
return
x
;
u
.
i
&=
~
m
;
return
u
.
f
;
}
/*********************************************************************
* truncf (MSVCR120.@)
*
* Copied from musl: src/math/truncf.c
*/
float
CDECL
truncf
(
float
x
)
{
union
{
float
f
;
UINT32
i
;}
u
=
{
x
};
int
e
=
(
u
.
i
>>
23
&
0xff
)
-
0x7f
+
9
;
UINT32
m
;
if
(
e
>=
23
+
9
)
return
x
;
if
(
e
<
9
)
e
=
1
;
m
=
-
1U
>>
e
;
if
((
u
.
i
&
m
)
==
0
)
return
x
;
u
.
i
&=
~
m
;
return
u
.
f
;
}
/*********************************************************************
* _dtest (MSVCR120.@)
*/
short
CDECL
_dtest
(
double
*
x
)
...
...
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