summaryrefslogtreecommitdiffstats
path: root/mpi/mpi-types.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-01-26 14:17:49 -0800
committerKaz Kylheku <kaz@kylheku.com>2019-01-26 14:17:49 -0800
commitc9207b167a3f83205e33b50af7fdfdde4d0b4658 (patch)
tree871bebf288bc17d9091b5533aaadc9f81dea124d /mpi/mpi-types.h
parentb92b3971bc7d0ed3a64c6b5c2d5633f698b50270 (diff)
downloadtxr-c9207b167a3f83205e33b50af7fdfdde4d0b4658.tar.gz
txr-c9207b167a3f83205e33b50af7fdfdde4d0b4658.tar.bz2
txr-c9207b167a3f83205e33b50af7fdfdde4d0b4658.zip
configure: problems with 128 bit integer detection.
* configure: we can't assume that we can just edit "int" to "uint" in forming the superulong_t type. Let's consolidate the detection of the signed and unsigned superlong. Only if both are available, then emit material into config.h, along with a single constant: HAVE_SUPERLONG_T. * mpi/mpi-types.h: Don't refer to removed HAVE_USUPERLONG_T. Change superulong_t to usuperlong_t.
Diffstat (limited to 'mpi/mpi-types.h')
-rw-r--r--mpi/mpi-types.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/mpi/mpi-types.h b/mpi/mpi-types.h
index a55174fb..098efe15 100644
--- a/mpi/mpi-types.h
+++ b/mpi/mpi-types.h
@@ -11,11 +11,11 @@ typedef unsigned mp_size;
*/
typedef int mp_err;
-#if HAVE_USUPERLONG_T && HAVE_ULONGLONG_T && \
+#if HAVE_SUPERLONG_T && HAVE_ULONGLONG_T && \
SIZEOF_SUPERLONG_T / 2 == SIZEOF_LONGLONG_T && \
SIZEOF_PTR >= SIZEOF_LONGLONG_T
typedef ulonglong_t mp_digit;
- typedef usuperlong_t mp_word;
+ typedef superulong_t mp_word;
#define MP_DIGIT_SIZE SIZEOF_LONGLONG_T
#define DIGIT_FMT "%" #SIZEOF_SUPERLONG_T "llx"
#elif HAVE_ULONGLONG_T && SIZEOF_LONGLONG_T / 2 == SIZEOF_LONG && \