|
MPHELL
5.0.0
|
Go to the documentation of this file.
26 #ifndef MPHELL_DEFINE_H
27 #define MPHELL_DEFINE_H
31 #include "mphell-config.h"
33 #if MPHELL_USE_DEBUG == 1
34 #define MPHELL_USE_ASSERT 1
36 #define MPHELL_USE_ASSERT 0
39 #if (MPHELL_USE_VECTORIZATION == 1) && (MPHELL_HAVE_AES_INSTRUCTIONS == 1)
40 #define MPHELL_USE_AES_NI 1
42 #define MPHELL_USE_AES_NI 0
45 #if MPHELL_HAVE_GMP == 1
46 #if MPHELL_USE_GMP == 1
48 #define INIT_SIZE_MAIN_STACK 1000
49 #define INIT_SIZE_OTHERS_STACKS 1000
50 #define BLOCK_SIZE GMP_LIMB_BITS
54 #if MPHELL_HAVE_IPP == 1
55 #if MPHELL_USE_IPP == 1
57 #define INIT_SIZE_MAIN_STACK 1000
58 #define INIT_SIZE_OTHERS_STACKS 1000
63 #if MPHELL_HAVE_MBEDTLS == 1
64 #if MPHELL_USE_MBEDTLS == 1
65 #include "mbedtls/bignum.h"
66 #include "mbedtls/bn_mul.h"
67 #define INIT_SIZE_MAIN_STACK 1000
68 #define INIT_SIZE_OTHERS_STACKS 1000
69 #if defined(MBEDTLS_HAVE_INT64)
80 #define POOL_SIZE_FP 40
81 #define POOL_SIZE_FIELD 100
82 #define POOL_SIZE_AMNS 5
85 #define UMAX (~(uint64_t)0)
86 typedef uint64_t block;
88 #define UMAX (~(uint32_t)0)
89 typedef uint32_t block;
92 #define BYTES_PER_LIMB (BLOCK_SIZE/8)