fix blasabs for windows
Bugfix in #1713 for Windows (LLP64), where `blasabs` needs to be `llabs` rather than `labs` for the 64-bit API.
This commit is contained in:
parent
4a553e8678
commit
48610a4524
4
common.h
4
common.h
|
@ -257,7 +257,11 @@ typedef unsigned long BLASULONG;
|
||||||
|
|
||||||
#ifdef USE64BITINT
|
#ifdef USE64BITINT
|
||||||
typedef BLASLONG blasint;
|
typedef BLASLONG blasint;
|
||||||
|
#if defined(OS_WINDOWS) && defined(__64BIT__)
|
||||||
|
#define blasabs(x) llabs(x)
|
||||||
|
#else
|
||||||
#define blasabs(x) labs(x)
|
#define blasabs(x) labs(x)
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
typedef int blasint;
|
typedef int blasint;
|
||||||
#define blasabs(x) abs(x)
|
#define blasabs(x) abs(x)
|
||||||
|
|
Loading…
Reference in New Issue