FK20 CUDA
fr_sub.cu File Reference
#include "fr.cuh"
#include "fr_sub.cuh"
Include dependency graph for fr_sub.cu:

Go to the source code of this file.

Functions

__device__ void fr_sub (fr_t &z, const fr_t &x)
 Calculates the difference of two residues modulo p and stores it into z. More...
 

Function Documentation

◆ fr_sub()

__device__ void fr_sub ( fr_t z,
const fr_t x 
)

Calculates the difference of two residues modulo p and stores it into z.

z-=x

Parameters
[in,out]zminuend, difference
xsubtrahend
Returns
void

Definition at line 17 of file fr_sub.cu.

Here is the caller graph for this function: