ReactOS 0.4.15-dev-7953-g1f49173
fabs.c File Reference
#include <math.h>
Include dependency graph for fabs.c:

Go to the source code of this file.

Functions

_Check_return_ double __cdecl fabs (_In_ double x)
 

Function Documentation

◆ fabs()

Definition at line 17 of file fabs.c.

19{
20 /* Load the value as uint64 */
21 unsigned long long u64 = *(unsigned long long*)&x;
22
23 /* Clear the sign bit */
24 u64 &= ~(1ULL << 63);
25
26 /* Check for NAN */
27 if (u64 > 0x7FF0000000000000ull)
28 {
29#ifdef _M_IX86
30 /* Set error bit */
31 *(unsigned long long*)&x |= 0x0008000000000000ull;
32#endif
33 return x;
34 }
35
36 /* Convert back to double */
37 return *(double*)&u64;
38}
ULONG64 u64
Definition: btrfs.h:15
GLint GLint GLint GLint GLint x
Definition: gl.h:1548

Referenced by __ieee754_j0(), __ieee754_j1(), __ieee754_jn(), _hypot(), brush_fill_pixels(), check_dc_state(), check_mat(), colors_match(), ColorTest(), compare(), compare_bitmap_data(), cosh(), DBG_is_U_direction(), EMF_FixIsotropic(), eto_scale_enum_proc(), fabsf(), fabsl(), fill_cube_positive_x(), findLeftGridIndices(), flatten_bezier(), GdipCreateLineBrush(), GdipGetPathWorldBounds(), GdipIsMatrixInvertible(), height_to_LP(), in_plane(), IntGdiWidenPath(), linear_vari_process(), linegradient_init_transform(), logic_dbl2int(), myequal(), ok_path(), PATH_DoArcPart(), prepare_rpn_result_2(), pres_log(), pres_rsq(), relative_error(), sampleCompTopSimpleOpt(), ScriptXtoCP(), sinc_hex_vari_process(), sinc_mono_vari_process(), sinc_multichan_vari_process(), sinc_quad_vari_process(), sinc_stereo_vari_process(), src_process(), sampledLine::tessellate(), test_BeginContainer2(), test_buffer(), test_buffer8(), test_clipping(), test_clipping_2(), test_D3DXSHEvalSphericalLight(), test_D3DXSHRotateZ(), test_decode_4bpp(), test_decode_rle4(), test_decode_rle8(), Test_fabs(), test_font_height_scaling(), test_GdipMeasureString(), test_session_creation(), test_tiff_resolution(), test_transform(), unstretch_angle(), VarUdateFromDate(), width_to_LP(), xform_eq(), xform_near_match(), xsltFormatNumberConversion(), xsltNumberFormatDecimal(), zoh_vari_process(), and CardRegion::ZoomCard().