dont do indirection in for batch stuff

This commit is contained in:
cathugger 2020-11-22 10:21:06 +00:00
parent 5b5f414b79
commit 51d87c3857
No known key found for this signature in database
GPG key ID: 9BADDA2DAF6F01A8
19 changed files with 86 additions and 71 deletions

View file

@ -2,11 +2,11 @@
// inz is ge_p3.Z pointer array. contents to .Zs will be overwritten
// NOTE: leaves in unfinished state
void ge_p3_batchtobytes_destructive_1(bytes32 out[],ge_p3 in[],fe *inz[],fe tmp[],size_t num)
void ge_p3_batchtobytes_destructive_1(bytes32 *out,ge_p3 *in,fe *tmp,size_t num)
{
fe y;
fe_batchinvert(inz,tmp,inz,num);
fe_batchinvert(&in->Z,&in->Z,tmp,num,sizeof(ge_p3));
for (size_t i = 0;i < num;++i) {
fe_mul(y,in[i].Y,in[i].Z);