diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/complex/cacosf.c | 4 | ||||
| -rw-r--r-- | src/complex/catanf.c | 4 | 
2 files changed, 6 insertions, 2 deletions
diff --git a/src/complex/cacosf.c b/src/complex/cacosf.c index 2e048540..ed8acf0f 100644 --- a/src/complex/cacosf.c +++ b/src/complex/cacosf.c @@ -2,8 +2,10 @@  // FIXME +static const float float_pi_2 = M_PI_2; +  float complex cacosf(float complex z)  {  	z = casinf(z); -	return CMPLXF((float)M_PI_2 - crealf(z), -cimagf(z)); +	return CMPLXF(float_pi_2 - crealf(z), -cimagf(z));  } diff --git a/src/complex/catanf.c b/src/complex/catanf.c index ef3907a5..1d569f2d 100644 --- a/src/complex/catanf.c +++ b/src/complex/catanf.c @@ -61,13 +61,15 @@ static const double DP1 = 3.140625;  static const double DP2 = 9.67502593994140625E-4;  static const double DP3 = 1.509957990978376432E-7; +static const float float_pi = M_PI; +  static float _redupif(float xx)  {  	float x, t;  	long i;  	x = xx; -	t = x/(float)M_PI; +	t = x/float_pi;  	if (t >= 0.0f)  		t += 0.5f;  	else  | 
