define MCL_MAX_BIT_SIZE in gmp_util.hpp

pull/2/head
MITSUNARI Shigeo 6 years ago
parent 0df8f32be4
commit 9b2000ae8b
  1. 3
      include/mcl/gmp_util.hpp
  2. 3
      include/mcl/op.hpp
  3. 2
      include/mcl/vint.hpp

@ -26,6 +26,9 @@
#if defined(__EMSCRIPTEN__) || defined(__wasm__)
#define MCL_USE_VINT
#endif
#ifndef MCL_MAX_BIT_SIZE
#define MCL_MAX_BIT_SIZE 521
#endif
#ifdef MCL_USE_VINT
#include <mcl/vint.hpp>
typedef mcl::Vint mpz_class;

@ -10,9 +10,6 @@
#include <memory.h>
#include <mcl/array.hpp>
#ifndef MCL_MAX_BIT_SIZE
#define MCL_MAX_BIT_SIZE 521
#endif
#if defined(__EMSCRIPTEN__) || defined(__wasm__)
#define MCL_DONT_USE_XBYAK
#define MCL_DONT_USE_OPENSSL

@ -19,7 +19,7 @@
#define MCL_VINT_FIXED_BUFFER
#endif
#ifndef MCL_MAX_BIT_SIZE
#define MCL_MAX_BIT_SIZE 384
#error "define MCL_MAX_BIT_SZIE"
#endif
#ifndef MCL_SIZEOF_UNIT

Loading…
Cancel
Save