Frobby  0.9.0
Namespaces | Macros | Typedefs | Variables
stdinc.h File Reference
#include <cstdio>
#include <gmp.h>
#include <gmpxx.h>
#include <cstddef>
#include <memory>

Go to the source code of this file.

Namespaces

 constants
 

Macros

#define IF_DEBUG(X)
 
#define ASSERT(X)
 

Typedefs

typedef unsigned int Exponent
 
typedef unsigned long Word
 The native unsigned type for the CPU. More...
 

Variables

static const size_t BitsPerWord = 8 * sizeof(Word)
 
static const size_t MemoryAlignment = sizeof(long)
 The alignment that memory allocators must ensure. More...
 

Macro Definition Documentation

◆ ASSERT

#define ASSERT (   X)

Definition at line 85 of file stdinc.h.

◆ IF_DEBUG

#define IF_DEBUG (   X)

Definition at line 84 of file stdinc.h.

Typedef Documentation

◆ Exponent

typedef unsigned int Exponent

Definition at line 88 of file stdinc.h.

◆ Word

typedef unsigned long Word

The native unsigned type for the CPU.

An incorrect type can result in worse performance but all computations must still be correct.

Definition at line 92 of file stdinc.h.

Variable Documentation

◆ BitsPerWord

const size_t BitsPerWord = 8 * sizeof(Word)
static

Definition at line 93 of file stdinc.h.

◆ MemoryAlignment

const size_t MemoryAlignment = sizeof(long)
static

The alignment that memory allocators must ensure.

In other words allocators must return pointer addresses that are divisible by MemoryAlignment. MemoryAlignment must be a power of 2.

Definition at line 98 of file stdinc.h.