From 48610a4524937c8feb857aa0f49f5999edfdd42c Mon Sep 17 00:00:00 2001 From: "Steven G. Johnson" Date: Sun, 5 Aug 2018 08:18:51 -0400 Subject: [PATCH] fix blasabs for windows Bugfix in #1713 for Windows (LLP64), where `blasabs` needs to be `llabs` rather than `labs` for the 64-bit API. --- common.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common.h b/common.h index 2ab29c3ee..6c3d5b15e 100644 --- a/common.h +++ b/common.h @@ -257,7 +257,11 @@ typedef unsigned long BLASULONG; #ifdef USE64BITINT typedef BLASLONG blasint; +#if defined(OS_WINDOWS) && defined(__64BIT__) +#define blasabs(x) llabs(x) +#else #define blasabs(x) labs(x) +#endif #else typedef int blasint; #define blasabs(x) abs(x)