My Project
Loading...
Searching...
No Matches
Macros | Functions
cf_factory.cc File Reference
#include "config.h"
#include "cf_assert.h"
#include "cf_defs.h"
#include "cf_factory.h"
#include "canonicalform.h"
#include "int_cf.h"
#include "int_int.h"
#include "int_rat.h"
#include "int_poly.h"
#include "int_pp.h"
#include "imm.h"

Go to the source code of this file.

Macros

#define LIKELY(expression)   (expression)
 For optimizing if-branches. More...
 
#define UNLIKELY(expression)   (expression)
 

Functions

void getmpi (InternalCF *value, mpz_t mpi)
 

Macro Definition Documentation

◆ LIKELY

#define LIKELY (   expression)    (expression)

For optimizing if-branches.

Definition at line 24 of file cf_factory.cc.

◆ UNLIKELY

#define UNLIKELY (   expression)    (expression)

Definition at line 25 of file cf_factory.cc.

Function Documentation

◆ getmpi()

void getmpi ( InternalCF value,
mpz_t  mpi 
)

Definition at line 303 of file cf_factory.cc.

304{
305 ASSERT( ! is_imm( value ) && (value->levelcoeff() == IntegerDomain || value->levelcoeff() == PrimePowerDomain), "illegal operation" );
306 mpz_init_set (mpi, ((InternalInteger*)value)->thempi);
307}
int is_imm(const InternalCF *const ptr)
Definition: canonicalform.h:65
#define ASSERT(expression, message)
Definition: cf_assert.h:99
#define PrimePowerDomain
Definition: cf_defs.h:17
#define IntegerDomain
Definition: cf_defs.h:21
virtual int levelcoeff() const
Definition: int_cf.h:68
factory's class for integers
Definition: int_int.h:41