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
;
12
uint256_t
polynomial
[
POLYLEN
];
13
uint768_t
fftInput
[
POLYLEN
*2];
14
uint768_t
fftOutput
[
POLYLEN
*2];
15
};
16
17
typedef
struct
FFTTest
{
18
unsigned
int
nTest
;
19
unsigned
int
polynomialLength
;
20
uint256_t
setup
;
21
struct
FFTTestCase
*
testCase
;
22
}
ffttest_t
;
23
24
extern
void
freeffttest_t
(
ffttest_t
*fftTest);
25
26
extern
ffttest_t
parseFFTTest
(
const
char
*filename);
27
28
#endif
POLYLEN
#define POLYLEN
Definition:
parseFFTTest.h:8
freeffttest_t
void freeffttest_t(ffttest_t *fftTest)
Definition:
parseFFTTest.c:9
parseFFTTest
ffttest_t parseFFTTest(const char *filename)
Definition:
parseFFTTest.c:136
uint768_t
struct uint768 uint768_t
ffttest_t
struct FFTTest ffttest_t
uint256_t
struct uint256 uint256_t
FFTTestCase
Definition:
parseFFTTest.h:10
FFTTestCase::fftOutput
uint768_t fftOutput[POLYLEN *2]
Definition:
parseFFTTest.h:14
FFTTestCase::polynomial
uint256_t polynomial[POLYLEN]
Definition:
parseFFTTest.h:12
FFTTestCase::idx
unsigned int idx
Definition:
parseFFTTest.h:11
FFTTestCase::fftInput
uint768_t fftInput[POLYLEN *2]
Definition:
parseFFTTest.h:13
FFTTest
Definition:
parseFFTTest.h:17
FFTTest::nTest
unsigned int nTest
Definition:
parseFFTTest.h:18
FFTTest::testCase
struct FFTTestCase * testCase
Definition:
parseFFTTest.h:21
FFTTest::setup
uint256_t setup
Definition:
parseFFTTest.h:20
FFTTest::polynomialLength
unsigned int polynomialLength
Definition:
parseFFTTest.h:19
uint256
Definition:
parseFFTTest.h:6
uint256::word
uint64_t word[4]
Definition:
parseFFTTest.h:6
uint768
Definition:
parseFFTTest.h:5
uint768::word
uint64_t word[12]
Definition:
parseFFTTest.h:5
parseFFTTest.h
Generated by
1.9.1