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

Go to the source code of this file.

Functions

__device__ void fp_mma (fp_t &z, const fp_t &v, const fp_t &w, const fp_t &x, const fp_t &y)
 Fp multiply-multiply-add. Fast execution of z = (v*w + x*y) mod p The double-wide products are added before reduction, saving one reduction. More...
 

Function Documentation

◆ fp_mma()

__device__ void fp_mma ( fp_t z,
const fp_t v,
const fp_t w,
const fp_t x,
const fp_t y 
)

Fp multiply-multiply-add. Fast execution of z = (v*w + x*y) mod p The double-wide products are added before reduction, saving one reduction.

Parameters
[out]z
[in]v
[in]w
[in]x
[in]y
Returns
void

Definition at line 20 of file fp_mma.cu.

Here is the caller graph for this function: