Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

config.h File Reference

Global configuration options. More...

#include <iostream>
#include <assert.h>
#include <inttypes.h>
#include <vector>
#include <cmath>
#include "defs.h"

Go to the source code of this file.

Namespaces

namespace  mp

Defines

#define MIN(x, y)   ((x) <? (y))
#define MAX(x, y)   ((x) >? (y))
#define INVERT(x, y)   (((y) - ((x) % (y))) % (y))
#define BITS_TO_LIMBS(x)
#define LIMBS_TO_BITS(x)   ((x) * mp::mpn_::limb_size_bits)

Typedefs

typedef unsigned char byte
 Convenience renaming.
typedef unsigned char radix_type
 String conversion radix number type.
typedef intptr_t size_type
 This is preferred to be signed for comparison reasons.
typedef uint16_t limb_type
 Type of normal limbs.
typedef uint32_t limb_long_type
 Type of double-long limbs.
typedef double float_type
 Basic non-mpf float type.

Enumerations

enum  capability { IS_SIGNED = 0x01, IS_RATIONAL = 0x02, IS_FLOAT = 0x04, CAN_INTERRUPT = 0x10 }

Variables

typedef std::vector< byteraw_type
 Raw number I/O type.
class typedef signed int int_type
 Basic non-mpi signed integer type.


Detailed Description

Global configuration options.


Define Documentation

#define BITS_TO_LIMBS  ) 
 

Value:

((mp::size_type) std::ceil((double) (x) / \
                          mp::mpn_::limb_size_bits))

#define INVERT x,
 )     (((y) - ((x) % (y))) % (y))
 

#define LIMBS_TO_BITS  )     ((x) * mp::mpn_::limb_size_bits)
 

#define MAX x,
 )     ((x) >? (y))
 

#define MIN x,
 )     ((x) <? (y))
 


Typedef Documentation

typedef unsigned char mp::byte
 

Convenience renaming.

typedef double mp::float_type
 

Basic non-mpf float type.

typedef uint32_t mp::limb_long_type
 

Type of double-long limbs.

typedef uint16_t mp::limb_type
 

Type of normal limbs.

typedef unsigned char mp::radix_type
 

String conversion radix number type.

typedef intptr_t mp::size_type
 

This is preferred to be signed for comparison reasons.


Enumeration Type Documentation

enum mp::capability
 

Enumeration values:
IS_SIGNED  Class has sign capability.
IS_RATIONAL  Class has rational number capability.
IS_FLOAT  Class has floating point capability.
CAN_INTERRUPT  Class is interruptable.


Variable Documentation

class class typedef signed int mp::int_type
 

Basic non-mpi signed integer type.

class typedef std::vector<byte> mp::raw_type
 

Raw number I/O type.


Generated on Fri Feb 4 16:17:55 2005 for LibMP++ by  doxygen 1.4.1