17 lines
743 B
Plaintext
17 lines
743 B
Plaintext
#ifndef __FE_H
|
|
#define __FE_H
|
|
using fe = int[10];
|
|
void __device__ __host__ fe_1(fe h);
|
|
void __device__ __host__ fe_tobytes(unsigned char *s, const fe& h);
|
|
void __host__ __device__ fe_copy(fe h, const fe& f);
|
|
int __host__ __device__ fe_isnegative(const fe& f);
|
|
void __host__ __device__ fe_cmov(fe f, const fe& g, unsigned int b);
|
|
void __device__ __host__ fe_neg(fe h, const fe& f);
|
|
void __device__ __host__ fe_add(fe h, const fe& f, const fe& g);
|
|
void __device__ __host__ fe_invert(fe out, const fe& z);
|
|
void __device__ __host__ fe_sq(fe h, const fe& f);
|
|
void __host__ __device__ fe_sq2(fe h, const fe& f);
|
|
void __device__ __host__ fe_mul(fe h, const fe& f, const fe& g);
|
|
void __device__ __host__ fe_sub(fe h, const fe& f, const fe& g);
|
|
#endif
|