aboutsummaryrefslogtreecommitdiff
path: root/src/debug.h
diff options
context:
space:
mode:
authorPjotr Prins2018-07-27 01:29:50 +0000
committerPjotr Prins2018-07-27 01:29:50 +0000
commit70f419673d5d3e49a3eada70c70c2d284b502d7b (patch)
treef4e9457e2d90bce195fdb3fae286611d554e1d6a /src/debug.h
parent15cf2344547bcd4d300aba22a96e9897153e50e1 (diff)
downloadpangemma-70f419673d5d3e49a3eada70c70c2d284b502d7b.tar.gz
Add floating point hardware checking for Intel on GNU compilers
When using the -check function (the default) it is enabled for Kinship computation and LM/LMM up to individual SNP computation. This means there can no longer be NaN values for matrices that are reused for every SNP, but it is possible to have NaN for individual SNPs. Fixes #161
Diffstat (limited to 'src/debug.h')
-rw-r--r--src/debug.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/debug.h b/src/debug.h
index 67764df..ced8e72 100644
--- a/src/debug.h
+++ b/src/debug.h
@@ -45,6 +45,9 @@ bool is_quiet_mode();
bool is_issue(uint issue);
bool is_legacy_mode();
+void enable_segfpe();
+void disable_segfpe();
+
#define check_int_mult_overflow(m,n) \
{ auto x = m * n; \
enforce_msg(x / m == n, "multiply integer overflow"); }