|
MPHELL
4.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 41 #if MPHELL_HAVE_GMP == 1 42 #if MPHELL_USE_GMP == 1 44 #define INIT_SIZE_MAIN_STACK 1000 45 #define INIT_SIZE_OTHERS_STACKS 1000 46 #define BLOCK_SIZE GMP_LIMB_BITS 50 #if MPHELL_HAVE_IPP == 1 51 #if MPHELL_USE_IPP == 1 53 #define INIT_SIZE_MAIN_STACK 1000 54 #define INIT_SIZE_OTHERS_STACKS 1000 59 #if MPHELL_HAVE_MBEDTLS == 1 60 #if MPHELL_USE_MBEDTLS == 1 61 #include "mbedtls/bignum.h" 62 #include "mbedtls/bn_mul.h" 63 #define INIT_SIZE_MAIN_STACK 1000 64 #define INIT_SIZE_OTHERS_STACKS 1000 65 #if defined(MBEDTLS_HAVE_INT64) 76 #define POOL_SIZE_FP 40 77 #define POOL_SIZE_FIELD 100 80 #define UMAX (~(uint64_t)0) 81 typedef uint64_t block;
83 #define UMAX (~(uint32_t)0) 84 typedef uint32_t block;
87 #define BYTES_PER_LIMB (BLOCK_SIZE/8)