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
e495e25a
Commit
e495e25a
authored
Jul 12, 2017
by
Piotr Caban
Committed by
Alexandre Julliard
Jul 13, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcr120: Add fallback implementation of erf function.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ddff85a3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
math.c
dlls/msvcrt/math.c
+9
-2
No files found.
dlls/msvcrt/math.c
View file @
e495e25a
...
...
@@ -2740,8 +2740,15 @@ double CDECL MSVCR120_erf(double x)
#ifdef HAVE_ERF
return
erf
(
x
);
#else
FIXME
(
"not implemented
\n
"
);
return
0
.
0
;
/* Abramowitz and Stegun approximation, maximum error: 1.5*10^-7 */
double
t
,
y
;
int
sign
=
signbit
(
x
);
if
(
sign
)
x
=
-
x
;
t
=
1
/
(
1
+
0
.
3275911
*
x
);
y
=
((((
1
.
06140542
9
*
t
-
1
.
453152027
)
*
t
+
1
.
421413741
)
*
t
-
0
.
284496736
)
*
t
+
0
.
254829592
)
*
t
;
y
=
1
.
0
-
y
*
exp
(
-
x
*
x
);
return
sign
?
-
y
:
y
;
#endif
}
...
...
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