mirror of
https://github.com/reactos/reactos.git
synced 2025-02-20 15:35:04 +00:00
[GDIPLUS]
- Mark a ROS-Diff and fix MSVC warnings in it svn path=/trunk/; revision=69623
This commit is contained in:
parent
8fb79dfcc4
commit
0e6082f21e
1 changed files with 8 additions and 6 deletions
|
@ -18,18 +18,19 @@
|
|||
|
||||
#include "gdiplus_private.h"
|
||||
|
||||
#ifdef __REACTOS__
|
||||
/*
|
||||
Unix stuff
|
||||
Code from http://www.johndcook.com/blog/2009/01/19/stand-alone-error-function-erf/
|
||||
*/
|
||||
double erf(double x)
|
||||
{
|
||||
const float a1 = 0.254829592;
|
||||
const float a2 = -0.284496736;
|
||||
const float a3 = 1.421413741;
|
||||
const float a4 = -1.453152027;
|
||||
const float a5 = 1.061405429;
|
||||
const float p = 0.3275911;
|
||||
const float a1 = 0.254829592f;
|
||||
const float a2 = -0.284496736f;
|
||||
const float a3 = 1.421413741f;
|
||||
const float a4 = -1.453152027f;
|
||||
const float a5 = 1.061405429f;
|
||||
const float p = 0.3275911f;
|
||||
float t, y, sign;
|
||||
|
||||
/* Save the sign of x */
|
||||
|
@ -44,6 +45,7 @@ double erf(double x)
|
|||
|
||||
return sign*y;
|
||||
}
|
||||
#endif
|
||||
|
||||
/******************************************************************************
|
||||
* GdipCloneBrush [GDIPLUS.@]
|
||||
|
|
Loading…
Reference in a new issue