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

Go to the source code of this file.

Functions

__device__ void fr_neg (fr_t &z)
 Compute an additive inverse of a residue x modulo r. Stores in x. Subtracts x from the highest multiple of R less than 2^256, then adds r in case of underflow. More...
 

Function Documentation

◆ fr_neg()

__device__ void fr_neg ( fr_t z)

Compute an additive inverse of a residue x modulo r. Stores in x. Subtracts x from the highest multiple of R less than 2^256, then adds r in case of underflow.

Parameters
z
Returns
void

Definition at line 15 of file fr_neg.cu.