SDL  2.0
s_fabs.c File Reference
#include "math_libm.h"
#include "math_private.h"
+ Include dependency graph for s_fabs.c:

Go to the source code of this file.

Functions

double fabs (double x)

Function Documentation

double fabs ( double  x)

Definition at line 22 of file s_fabs.c.

References GET_HIGH_WORD, and SET_HIGH_WORD.

Referenced by __ieee754_atan2(), __ieee754_pow(), __ieee754_rem_pio2(), __kernel_tan(), atan(), and SDL_fabs().

{
u_int32_t high;
SET_HIGH_WORD(x,high&0x7fffffff);
return x;
}