]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/ntp/tests/libntp/lfptest.h
Upgrade NTP to 4.2.8p4.
[FreeBSD/releng/10.2.git] / contrib / ntp / tests / libntp / lfptest.h
1 #ifndef NTP_TESTS_LFPTEST_H
2 #define NTP_TESTS_LFPTEST_H
3
4 #include "config.h"
5 #include "ntp_fp.h"
6
7
8 static const int32 HALF = -2147483647L - 1L;
9 static const int32 HALF_PROMILLE_UP = 2147484; // slightly more than 0.0005
10 static const int32 HALF_PROMILLE_DOWN = 2147483; // slightly less than 0.0005
11 static const int32 QUARTER = 1073741824L;
12 static const int32 QUARTER_PROMILLE_APPRX = 1073742L;
13
14 int IsEqual(const l_fp expected, const l_fp actual);
15
16 #endif