Lines Matching refs:ulen

5368           mpd_size_t ulen, mpd_size_t vlen,  in _mpd_kmul()  argument
5374 assert(ulen >= 4); in _mpd_kmul()
5375 assert(ulen >= vlen); in _mpd_kmul()
5377 *rsize = _kmul_resultsize(ulen, vlen); in _mpd_kmul()
5382 m = _kmul_worksize(ulen, MPD_KARATSUBA_BASECASE); in _mpd_kmul()
5388 _karatsuba_rec(result, u, v, w, ulen, vlen); in _mpd_kmul()
5491 mpd_size_t ulen, mpd_size_t vlen, in _mpd_fntmul() argument
5502 *rsize = add_size_t(ulen, vlen); in _mpd_fntmul()
5517 memcpy(c1, u, ulen * (sizeof *c1)); in _mpd_fntmul()
5518 memcpy(c2, u, ulen * (sizeof *c2)); in _mpd_fntmul()
5519 memcpy(c3, u, ulen * (sizeof *c3)); in _mpd_fntmul()
5677 mpd_size_t ulen, mpd_size_t vlen, in _mpd_kmul_fnt() argument
5683 assert(ulen >= 4); in _mpd_kmul_fnt()
5684 assert(ulen >= vlen); in _mpd_kmul_fnt()
5686 *rsize = _kmul_resultsize(ulen, vlen); in _mpd_kmul_fnt()
5691 m = _kmul_worksize(ulen, 3*(MPD_MAXTRANSFORM_2N/2)); in _mpd_kmul_fnt()
5697 if (!_karatsuba_rec_fnt(result, u, v, w, ulen, vlen)) { in _mpd_kmul_fnt()
7909 mpd_uint_t *u, mpd_ssize_t ulen) in _baseconv_to_u16() argument
7913 assert(wlen > 0 && ulen > 0); in _baseconv_to_u16()
7923 (*w)[n++] = (uint16_t)_mpd_shortdiv(u, u, ulen, wbase); in _baseconv_to_u16()
7925 ulen = _mpd_real_size(u, ulen); in _baseconv_to_u16()
7927 } while (u[ulen-1] != 0); in _baseconv_to_u16()
7934 const mpd_uint_t *u, size_t ulen, uint32_t ubase, in _coeff_from_u16() argument
7940 assert(wlen > 0 && ulen > 0); in _coeff_from_u16()
7943 w->data[n++] = u[--ulen]; in _coeff_from_u16()
7944 while (--ulen != SIZE_MAX) { in _coeff_from_u16()
7955 carry = _mpd_shortadd(w->data, n, u[ulen]); in _coeff_from_u16()
7973 mpd_uint_t *u, mpd_ssize_t ulen, mpd_uint_t ubase) in _baseconv_to_smaller() argument
7977 assert(wlen > 0 && ulen > 0); in _baseconv_to_smaller()
7987 (*w)[n++] = (uint32_t)_mpd_shortdiv_b(u, u, ulen, wbase, ubase); in _baseconv_to_smaller()
7989 ulen = _mpd_real_size(u, ulen); in _baseconv_to_smaller()
7991 } while (u[ulen-1] != 0); in _baseconv_to_smaller()
8000 const uint32_t *u, size_t ulen) in _copy_equal_base() argument
8002 if (wlen < ulen) { in _copy_equal_base()
8003 if (!mpd_resize_u32(w, ulen)) { in _copy_equal_base()
8008 memcpy(*w, u, ulen * (sizeof **w)); in _copy_equal_base()
8009 return ulen; in _copy_equal_base()
8015 const mpd_uint_t *u, size_t ulen, mpd_uint_t ubase) in _baseconv_to_larger() argument
8020 assert(wlen > 0 && ulen > 0); in _baseconv_to_larger()
8023 (*w)[n++] = u[--ulen]; in _baseconv_to_larger()
8024 while (--ulen != SIZE_MAX) { in _baseconv_to_larger()
8035 carry = _mpd_shortadd_b(*w, n, u[ulen], wbase); in _baseconv_to_larger()
8053 mpd_uint_t *u, mpd_ssize_t ulen, mpd_uint_t ubase, in _coeff_from_larger_base() argument
8058 assert(wlen > 0 && ulen > 0); in _coeff_from_larger_base()
8068 w->data[n++] = (uint32_t)_mpd_shortdiv_b(u, u, ulen, wbase, ubase); in _coeff_from_larger_base()
8070 ulen = _mpd_real_size(u, ulen); in _coeff_from_larger_base()
8072 } while (u[ulen-1] != 0); in _coeff_from_larger_base()
8081 const uint32_t *u, size_t ulen, mpd_uint_t ubase, in _coeff_from_smaller_base() argument
8087 assert(wlen > 0 && ulen > 0); in _coeff_from_smaller_base()
8090 w->data[n++] = u[--ulen]; in _coeff_from_smaller_base()
8091 while (--ulen != SIZE_MAX) { in _coeff_from_smaller_base()
8102 carry = _mpd_shortadd_b(w->data, n, u[ulen], wbase); in _coeff_from_smaller_base()