Loading...
Searching...
No Matches
rintegers.h
Go to the documentation of this file.
#ifndef RINTEGERS_H
#define RINTEGERS_H
/****************************************
* Computer Algebra System SINGULAR *
****************************************/
/*
* ABSTRACT: numbers as ZZ
*/
#include "misc/auxiliary.h"
#include "coeffs/coeffs.h"
#if SI_INTEGER_VARIANT == 3
#define SR_HDL(A) ((long)(A))
#define SR_INT 1L
#define INT_TO_SR(INT) ((number) (((long)INT << 2) + SR_INT))
#define SR_TO_INT(SR) (((long)SR) >> 2)
#define n_Z_IS_SMALL(A) (SR_HDL(A) & SR_INT)
#define INT_IS_SMALL(A) ( ((A << 1) >> 1) == A )
#endif
//extern int nrzExp;
//extern unsigned long nrzModul;
BOOLEAN nrzInitChar (coeffs r, void * parameter);
void nrzWrite (number a, const coeffs r); /*for rmodulon.cc*/
void nrzDelete (number *a, const coeffs); /*for rmodulon.cc*/
int nrzSize (number a, const coeffs); /*for rmodulon.cc*/
void nrzWriteFd(number n, const ssiInfo* d, const coeffs); /*for rmodulon.cc*/
void nrzWriteFd_S(number n, const coeffs); /*for rmodulon.cc*/
number nrzReadFd(const ssiInfo *d, const coeffs); /*for rmodulon.cc*/
number nrzReadFd_S(char**s, const coeffs); /*for rmodulon.cc*/
number nrzInit (long i, const coeffs r); /*for SAGE, better: n_Init*/
#endif
auxiliary.h
All the auxiliary stuff.
BOOLEAN
int BOOLEAN
Definition auxiliary.h:88
i
int i
Definition cfEzgcd.cc:132
coeffs.h
Coefficient rings, fields and other domains suitable for Singular polynomials.
s
const CanonicalForm int s
Definition facAbsFact.cc:51
coeffs
The main handler for Singular numbers which are suitable for Singular polynomials.
nrzReadFd
number nrzReadFd(const ssiInfo *d, const coeffs)
nrzWrite
void nrzWrite(number a, const coeffs r)
nrzWriteFd_S
void nrzWriteFd_S(number n, const coeffs)
nrzDelete
void nrzDelete(number *a, const coeffs)
nrzSize
int nrzSize(number a, const coeffs)
nrzReadFd_S
number nrzReadFd_S(char **s, const coeffs)
nrzInitChar
BOOLEAN nrzInitChar(coeffs r, void *parameter)
nrzInit
number nrzInit(long i, const coeffs r)
nrzWriteFd
void nrzWriteFd(number n, const ssiInfo *d, const coeffs)
ssiInfo
Definition s_buff.h:21