summaryrefslogtreecommitdiffstats
path: root/contrib/ntp/tests/libntp/lfptest.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ntp/tests/libntp/lfptest.c')
-rw-r--r--contrib/ntp/tests/libntp/lfptest.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/contrib/ntp/tests/libntp/lfptest.c b/contrib/ntp/tests/libntp/lfptest.c
new file mode 100644
index 0000000..7b4dccf
--- /dev/null
+++ b/contrib/ntp/tests/libntp/lfptest.c
@@ -0,0 +1,11 @@
+#include "config.h"
+#include "ntp_fp.h"
+#include "lfptest.h"
+
+int IsEqual(const l_fp expected, const l_fp actual) {
+ if (L_ISEQU(&expected, &actual)) {
+ return TRUE;
+ } else {
+ return FALSE;
+ }
+}
OpenPOWER on IntegriCloud