fix optimized fastmath read digit for explicit 32bit digits

This commit is contained in:
toddouska 2014-11-24 10:00:13 -08:00
parent 65c0dd4f8a
commit a352908c61
2 changed files with 2 additions and 1 deletions

View File

@ -1611,7 +1611,7 @@ void fp_read_unsigned_bin(fp_int *a, unsigned char *b, int c)
/* If we know the endianness of this architecture, and we're using
32-bit fp_digits, we can optimize this */
#if (defined(LITTLE_ENDIAN_ORDER) || defined(BIG_ENDIAN_ORDER)) && !defined(FP_64BIT)
#if (defined(LITTLE_ENDIAN_ORDER) || defined(BIG_ENDIAN_ORDER)) && defined(FP_32BIT)
/* But not for both simultaneously */
#if defined(LITTLE_ENDIAN_ORDER) && defined(BIG_ENDIAN_ORDER)
#error Both LITTLE_ENDIAN_ORDER and BIG_ENDIAN_ORDER defined.

View File

@ -217,6 +217,7 @@
#ifndef NO_64BIT
typedef unsigned int fp_digit;
typedef ulong64 fp_word;
#define FP_32BIT
#else
/* some procs like coldfire prefer not to place multiply into 64bit type
even though it exists */