Browse Source
fix blasabs for windows
Bugfix in #1713 for Windows (LLP64), where `blasabs` needs to be `llabs` rather than `labs` for the 64-bit API.
tags/v0.3.3
Steven G. Johnson
GitHub
7 years ago
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
0 deletions
-
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) |
|
|
|