#include <stdio.h>
#include <string.h>
#include <misc/auxiliary.h>
#include <omalloc/omalloc.h>
#include <reporter/reporter.h>
#include "coeffs.h"
#include "numbers.h"
#include "longrat.h"
Go to the source code of this file.
§ SR_HDL
#define SR_HDL |
( |
|
A | ) |
((long)(A)) |
§ SR_TO_INT
#define SR_TO_INT |
( |
|
SR | ) |
(((long)SR) >> 2) |
§ nlEatLong()
static const char* nlEatLong |
( |
char * |
s, |
|
|
mpz_ptr |
i |
|
) |
| |
|
static |
Definition at line 35 of file longrat0.cc.
39 while (*
s >=
'0' && *
s <=
'9')
s++;
42 mpz_set_str(
i,start,10);
48 mpz_set_str(
i,start,10);
const CanonicalForm int s
§ nlRead()
Definition at line 57 of file longrat0.cc.
80 if (mpz_cmp_si(n,0L)==0)
86 else if (mpz_cmp_si(n,1L)==0)
92 if (mpz_cmp_si(z,0L)==0)
const CanonicalForm int s
void WerrorS(const char *s)
const char *const nDivBy0
number nlShort3_noinline(number x)
void nlNormalize(number &x, const coeffs r)
static const char * nlEatLong(char *s, mpz_ptr i)
§ nlWrite()
Definition at line 116 of file longrat0.cc.
135 int l=mpz_sizeinbase(
a->z,10);
136 if (
a->s<2) l=
si_max(l,(
int)mpz_sizeinbase(
a->n,10));
139 z=mpz_get_str(s,10,
a->z);
144 z=mpz_get_str(s,10,
a->n);
const CanonicalForm int s
void nlWrite(number a, const coeffs r)
#define omFreeSize(addr, size)
void StringAppendS(const char *st)
static int si_max(const int a, const int b)
void nlNormalize(number &x, const coeffs r)
§ ID
§ rnumber_bin