FD.io VPP  v19.04.4-rc0-5-ge88582fac
Vector Packet Processing
math64.h File Reference
+ Include dependency graph for math64.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TWO64   18446744073709551616.0
 

Functions

static void mul64by64 (u64 a, u64 b, u64 *hi, u64 *lo)
 
static u64 mod128by64 (u64 x, u64 y, u64 m, double di)
 
static u64 mod64by64 (u64 a, u64 p, u64 primeinv)
 
static void add64 (u64 a, u64 b, u64 *whi, u64 *wlo)
 
static u64 add64_mod (u64 a, u64 b, u64 p, double pi)
 
static u64 mul64_mod (u64 a, u64 b, u64 p, double pi)
 

Macro Definition Documentation

◆ TWO64

#define TWO64   18446744073709551616.0

Definition at line 50 of file math64.h.

Function Documentation

◆ add64()

static void add64 ( u64  a,
u64  b,
u64 whi,
u64 wlo 
)
inlinestatic

Definition at line 129 of file math64.h.

+ Here is the caller graph for this function:

◆ add64_mod()

static u64 add64_mod ( u64  a,
u64  b,
u64  p,
double  pi 
)
inlinestatic

Definition at line 140 of file math64.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ mod128by64()

static u64 mod128by64 ( u64  x,
u64  y,
u64  m,
double  di 
)
inlinestatic

Definition at line 52 of file math64.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ mod64by64()

static u64 mod64by64 ( u64  a,
u64  p,
u64  primeinv 
)
inlinestatic

Definition at line 124 of file math64.h.

+ Here is the call graph for this function:

◆ mul64_mod()

static u64 mul64_mod ( u64  a,
u64  b,
u64  p,
double  pi 
)
inlinestatic

Definition at line 151 of file math64.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ mul64by64()

static void mul64by64 ( u64  a,
u64  b,
u64 hi,
u64 lo 
)
inlinestatic

Definition at line 31 of file math64.h.

+ Here is the caller graph for this function: