Lines Matching refs:places_rdx
580 size_t nrdx, places_rdx; in bc_num_truncate() local
587 places_rdx = nrdx ? nrdx - BC_NUM_RDX(n->scale - places) : 0; in bc_num_truncate()
590 assert(places <= n->scale && (BC_NUM_ZERO(n) || places_rdx <= n->len)); in bc_num_truncate()
593 BC_NUM_RDX_SET(n, nrdx - places_rdx); in bc_num_truncate()
604 n->len -= places_rdx; in bc_num_truncate()
609 memmove(n->num, n->num + places_rdx, BC_NUM_SIZE(n->len)); in bc_num_truncate()
621 size_t nrdx, places_rdx; in bc_num_extend() local
635 places_rdx = BC_NUM_RDX(places + n->scale) - nrdx; in bc_num_extend()
639 if (places_rdx) in bc_num_extend()
641 bc_num_expand(n, bc_vm_growSize(n->len, places_rdx)); in bc_num_extend()
643 memmove(n->num + places_rdx, n->num, BC_NUM_SIZE(n->len)); in bc_num_extend()
645 memset(n->num, 0, BC_NUM_SIZE(places_rdx)); in bc_num_extend()
649 BC_NUM_RDX_SET(n, nrdx + places_rdx); in bc_num_extend()
651 n->len += places_rdx; in bc_num_extend()
767 bc_num_unshiftZero(BcNum* restrict n, size_t places_rdx) in bc_num_unshiftZero() argument
769 n->len += places_rdx; in bc_num_unshiftZero()
770 n->num -= places_rdx; in bc_num_unshiftZero()
819 size_t places_rdx; in bc_num_shiftLeft() local
848 places_rdx = BC_NUM_RDX(places); in bc_num_shiftLeft()
859 if (nrdx >= places_rdx) in bc_num_shiftLeft()
871 if (mod + revdig > BC_BASE_DIGS) places_rdx = 1; in bc_num_shiftLeft()
872 else places_rdx = 0; in bc_num_shiftLeft()
874 else places_rdx -= nrdx; in bc_num_shiftLeft()
878 if (places_rdx) in bc_num_shiftLeft()
880 bc_num_expand(n, bc_vm_growSize(n->len, places_rdx)); in bc_num_shiftLeft()
882 memmove(n->num + places_rdx, n->num, BC_NUM_SIZE(n->len)); in bc_num_shiftLeft()
884 memset(n->num, 0, BC_NUM_SIZE(places_rdx)); in bc_num_shiftLeft()
885 n->len += places_rdx; in bc_num_shiftLeft()
910 size_t places_rdx, scale, scale_mod, int_len, expand; in bc_num_shiftRight() local
935 places_rdx = BC_NUM_RDX(places); in bc_num_shiftRight()
940 expand = places_rdx - 1; in bc_num_shiftRight()
941 places_rdx = 1; in bc_num_shiftRight()
945 expand = places_rdx; in bc_num_shiftRight()
946 places_rdx = 0; in bc_num_shiftRight()
954 bc_num_extend(n, places_rdx * BC_BASE_DIGS); in bc_num_shiftRight()