xref: /netbsd-src/external/bsd/ntp/dist/tests/libntp/lfptest.h (revision cdfa2a7ef92791ba9db70a584a1d904730e6fb46)
1 /*	$NetBSD: lfptest.h,v 1.6 2020/05/25 20:47:36 christos Exp $	*/
2 
3 #ifndef NTP_TESTS_LFPTEST_H
4 #define NTP_TESTS_LFPTEST_H
5 
6 #include "config.h"
7 #include "ntp_fp.h"
8 
9 
10 static const int32 HALF = -2147483647L - 1L;
11 static const int32 HALF_PROMILLE_UP = 2147484; // slightly more than 0.0005
12 static const int32 HALF_PROMILLE_DOWN = 2147483; // slightly less than 0.0005
13 static const int32 QUARTER = 1073741824L;
14 static const int32 QUARTER_PROMILLE_APPRX = 1073742L;
15 
16 int IsEqual(const l_fp expected, const l_fp actual);
17 
18 #endif
19