Skip to content

Commit 40c068a

Browse files
authored
Introduce blasabs() to switch between abs() and labs() for INTERFACE64
1 parent 933896a commit 40c068a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

common.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,10 @@ typedef unsigned long BLASULONG;
253253

254254
#ifdef USE64BITINT
255255
typedef BLASLONG blasint;
256+
#define blasabs(x) labs(x)
256257
#else
257258
typedef int blasint;
259+
#define blasabs(x) abs(x)
258260
#endif
259261
#else
260262
#ifdef USE64BITINT

0 commit comments

Comments
 (0)