Skip to content

Commit 48610a4

Browse files
authored
fix blasabs for windows
Bugfix in #1713 for Windows (LLP64), where `blasabs` needs to be `llabs` rather than `labs` for the 64-bit API.
1 parent 4a553e8 commit 48610a4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

common.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,11 @@ typedef unsigned long BLASULONG;
257257

258258
#ifdef USE64BITINT
259259
typedef BLASLONG blasint;
260+
#if defined(OS_WINDOWS) && defined(__64BIT__)
261+
#define blasabs(x) llabs(x)
262+
#else
260263
#define blasabs(x) labs(x)
264+
#endif
261265
#else
262266
typedef int blasint;
263267
#define blasabs(x) abs(x)

0 commit comments

Comments
 (0)