diff options
author | MITSUNARI Shigeo <herumi@nifty.com> | 2017-05-08 11:51:45 +0800 |
---|---|---|
committer | MITSUNARI Shigeo <herumi@nifty.com> | 2017-05-08 11:51:45 +0800 |
commit | 0dcb4d0a90d18a20cfe0ab46d2dd6a7ceba1bfa9 (patch) | |
tree | 8eb2048b7e605d0f210bb761d762795ceb51a435 | |
parent | 07a6f764a0b6a20ba2fb03cc1293425dc8e86411 (diff) | |
download | tangerine-mcl-0dcb4d0a90d18a20cfe0ab46d2dd6a7ceba1bfa9.tar.gz tangerine-mcl-0dcb4d0a90d18a20cfe0ab46d2dd6a7ceba1bfa9.tar.zst tangerine-mcl-0dcb4d0a90d18a20cfe0ab46d2dd6a7ceba1bfa9.zip |
add #if MCL_MAX_UNIT_SIZE >=
-rw-r--r-- | src/fp.cpp | 8 | ||||
-rw-r--r-- | src/low_func_llvm.hpp | 8 | ||||
-rw-r--r-- | src/proto.hpp | 8 |
3 files changed, 18 insertions, 6 deletions
@@ -426,13 +426,17 @@ void Op::init(const std::string& mstr, size_t maxBitSize, Mode mode) case 5: setOp<5>(*this, mode); break; case 6: setOp<6>(*this, mode); break; #endif -#if MCL_MAX_UNIT_SIZE >= 9 +#if MCL_MAX_UNIT_SIZE >= 8 case 7: setOp<7>(*this, mode); break; case 8: setOp<8>(*this, mode); break; +#endif +#if MCL_MAX_UNIT_SIZE >= 9 case 9: setOp<9>(*this, mode); break; // 521 if 64-bit #endif -#if MCL_MAX_UNIT_SIZE >= 12 +#if MCL_MAX_UNIT_SIZE >= 10 case 10: setOp<10>(*this, mode); break; +#endif +#if MCL_MAX_UNIT_SIZE >= 12 case 11: setOp<11>(*this, mode); break; case 12: setOp<12>(*this, mode); break; // 768 if 64-bit #endif diff --git a/src/low_func_llvm.hpp b/src/low_func_llvm.hpp index a96f3fa..1eb61cc 100644 --- a/src/low_func_llvm.hpp +++ b/src/low_func_llvm.hpp @@ -58,13 +58,17 @@ MCL_DEF_LLVM_FUNC(4) MCL_DEF_LLVM_FUNC(5) MCL_DEF_LLVM_FUNC(6) #endif -#if MCL_MAX_UNIT_SIZE >= 9 +#if MCL_MAX_UNIT_SIZE >= 8 MCL_DEF_LLVM_FUNC(7) MCL_DEF_LLVM_FUNC(8) +#endif +#if MCL_MAX_UNIT_SIZE >= 9 MCL_DEF_LLVM_FUNC(9) #endif -#if MCL_MAX_UNIT_SIZE >= 12 +#if MCL_MAX_UNIT_SIZE >= 10 MCL_DEF_LLVM_FUNC(10) +#endif +#if MCL_MAX_UNIT_SIZE >= 12 MCL_DEF_LLVM_FUNC(11) MCL_DEF_LLVM_FUNC(12) #endif diff --git a/src/proto.hpp b/src/proto.hpp index 380e38e..97c3311 100644 --- a/src/proto.hpp +++ b/src/proto.hpp @@ -45,13 +45,17 @@ MCL_FP_DEF_FUNC(4) MCL_FP_DEF_FUNC(5) MCL_FP_DEF_FUNC(6) #endif -#if MCL_MAX_UNIT_SIZE >= 9 +#if MCL_MAX_UNIT_SIZE >= 8 MCL_FP_DEF_FUNC(7) MCL_FP_DEF_FUNC(8) +#endif +#if MCL_MAX_UNIT_SIZE >= 9 MCL_FP_DEF_FUNC(9) #endif -#if MCL_MAX_UNIT_SIZE >= 12 +#if MCL_MAX_UNIT_SIZE >= 10 MCL_FP_DEF_FUNC(10) +#endif +#if MCL_MAX_UNIT_SIZE >= 12 MCL_FP_DEF_FUNC(11) MCL_FP_DEF_FUNC(12) #endif |