28#if !defined(_SPANDSP_ARCTAN2_H_) 
   29#define _SPANDSP_ARCTAN2_H_ 
   41#if defined(__cplusplus) 
   47static __inline__ int32_t arctan2(
float y, 
float x)
 
   69        angle = 3.0f - (x + abs_y)/(abs_y - x);
 
   71        angle = 1.0f - (x - abs_y)/(abs_y + x);
 
   72    angle *= 536870912.0f;
 
   78    return (int32_t) angle;
 
   84static __inline__ 
float arctan2f(
float y, 
float x)
 
   99            return 3.1415926f*1.5f;
 
  100        return 3.1415926f*0.5f;
 
  107        angle = 3.1415926f/2.0f - fx*fy/(y*y + 0.28125f*x*x);
 
  109        angle = fy*fx/(x*x + 0.28125f*y*y);
 
  113        angle = 3.1415926f - angle;
 
  121#if defined(__cplusplus)