-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathpippenger.cpp
26 lines (22 loc) · 957 Bytes
/
pippenger.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright Supranational LLC
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include <msm/pippenger.hpp>
#include <ec/jacobian_t.hpp>
#include <ec/xyzz_t.hpp>
#include <ff/pasta.hpp>
static thread_pool_t da_pool;
extern "C"
void mult_pippenger_pallas(jacobian_t<pallas_t>& ret,
const xyzz_t<pallas_t>::affine_t points[],
size_t npoints, const vesta_t scalars[], bool mont)
{ mult_pippenger<xyzz_t<pallas_t>>(ret, points, npoints, scalars, mont,
&da_pool);
}
extern "C"
void mult_pippenger_vesta(jacobian_t<vesta_t>& ret,
const xyzz_t<vesta_t>::affine_t points[],
size_t npoints, const pallas_t scalars[], bool mont)
{ mult_pippenger<xyzz_t<vesta_t>>(ret, points, npoints, scalars, mont,
&da_pool);
}