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

Go to the source code of this file.

Functions

__device__ void fr_addsub (fr_t &x, fr_t &y)
 Computes the sum and the difference of the arguments, storing back into the arguments: (x,y) := (x+y,x-y). Device function. More...
 

Function Documentation

◆ fr_addsub()

__device__ void fr_addsub ( fr_t x,
fr_t y 
)

Computes the sum and the difference of the arguments, storing back into the arguments: (x,y) := (x+y,x-y). Device function.

(x,y) := (x+y,x-y)

Parameters
[in,out]xFirst operand, will store the sum after execution.
[in,out]ySecond operand, will store the difference after execution.
Returns
void

Definition at line 18 of file fr_addsub.cu.

Here is the caller graph for this function: