summaryrefslogtreecommitdiffstats
path: root/contrib/ntp/tests/libntp/lfptest.h
blob: 30a85f5b3f56596b17cb27036df082f68aacca26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef NTP_TESTS_LFPTEST_H
#define NTP_TESTS_LFPTEST_H

#include "config.h"
#include "ntp_fp.h"


static const int32 HALF = -2147483647L - 1L;
static const int32 HALF_PROMILLE_UP = 2147484; // slightly more than 0.0005
static const int32 HALF_PROMILLE_DOWN = 2147483; // slightly less than 0.0005
static const int32 QUARTER = 1073741824L;
static const int32 QUARTER_PROMILLE_APPRX = 1073742L;

int IsEqual(const l_fp expected, const l_fp actual);

#endif
OpenPOWER on IntegriCloud