From 70f419673d5d3e49a3eada70c70c2d284b502d7b Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Fri, 27 Jul 2018 01:29:50 +0000 Subject: 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 --- src/debug.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/debug.h') 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"); } -- cgit v1.2.3