mirror of
https://github.com/Z3Prover/z3
synced 2025-04-29 20:05:51 +00:00
fix compiler warnings
This commit is contained in:
parent
a2e0646eed
commit
8ad480ab59
6 changed files with 80 additions and 97 deletions
|
@ -27,45 +27,42 @@ typedef unsigned int mpn_digit;
|
|||
class mpn_manager {
|
||||
|
||||
public:
|
||||
mpn_manager();
|
||||
~mpn_manager();
|
||||
int compare(mpn_digit const * a, unsigned lnga,
|
||||
mpn_digit const * b, unsigned lngb) const;
|
||||
|
||||
int compare(mpn_digit const * a, size_t lnga,
|
||||
mpn_digit const * b, size_t lngb) const;
|
||||
bool add(mpn_digit const * a, unsigned lnga,
|
||||
mpn_digit const * b, unsigned lngb,
|
||||
mpn_digit *c, unsigned lngc_alloc,
|
||||
unsigned * plngc) const;
|
||||
|
||||
bool add(mpn_digit const * a, size_t lnga,
|
||||
mpn_digit const * b, size_t lngb,
|
||||
mpn_digit *c, size_t lngc_alloc,
|
||||
size_t * plngc) const;
|
||||
|
||||
bool sub(mpn_digit const * a, size_t lnga,
|
||||
mpn_digit const * b, size_t lngb,
|
||||
bool sub(mpn_digit const * a, unsigned lnga,
|
||||
mpn_digit const * b, unsigned lngb,
|
||||
mpn_digit * c, mpn_digit * pborrow) const;
|
||||
|
||||
bool mul(mpn_digit const * a, size_t lnga,
|
||||
mpn_digit const * b, size_t lngb,
|
||||
bool mul(mpn_digit const * a, unsigned lnga,
|
||||
mpn_digit const * b, unsigned lngb,
|
||||
mpn_digit * c) const;
|
||||
|
||||
bool div(mpn_digit const * numer, size_t lnum,
|
||||
mpn_digit const * denom, size_t lden,
|
||||
bool div(mpn_digit const * numer, unsigned lnum,
|
||||
mpn_digit const * denom, unsigned lden,
|
||||
mpn_digit * quot,
|
||||
mpn_digit * rem);
|
||||
|
||||
char * to_string(mpn_digit const * a, size_t lng,
|
||||
char * buf, size_t lbuf) const;
|
||||
char * to_string(mpn_digit const * a, unsigned lng,
|
||||
char * buf, unsigned lbuf) const;
|
||||
private:
|
||||
using mpn_sbuffer = sbuffer<mpn_digit>;
|
||||
|
||||
static const mpn_digit zero;
|
||||
void display_raw(std::ostream & out, mpn_digit const * a, size_t lng) const;
|
||||
void display_raw(std::ostream & out, mpn_digit const * a, unsigned lng) const;
|
||||
|
||||
size_t div_normalize(mpn_digit const * numer, size_t lnum,
|
||||
mpn_digit const * denom, size_t lden,
|
||||
unsigned div_normalize(mpn_digit const * numer, unsigned lnum,
|
||||
mpn_digit const * denom, unsigned lden,
|
||||
mpn_sbuffer & n_numer,
|
||||
mpn_sbuffer & n_denom) const;
|
||||
|
||||
void div_unnormalize(mpn_sbuffer & numer, mpn_sbuffer & denom,
|
||||
size_t d, mpn_digit * rem) const;
|
||||
unsigned d, mpn_digit * rem) const;
|
||||
|
||||
bool div_1(mpn_sbuffer & numer, mpn_digit denom,
|
||||
mpn_digit * quot) const;
|
||||
|
@ -74,10 +71,10 @@ private:
|
|||
mpn_digit * quot, mpn_digit * rem,
|
||||
mpn_sbuffer & ms, mpn_sbuffer & ab) const;
|
||||
|
||||
void trace(mpn_digit const * a, size_t lnga,
|
||||
mpn_digit const * b, size_t lngb,
|
||||
void trace(mpn_digit const * a, unsigned lnga,
|
||||
mpn_digit const * b, unsigned lngb,
|
||||
const char * op) const;
|
||||
|
||||
void trace(mpn_digit const * a, size_t lnga) const;
|
||||
void trace_nl(mpn_digit const * a, size_t lnga) const;
|
||||
void trace(mpn_digit const * a, unsigned lnga) const;
|
||||
void trace_nl(mpn_digit const * a, unsigned lnga) const;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue