FK20 CUDA
g1test.cuh File Reference
#include "test.h"
#include "g1.cuh"
Include dependency graph for g1test.cuh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  testval_t
 

Macros

#define G1_TEST_CUH
 
#define TESTVALS   256
 
#define TESTFUN(X)   extern __global__ void X(testval_t *testval)
 

Functions

 TESTFUN (G1TestKAT)
 
 TESTFUN (G1TestFibonacci)
 
 TESTFUN (G1TestDbl)
 
 TESTFUN (G1TestCmp)
 
 TESTFUN (G1TestCopy)
 
 TESTFUN (G1TestEqNeq)
 
 TESTFUN (G1TestReflexivity)
 
 TESTFUN (G1TestSymmetry)
 
 TESTFUN (G1TestAdditiveIdentity)
 
 TESTFUN (G1TestMultiplicativeIdentity)
 
 TESTFUN (G1TestAdditiveInverse)
 
 TESTFUN (G1TestMultiplicativeInverse)
 
 TESTFUN (G1TestCommutativeAdd)
 
 TESTFUN (G1TestCommutativeMul)
 
 TESTFUN (G1TestAssociativeAdd)
 
 TESTFUN (G1TestAssociativeMul)
 
 TESTFUN (G1TestDistributiveLeft)
 
 TESTFUN (G1TestDistributiveRight)
 
 TESTFUN (G1TestDouble)
 
 TESTFUN (G1TestSquare)
 
void G1TestFFT (unsigned rows)
 Test for FFT and IFFT of points on the G1 curve. Checks self consistency with the following properties: More...
 

Macro Definition Documentation

◆ G1_TEST_CUH

#define G1_TEST_CUH

Definition at line 6 of file g1test.cuh.

◆ TESTFUN

#define TESTFUN (   X)    extern __global__ void X(testval_t *testval)

Definition at line 18 of file g1test.cuh.

◆ TESTVALS

#define TESTVALS   256

Definition at line 11 of file g1test.cuh.

Function Documentation

◆ G1TestFFT()

void G1TestFFT ( unsigned  rows)

Test for FFT and IFFT of points on the G1 curve. Checks self consistency with the following properties:

IFT(FFT(P)) == P FFT(IFT(P)) == P FFT(P+Q) == FFT(P) + FFT(Q) IFT(P+Q) == IFT(P) + IFT(Q) FFT(x*P) == x*FFT(P) IFT(x*P) == x*IFT(P) FFT(G*X) == G*FFT(X) (FFT commutes with mapping from Fr to G1) IFT(G*X) == G*IFT(X) (IFT commutes with mapping from Fr to G1)

Parameters
rows

Definition at line 136 of file g1test_fft.cu.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TESTFUN() [1/20]

TESTFUN ( G1TestAdditiveIdentity  )

◆ TESTFUN() [2/20]

TESTFUN ( G1TestAdditiveInverse  )

◆ TESTFUN() [3/20]

TESTFUN ( G1TestAssociativeAdd  )

◆ TESTFUN() [4/20]

TESTFUN ( G1TestAssociativeMul  )

◆ TESTFUN() [5/20]

TESTFUN ( G1TestCmp  )

◆ TESTFUN() [6/20]

TESTFUN ( G1TestCommutativeAdd  )

◆ TESTFUN() [7/20]

TESTFUN ( G1TestCommutativeMul  )

◆ TESTFUN() [8/20]

TESTFUN ( G1TestCopy  )

◆ TESTFUN() [9/20]

TESTFUN ( G1TestDbl  )

◆ TESTFUN() [10/20]

TESTFUN ( G1TestDistributiveLeft  )

◆ TESTFUN() [11/20]

TESTFUN ( G1TestDistributiveRight  )

◆ TESTFUN() [12/20]

TESTFUN ( G1TestDouble  )

◆ TESTFUN() [13/20]

TESTFUN ( G1TestEqNeq  )

◆ TESTFUN() [14/20]

TESTFUN ( G1TestFibonacci  )

◆ TESTFUN() [15/20]

TESTFUN ( G1TestKAT  )

◆ TESTFUN() [16/20]

TESTFUN ( G1TestMultiplicativeIdentity  )

◆ TESTFUN() [17/20]

TESTFUN ( G1TestMultiplicativeInverse  )

◆ TESTFUN() [18/20]

TESTFUN ( G1TestReflexivity  )

◆ TESTFUN() [19/20]

TESTFUN ( G1TestSquare  )

◆ TESTFUN() [20/20]

TESTFUN ( G1TestSymmetry  )