FK20 CUDA
fptest_sqr.cu File Reference
#include "fp.cuh"
#include "fptest.cuh"
Include dependency graph for fptest_sqr.cu:

Go to the source code of this file.

Functions

__global__ void FpTestSqr (testval_t *testval)
 Test for squaring on Fp. Checks for self consistency: More...
 
__global__ void FpTestSqr2 (testval_t *testval)
 Test for squaring on Fp. Checks for self consistency: More...
 

Function Documentation

◆ FpTestSqr()

__global__ void FpTestSqr ( testval_t testval)

Test for squaring on Fp. Checks for self consistency:

(x+n)^2 == x^2 + 2nx + n^2

Parameters
testval
Returns
void

Definition at line 16 of file fptest_sqr.cu.

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

◆ FpTestSqr2()

__global__ void FpTestSqr2 ( testval_t testval)

Test for squaring on Fp. Checks for self consistency:

(x+y)^2 == x^2 + 2xy + y^2

Parameters
testval
Returns
void

Definition at line 135 of file fptest_sqr.cu.

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