![]() |
My Project
|
operations on immediates, that is elements of F_p, GF, Z, Q that fit into intrinsic int, long More...
#include <stdint.h>
#include <iostream>
#include "cf_assert.h"
#include "cf_defs.h"
#include "cf_globals.h"
#include "ffops.h"
#include "gfops.h"
#include "cf_factory.h"
#include "canonicalform.h"
#include "int_cf.h"
Go to the source code of this file.
Macros | |
#define | OSTREAM std::ostream |
Variables | |
const long | INTMARK = 1 |
const long | FFMARK = 2 |
const long | GFMARK = 3 |
const long | MINIMMEDIATE = -(1L<<60)+2L |
const long | MAXIMMEDIATE = (1L<<60)-2L |
const FACTORY_INT64 | MINIMMEDIATELL = -268435454LL |
const FACTORY_INT64 | MAXIMMEDIATELL = 268435454LL |
operations on immediates, that is elements of F_p, GF, Z, Q that fit into intrinsic int, long
Definition in file imm.h.
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
imm_cmp(), imm_cmp_p(), imm_cmp_gf() - compare immediate objects.
For immediate integers, it is clear how this should be done. For objects from finite fields, it is not clear since they are not ordered fields. However, since we want to have a total well order on polynomials we have to define a total well order on all coefficients, too. We decided to use simply the order on the representation as `int's of such objects.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 433 of file imm.h.
|
inline |
|
inline |
|
inline |
Definition at line 164 of file imm.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
imm_sign() - return sign of immediate object.
If CO is an immediate integer, the sign is defined as usual. If CO is an element of FF(p) and SW_SYMMETRIC_FF is on the sign of CO is the sign of the symmetric representation of CO. If CO is in GF(q) or in FF(p) and SW_SYMMETRIC_FF is off, the sign of CO is zero iff CO is zero, otherwise the sign is one.
Definition at line 200 of file imm.h.
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inline |
|
inline |
const FACTORY_INT64 MAXIMMEDIATELL = 268435454LL |
const FACTORY_INT64 MINIMMEDIATELL = -268435454LL |