#include <stdio.h>
#include <string.h>
#include "misc/auxiliary.h"
#include "omalloc/omalloc.h"
#include "reporter/reporter.h"
#include "coeffs/coeffs.h"
#include "coeffs/numbers.h"
#include "coeffs/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()
const char* nlEatLong |
( |
char * |
s, |
|
|
mpz_ptr |
i |
|
) |
| |
Definition at line 31 of file longrat0.cc.
36 while (*
s >=
'0' && *
s <=
'9')
s++;
39 mpz_set_str(
i,start,10);
45 mpz_set_str(
i,start,10);
◆ nlRead()
Definition at line 53 of file longrat0.cc.
77 if (mpz_cmp_si(n,0L)==0)
83 else if (mpz_cmp_si(n,1L)==0)
89 if (mpz_cmp_si(z,0L)==0)
◆ nlWrite()
void nlWrite |
( |
number |
a, |
|
|
const |
coeffs |
|
) |
| |
Definition at line 112 of file longrat0.cc.
126 int l=mpz_sizeinbase(a->z,10);
127 if (a->s<2)
l=
si_max(
l,(
int)mpz_sizeinbase(a->n,10));
130 z=mpz_get_str(
s,10,a->z);
135 z=mpz_get_str(
s,10,a->n);
◆ rnumber_bin