diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-03-28 22:42:56 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-03-28 22:42:56 (GMT) |
commit | 3664f127cd17cdcb246dcbe861414b231ddff55e (patch) | |
tree | cadfeba564d5a1a7099377ac89949d89069231f1 /libtommath | |
parent | b3664a2eaad315a7b01931c974f24503ab1290cd (diff) | |
download | tcl-3664f127cd17cdcb246dcbe861414b231ddff55e.zip tcl-3664f127cd17cdcb246dcbe861414b231ddff55e.tar.gz tcl-3664f127cd17cdcb246dcbe861414b231ddff55e.tar.bz2 |
More complete typedef for mp_word, for MP_8BIT and MP_16BIT as well.
Diffstat (limited to 'libtommath')
-rw-r--r-- | libtommath/tommath_private.h | 8 |
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 |