mirror of
https://github.com/vale981/arb
synced 2025-03-06 01:41:39 -05:00
17 lines
329 B
C
17 lines
329 B
C
#include "mprb.h"
|
|
|
|
void
|
|
mprb_init(mprb_t x, long bits)
|
|
{
|
|
long limbs = _MPR_BITS_TO_LIMBS(bits);
|
|
|
|
x->mid.d = calloc(limbs, sizeof(mp_limb_t));
|
|
x->mid.exp = 0;
|
|
x->mid.sign = MPRB_SIGN_PLUS;
|
|
x->mid.alloc = limbs;
|
|
x->mid.size = limbs;
|
|
|
|
/* XXX: ufloat_zero */
|
|
x->rad.man = 0UL;
|
|
x->rad.exp = 0L;
|
|
}
|