ready to fix length maintanence

This commit is contained in:
2023-10-31 15:43:54 +08:00
parent ddf108aa3e
commit fd6e5e208e
2 changed files with 156 additions and 52 deletions

View File

@ -15,7 +15,7 @@ class int2048 {
* num_length is the length of the integer, (num_length+kNum-1)/kNum is the
* length of val with data. Note that position in val without data is 0.
*/
const static int kMod = 100000000, kNum = 8, kDefaultLength = 10;
const static int kStoreBase = 100000000, kNum = 8, kDefaultLength = 10;
const static int kMemAdditionScalar = 2, kMemDeleteScalar = 4;
/**
* the follow data used by NTT is generated by this code:
@ -50,7 +50,8 @@ root= 6
void NTTTransform(__int128_t *, int, bool);
void RightMoveBy(int);
void ProcessHalfBlock();
void RestoreHalfBlock();
public:
int2048();
int2048(long long);