![]() |
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 |
Functions | |
| static long | imm2int (const InternalCF *const imm) |
| static InternalCF * | int2imm (long i) |
| InternalCF * | int2imm_p (long i) |
| InternalCF * | int2imm_gf (long i) |
| int | imm_isone (const InternalCF *const ptr) |
| int | imm_isone_p (const InternalCF *const ptr) |
| int | imm_isone_gf (const InternalCF *const ptr) |
| int | imm_iszero (const InternalCF *const ptr) |
| int | imm_iszero_p (const InternalCF *const ptr) |
| int | imm_iszero_gf (const InternalCF *const ptr) |
| long | imm_intval (const InternalCF *const op) |
| int | imm_sign (const InternalCF *const op) |
| imm_sign() - return sign of immediate object. | |
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 |
Definition at line 164 of file imm.h.
|
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.
|
inlinestatic |
|
inline |
|
inline |
| const FACTORY_INT64 MAXIMMEDIATELL = 268435454LL |
| const FACTORY_INT64 MINIMMEDIATELL = -268435454LL |