pacemaker  2.1.8-3980678f03
Scalable High-Availability cluster resource manager
Macros
pcmk__scan_double_test.c File Reference
#include <crm_internal.h>
#include <crm/common/unittest_internal.h>
#include <float.h>
#include <math.h>
Include dependency graph for pcmk__scan_double_test.c:

Go to the source code of this file.

Macros

#define LOCAL_BUF_SIZE   2 * DBL_MAX_10_EXP
 
#define assert_float_equal(a, b, epsilon)   assert_true(fabs((a) - (b)) < (epsilon))
 

Macro Definition Documentation

◆ assert_float_equal

#define assert_float_equal (   a,
  b,
  epsilon 
)    assert_true(fabs((a) - (b)) < (epsilon))

Definition at line 25 of file pcmk__scan_double_test.c.

◆ LOCAL_BUF_SIZE

#define LOCAL_BUF_SIZE   2 * DBL_MAX_10_EXP

Definition at line 18 of file pcmk__scan_double_test.c.