version 1.27, 2005/03/27 17:50:55 |
version 1.28, 2005/03/28 17:39:20 |
|
|
|
|
#ifdef DEBUGGING |
#ifdef DEBUGGING |
void |
void |
pn(const char * str, const struct number *n) |
pn(const char *str, const struct number *n) |
{ |
{ |
char *p = BN_bn2dec(n->number); |
char *p = BN_bn2dec(n->number); |
if (p == NULL) |
if (p == NULL) |
|
|
} |
} |
|
|
void |
void |
pbn(const char * str, const BIGNUM *n) |
pbn(const char *str, const BIGNUM *n) |
{ |
{ |
char *p = BN_bn2dec(n); |
char *p = BN_bn2dec(n); |
if (p == NULL) |
if (p == NULL) |
|
|
negate(p); |
negate(p); |
scale = bmachine.scale; |
scale = bmachine.scale; |
} else { |
} else { |
/* Posix bc says min(a.scale * b, max(a.scale, scale) */ |
/* Posix bc says min(a.scale *b, max(a.scale, scale) */ |
u_long b; |
u_long b; |
u_int m; |
u_int m; |
|
|