FK20 CUDA
parseFFTTest.h
Go to the documentation of this file.
1 //Reads a input file and parses its data
2 #ifndef parseFFTTest_H
3 #define parseFFTTest_H
4 
5 typedef struct uint768 {uint64_t word[12];} uint768_t;
6 typedef struct uint256 {uint64_t word[4];} uint256_t;
7 
8 #define POLYLEN 512 //The test for GPU code is expected to have always the same input length
9 
10 struct FFTTestCase{
11  unsigned int idx;
15 };
16 
17 typedef struct FFTTest{
18  unsigned int nTest;
19  unsigned int polynomialLength;
23 
24 extern void freeffttest_t( ffttest_t *fftTest);
25 
26 extern ffttest_t parseFFTTest(const char *filename);
27 
28 #endif
#define POLYLEN
Definition: parseFFTTest.h:8
void freeffttest_t(ffttest_t *fftTest)
Definition: parseFFTTest.c:9
ffttest_t parseFFTTest(const char *filename)
Definition: parseFFTTest.c:136
struct uint768 uint768_t
struct FFTTest ffttest_t
struct uint256 uint256_t
uint768_t fftOutput[POLYLEN *2]
Definition: parseFFTTest.h:14
uint256_t polynomial[POLYLEN]
Definition: parseFFTTest.h:12
unsigned int idx
Definition: parseFFTTest.h:11
uint768_t fftInput[POLYLEN *2]
Definition: parseFFTTest.h:13
unsigned int nTest
Definition: parseFFTTest.h:18
struct FFTTestCase * testCase
Definition: parseFFTTest.h:21
uint256_t setup
Definition: parseFFTTest.h:20
unsigned int polynomialLength
Definition: parseFFTTest.h:19
uint64_t word[4]
Definition: parseFFTTest.h:6
uint64_t word[12]
Definition: parseFFTTest.h:5