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

Go to the source code of this file.

Functions

__device__ void fp_neg (fp_t &z, const fp_t &x)
 Compute an additive inverse of a residue x modulo p. Stores in z. Subtracts x from the highest multiple of p less than 2^384, then adds p in case of underflow. More...
 

Function Documentation

◆ fp_neg()

__device__ void fp_neg ( fp_t z,
const fp_t x 
)

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

Parameters
[out]z
[in]x
Returns
void

Definition at line 16 of file fp_neg.cu.

Here is the caller graph for this function: