LibTomMath: Use 64-bit mode for mp_digit
For 64-bit x86 builds, enable 64-bit mode to optimize bignum operations with the internal LibTomMath version. Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
3947ed96e8
commit
e22ba3e390
1 changed files with 8 additions and 0 deletions
|
@ -66,11 +66,19 @@
|
|||
|
||||
#define OPT_CAST(x)
|
||||
|
||||
#ifdef __x86_64__
|
||||
typedef unsigned long mp_digit;
|
||||
typedef unsigned long mp_word __attribute__((mode(TI)));
|
||||
|
||||
#define DIGIT_BIT 60
|
||||
#define MP_64BIT
|
||||
#else
|
||||
typedef unsigned long mp_digit;
|
||||
typedef u64 mp_word;
|
||||
|
||||
#define DIGIT_BIT 28
|
||||
#define MP_28BIT
|
||||
#endif
|
||||
|
||||
|
||||
#define XMALLOC os_malloc
|
||||
|
|
Loading…
Reference in a new issue