summaryrefslogtreecommitdiffstats
path: root/libtommath
diff options
context:
space:
mode:
Diffstat (limited to 'libtommath')
-rw-r--r--libtommath/tommath_private.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/libtommath/tommath_private.h b/libtommath/tommath_private.h
index e1ad45d..faecb9f 100644
--- a/libtommath/tommath_private.h
+++ b/libtommath/tommath_private.h
@@ -49,11 +49,15 @@ extern void *XREALLOC(void *p, size_t n);
extern void XFREE(void *p);
#endif
-#if defined(MP_64BIT)
+#if defined(MP_8BIT)
+typedef unsigned short mp_word;
+#elif defined(MP_16BIT)
+typedef unsigned int mp_word;
+#elif defined(MP_64BIT)
/* for GCC only on supported platforms */
typedef unsigned long mp_word __attribute__((mode(TI)));
#elif _WIN32
-typedef __int64 mp_word;
+typedef unsigned __int64 mp_word;
#else
typedef unsigned long long mp_word;
#endif