Home
last modified time | relevance | path

Searched refs:places_rdx (Results 1 – 1 of 1) sorted by relevance

/external/bc/src/
Dnum.c303 size_t nrdx, places_rdx; in bc_num_truncate() local
308 places_rdx = nrdx ? nrdx - BC_NUM_RDX(n->scale - places) : 0; in bc_num_truncate()
309 assert(places <= n->scale && (BC_NUM_ZERO(n) || places_rdx <= n->len)); in bc_num_truncate()
312 BC_NUM_RDX_SET(n, nrdx - places_rdx); in bc_num_truncate()
322 n->len -= places_rdx; in bc_num_truncate()
323 memmove(n->num, n->num + places_rdx, BC_NUM_SIZE(n->len)); in bc_num_truncate()
334 size_t nrdx, places_rdx; in bc_num_extend() local
343 places_rdx = BC_NUM_RDX(places + n->scale) - nrdx; in bc_num_extend()
345 if (places_rdx) { in bc_num_extend()
346 bc_num_expand(n, bc_vm_growSize(n->len, places_rdx)); in bc_num_extend()
[all …]