set thread size

This commit is contained in:
cathugger
2020-11-22 13:13:50 +00:00
parent 51d87c3857
commit af5a7cfe12
8 changed files with 59 additions and 39 deletions

View File

@@ -94,9 +94,9 @@ static void onionready(char *sname,const u8 *secret,const u8 *pubonion)
}
// disabled as this was never ever triggered as far as I'm aware
#if 0
#if 1
// Sanity check that the public key matches the private one.
ge_p3 point;
ge_p3 ALIGN(16) point;
u8 testpk[PUBLIC_LEN];
ge_scalarmult_base(&point, secret);
ge_p3_tobytes(testpk, &point);
@@ -220,6 +220,11 @@ static void reseedright(u8 sk[SECRET_LEN])
#define BATCHNUM 2048
#endif
size_t worker_batch_memuse(void)
{
return (sizeof(ge_p3) + sizeof(fe) + sizeof(bytes32)) * BATCHNUM;
}
#include "worker_batch.inc.h"
#include "worker_batch_pass.inc.h"