NOVA User-Level Environment  Version testbox/changed-memory-timing-317-g320d8b5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Math Struct Reference

#include <math.h>

Static Public Member Functions

static unsigned long long muldiv128 (unsigned long long value, unsigned long factor, unsigned long divisor)
 We are limited here by the ability to divide through a unsigned long value, thus factor and divisor needs to be less than 1<<32.
static unsigned div64 (unsigned long long &value, unsigned divisor)
 Divide a 64bit value through a 32bit value.
static int idiv64 (long long &value, int divisor)
 Divide a 64bit signed value through a 32bit value.

Member Function Documentation

static unsigned Math::div64 ( unsigned long long &  value,
unsigned  divisor 
)
inlinestatic

Divide a 64bit value through a 32bit value.

Returns the remainder.

static int Math::idiv64 ( long long &  value,
int  divisor 
)
inlinestatic

Divide a 64bit signed value through a 32bit value.

Returns the remainder.

static unsigned long long Math::muldiv128 ( unsigned long long  value,
unsigned long  factor,
unsigned long  divisor 
)
inlinestatic

We are limited here by the ability to divide through a unsigned long value, thus factor and divisor needs to be less than 1<<32.


The documentation for this struct was generated from the following file: