mirror of https://github.com/wolfSSL/wolfssl
fix optimized fastmath read digit for explicit 32bit digits
This commit is contained in:
parent
65c0dd4f8a
commit
a352908c61
|
@ -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.
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue