|
|
|
@ -422,28 +422,30 @@ void Op::init(const std::string& mstr, size_t maxBitSize, Mode mode) |
|
|
|
|
case 2: setOp<2>(*this, mode); break; |
|
|
|
|
case 3: setOp<3>(*this, mode); break; |
|
|
|
|
case 4: setOp<4>(*this, mode); break; // 256 if 64-bit
|
|
|
|
|
#if MCL_MAX_UNIT_SIZE >= 6 |
|
|
|
|
case 5: setOp<5>(*this, mode); break; |
|
|
|
|
case 6: setOp<6>(*this, mode); break; |
|
|
|
|
#endif |
|
|
|
|
#if MCL_MAX_UNIT_SIZE >= 9 |
|
|
|
|
case 7: setOp<7>(*this, mode); break; |
|
|
|
|
case 8: setOp<8>(*this, mode); break; |
|
|
|
|
case 9: setOp<9>(*this, mode); break; // 576 if 64-bit
|
|
|
|
|
#if CYBOZU_OS_BIT == 32 || MCL_MAX_BIT_SIZE >= 768 |
|
|
|
|
case 9: setOp<9>(*this, mode); break; // 521 if 64-bit
|
|
|
|
|
#endif |
|
|
|
|
#if MCL_MAX_UNIT_SIZE >= 12 |
|
|
|
|
case 10: setOp<10>(*this, mode); break; |
|
|
|
|
case 11: setOp<11>(*this, mode); break; |
|
|
|
|
case 12: setOp<12>(*this, mode); break; // 768 if 64-bit
|
|
|
|
|
#endif |
|
|
|
|
#if CYBOZU_OS_BIT == 32 |
|
|
|
|
#if MCL_MAX_UNIT_SIZE >= 14 |
|
|
|
|
case 13: setOp<13>(*this, mode); break; |
|
|
|
|
case 14: setOp<14>(*this, mode); break; |
|
|
|
|
case 15: setOp<15>(*this, mode); break; |
|
|
|
|
case 16: setOp<16>(*this, mode); break; |
|
|
|
|
case 17: setOp<17>(*this, mode); break; // 544 if 32-bit
|
|
|
|
|
#endif |
|
|
|
|
#if CYBOZU_OS_BIT == 64 && MCL_MAX_BIT_SIZE == 1024 |
|
|
|
|
case 13: setOp<13>(*this, mode); break; |
|
|
|
|
case 14: setOp<14>(*this, mode); break; |
|
|
|
|
#if MCL_MAX_UNIT_SIZE >= 16 |
|
|
|
|
case 15: setOp<15>(*this, mode); break; |
|
|
|
|
case 16: setOp<16>(*this, mode); break; |
|
|
|
|
case 16: setOp<16>(*this, mode); break; // 1024 if 64-bit
|
|
|
|
|
#endif |
|
|
|
|
#if MCL_MAX_UNIT_SIZE >= 17 |
|
|
|
|
case 17: setOp<17>(*this, mode); break; // 521 if 32-bit
|
|
|
|
|
#endif |
|
|
|
|
default: |
|
|
|
|
throw cybozu::Exception("Op::init:not:support") << N << mstr; |
|
|
|
|