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
16816672
Commit
16816672
authored
Sep 05, 2014
by
YongHao Hu
Committed by
Alexandre Julliard
Sep 08, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcp90: Improve complex_float_pow.
parent
e90b49e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
math.c
dlls/msvcp90/math.c
+10
-10
No files found.
dlls/msvcp90/math.c
View file @
16816672
...
...
@@ -1468,19 +1468,19 @@ complex_float* __cdecl complex_float_pow_cf(complex_float *ret, const complex_fl
complex_float
*
__cdecl
complex_float_pow_ci
(
complex_float
*
ret
,
const
complex_float
*
l
,
int
r
)
{
complex_float
c
=
*
l
;
complex_float
temp
=
{
1
.
0
,
0
};
complex_float_assign
(
ret
,
&
temp
);
complex_float
unit_value
=
{
1
.
0
,
0
};
complex_float_assign
(
ret
,
&
unit_value
);
if
(
r
<
0
)
{
r
=
-
r
;
complex_float_div
(
&
c
,
&
temp
,
l
);
complex_float_div
(
&
c
,
&
unit_value
,
l
);
}
for
(;
r
>
0
;
r
>>=
1
)
{
if
(
r
&
1
)
complex_float_mult_assign
(
ret
,
&
c
);
complex_float_assign
(
&
temp
,
&
c
);
complex_float_mult_assign
(
&
c
,
&
temp
);
if
(
r
!=
1
)
complex_float_mult_assign
(
&
c
,
&
c
);
}
return
ret
;
...
...
@@ -2190,19 +2190,19 @@ complex_double* __cdecl complex_double_pow_cd(complex_double *ret, const complex
complex_double
*
__cdecl
complex_double_pow_ci
(
complex_double
*
ret
,
const
complex_double
*
l
,
int
r
)
{
complex_double
c
=
*
l
;
complex_double
temp
=
{
1
.
0
,
0
};
complex_double_assign
(
ret
,
&
temp
);
complex_double
unit_value
=
{
1
.
0
,
0
};
complex_double_assign
(
ret
,
&
unit_value
);
if
(
r
<
0
)
{
r
=
-
r
;
complex_double_div
(
&
c
,
&
temp
,
l
);
complex_double_div
(
&
c
,
&
unit_value
,
l
);
}
for
(;
r
>
0
;
r
>>=
1
)
{
if
(
r
&
1
)
complex_double_mult_assign
(
ret
,
&
c
);
complex_double_assign
(
&
temp
,
&
c
);
complex_double_mult_assign
(
&
c
,
&
temp
);
if
(
r
!=
1
)
complex_double_mult_assign
(
&
c
,
&
c
);
}
return
ret
;
...
...
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