mirror of
https://github.com/sfilippone/amg4psblas.git
synced 2026-10-06 22:55:12 +00:00
Fix use of BIT64 in MatchBox
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
@CHAVEMUMPS@
|
||||
@CHAVEMUMPSMODULES@
|
||||
@CHAVEMUMPSINCLUDES@
|
||||
@CXXMATCHBOXBIT@
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
@@ -117,7 +117,7 @@ extern "C"
|
||||
// Regular long integer:
|
||||
#ifndef LONG_INT_H
|
||||
#define LONG_INT_H
|
||||
#ifdef BIT64
|
||||
#ifdef AMG_MATCHBOXP_BIT64
|
||||
typedef int64_t MilanLongInt;
|
||||
typedef MPI_LONG MilanMpiLongInt;
|
||||
#else
|
||||
@@ -163,7 +163,7 @@ extern "C"
|
||||
#define MilanIntMax INT32_MAX
|
||||
#define MilanIntMin INT32_MIN
|
||||
|
||||
#ifdef BIT64
|
||||
#ifdef AMG_MATCHBOXP_BIT64
|
||||
#define MilanLongIntMax INT64_MAX
|
||||
#define MilanLongIntMin -INT64_MAX
|
||||
#else
|
||||
|
||||
@@ -49,8 +49,8 @@
|
||||
using namespace std;
|
||||
|
||||
//Comment out these if you do not need 64 bits.
|
||||
//#ifndef BIT64
|
||||
// #define BIT64
|
||||
//#ifndef AMG_MATCHBOXP_BIT64
|
||||
// #define AMG_MATCHBOXP_BIT64
|
||||
//#endif
|
||||
|
||||
//Regular integer:
|
||||
@@ -63,7 +63,7 @@ using namespace std;
|
||||
//Regular long Integer:
|
||||
#ifndef LONG_INT_H
|
||||
#define LONG_INT_H
|
||||
#ifdef BIT64
|
||||
#ifdef AMG_MATCHBOXP_BIT64
|
||||
typedef int64_t MilanLongInt;
|
||||
// typedef MPI_LONG MilanMpiLongInt;
|
||||
#else
|
||||
@@ -108,7 +108,7 @@ using namespace std;
|
||||
#define MilanIntMax INT_MAX
|
||||
#define MilanIntMin INT_MIN
|
||||
|
||||
#ifdef BIT64
|
||||
#ifdef AMG_MATCHBOXP_BIT64
|
||||
#define MilanLongIntMax LONG_MAX
|
||||
#define MilanLongIntMin -LONG_MAX
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user