Home
last modified time | relevance | path

Searched refs:wsize (Results 1 – 25 of 73) sorted by relevance

123

/netbsd/src/external/lgpl3/gmp/dist/mpz/
Daors.h54 mp_size_t usize, vsize, wsize; variable
74 wsize = abs_usize + 1;
75 wp = MPZ_REALLOC (w, wsize);
90 wsize = abs_usize;
91 MPN_NORMALIZE (wp, wsize);
93 wsize = -wsize;
98 wsize = abs_usize;
99 MPN_NORMALIZE (wp, wsize);
101 wsize = -wsize;
106 wsize = abs_usize;
[all …]
Dcfdiv_q_2exp.c43 mp_size_t wsize, usize, abs_usize, limb_cnt, i; in cfdiv_q_2exp() local
51 wsize = abs_usize - limb_cnt; in cfdiv_q_2exp()
52 if (wsize <= 0) in cfdiv_q_2exp()
61 wp = MPZ_REALLOC (w, wsize+1); in cfdiv_q_2exp()
75 round |= rmask & mpn_rshift (wp, up + limb_cnt, wsize, cnt); in cfdiv_q_2exp()
76 wsize -= (wp[wsize - 1] == 0); in cfdiv_q_2exp()
79 MPN_COPY_INCR (wp, up + limb_cnt, wsize); in cfdiv_q_2exp()
83 if (wsize != 0) in cfdiv_q_2exp()
86 cy = mpn_add_1 (wp, wp, wsize, CNST_LIMB(1)); in cfdiv_q_2exp()
87 wp[wsize] = cy; in cfdiv_q_2exp()
[all …]
Daorsmul.c53 mp_size_t xsize, ysize, tsize, wsize, wsize_signed; in mpz_aorsmul() local
86 wsize = ABS(wsize_signed); in mpz_aorsmul()
89 wp = MPZ_REALLOC (w, MAX (wsize, tsize) + 1); in mpz_aorsmul()
110 mp_size_t usize = wsize; in mpz_aorsmul()
117 tsize = wsize; in mpz_aorsmul()
119 wsize = usize; in mpz_aorsmul()
123 wp[wsize] = c; in mpz_aorsmul()
124 wsize += (c != 0); in mpz_aorsmul()
129 mp_size_t usize = wsize; in mpz_aorsmul()
136 tsize = wsize; in mpz_aorsmul()
[all …]
Daorsmul_i.c71 mp_size_t xsize, wsize, wsize_signed, new_wsize, min_size, dsize; in mpz_aorsmul_1() local
97 wsize = ABS (wsize_signed); in mpz_aorsmul_1()
99 new_wsize = MAX (wsize, xsize); in mpz_aorsmul_1()
102 min_size = MIN (wsize, xsize); in mpz_aorsmul_1()
112 dsize = xsize - wsize; in mpz_aorsmul_1()
144 if (wsize >= xsize) in mpz_aorsmul_1()
147 if (wsize != xsize) in mpz_aorsmul_1()
148 cy = mpn_sub_1 (wp+xsize, wp+xsize, wsize-xsize, cy); in mpz_aorsmul_1()
169 mpn_com (wp, wp, wsize); in mpz_aorsmul_1()
170 cy += mpn_add_1 (wp, wp, wsize, CNST_LIMB(1)); in mpz_aorsmul_1()
[all …]
Dmul.c41 mp_size_t wsize; in mpz_mul() local
103 wsize = usize + vsize; in mpz_mul()
104 if (ALLOC (w) < wsize) in mpz_mul()
117 ALLOC (w) = wsize; in mpz_mul()
118 wp = __GMP_ALLOCATE_FUNC_LIMBS (wsize); in mpz_mul()
146 cy_limb = wp[wsize - 1]; in mpz_mul()
153 wsize -= cy_limb == 0; in mpz_mul()
155 SIZ (w) = sign_product < 0 ? -wsize : wsize; in mpz_mul()
Daors_ui.h62 mp_size_t usize, wsize; variable
100 wsize = VARIATION_NEG (abs_usize + cy);
109 wsize = VARIATION_NEG 1;
115 wsize = VARIATION_UNNEG (abs_usize - (wp[abs_usize - 1] == 0));
119 SIZ (w) = wsize;
/netbsd/src/common/lib/libc/string/
Dbcopy.c67 #define wsize sizeof(word) macro
68 #define wmask (wsize - 1)
110 if ((u ^ (unsigned long)dst) & wmask || length < wsize) in memcpy()
113 t = wsize - (size_t)(u & wmask); in memcpy()
120 t = length / wsize; in memcpy()
121 … TLOOP(*(word *)(void *)dst = *(const word *)(const void *)src; src += wsize; dst += wsize); in memcpy()
136 if ((u ^ (unsigned long)dst) & wmask || length <= wsize) in memcpy()
143 t = length / wsize; in memcpy()
144 … TLOOP(src -= wsize; dst -= wsize; *(word *)(void *)dst = *(const word *)(const void *)src); in memcpy()
Dmemset.c58 #define wsize sizeof(u_int) macro
59 #define wmask (wsize - 1)
123 if (length < 3 * wsize) {
144 t = wsize - t;
152 t = length / wsize;
155 dst += wsize;
/netbsd/src/lib/libedit/
Dchartype.c71 ct_conv_wbuff_resize(ct_buffer_t *conv, size_t wsize) in ct_conv_wbuff_resize() argument
75 if (wsize <= conv->wsize) in ct_conv_wbuff_resize()
78 conv->wsize = wsize; in ct_conv_wbuff_resize()
80 p = el_realloc(conv->wbuff, conv->wsize * sizeof(*conv->wbuff)); in ct_conv_wbuff_resize()
82 conv->wsize = 0; in ct_conv_wbuff_resize()
134 if (conv->wsize < ++len) in ct_decode_string()
138 mbstowcs(conv->wbuff, s, conv->wsize); in ct_decode_string()
156 if (conv->wsize < ++bufspace) in ct_decode_argv()
230 conv->wsize - (size_t)(dst - conv->wbuff), *s); in ct_visual_string()
239 if (ct_conv_wbuff_resize(conv, conv->wsize + CT_BUFSIZ) == -1) in ct_visual_string()
[all …]
/netbsd/src/external/bsd/nvi/dist/clib/
Dmemset.c56 #define wsize sizeof(u_int) macro
57 #define wmask (wsize - 1)
98 if (length < 3 * wsize) {
119 t = wsize - t;
127 t = length / wsize;
130 dst += wsize;
/netbsd/src/external/lgpl3/gmp/dist/tests/mpz/
Dt-mul.c146 mp_size_t wsize; in refmpz_mul() local
173 wsize = usize + vsize; in refmpz_mul()
174 wsize -= wp[wsize - 1] == 0; in refmpz_mul()
175 MPZ_REALLOC (w, wsize); in refmpz_mul()
176 MPN_COPY (PTR(w), wp, wsize); in refmpz_mul()
178 SIZ(w) = sign_product < 0 ? -wsize : wsize; in refmpz_mul()
/netbsd/src/external/bsd/am-utils/dist/include/
Dnfs_common.h44 u_long wsize; member
87 nap->wsize = a.wsize; \
100 a.wsize = nap->wsize; \
/netbsd/src/common/dist/zlib/
Dinfback.c60 state->wsize = 1U << windowBits; in inflateBackInit_()
208 left = state->wsize; \
276 left = state->wsize; in inflateBack()
475 if (state->whave < state->wsize) in inflateBack()
476 state->whave = state->wsize - left; in inflateBack()
477 inflate_fast(strm, state->wsize); in inflateBack()
567 if (state->offset > state->wsize - (state->whave < state->wsize ? in inflateBack()
578 copy = state->wsize - state->offset; in inflateBack()
613 if (left < state->wsize) { in inflateBack()
614 if (out(out_desc, state->window, state->wsize - left) && in inflateBack()
Dinffast.c62 unsigned wsize; /* window size or zero if not using window */ in inflate_fast() local
89 wsize = state->wsize; in inflate_fast()
200 from += wsize - op; in inflate_fast()
210 from += wsize + wnext - op; in inflate_fast()
Dinflate.c137 state->wsize = 0; in inflateReset()
385 if (state->wsize == 0) { in updatewindow()
386 state->wsize = 1U << state->wbits; in updatewindow()
392 if (copy >= state->wsize) { in updatewindow()
393 zmemcpy(state->window, end - state->wsize, state->wsize); in updatewindow()
395 state->whave = state->wsize; in updatewindow()
398 dist = state->wsize - state->wnext; in updatewindow()
405 state->whave = state->wsize; in updatewindow()
409 if (state->wnext == state->wsize) state->wnext = 0; in updatewindow()
410 if (state->whave < state->wsize) state->whave += dist; in updatewindow()
[all …]
/netbsd/src/external/cddl/osnet/dist/uts/common/zmod/
Dinflate.c125 state->wsize = 0;
348 if (state->wsize == 0) {
349 state->wsize = 1U << state->wbits;
356 if (copy >= state->wsize) {
357 zmemcpy(state->window, strm->next_out - state->wsize, state->wsize);
359 state->whave = state->wsize;
362 dist = state->wsize - state->write;
369 state->whave = state->wsize;
373 if (state->write == state->wsize) state->write = 0;
374 if (state->whave < state->wsize) state->whave += dist;
[all …]
Dinffast.c82 unsigned wsize; /* window size or zero if not using window */ local
109 wsize = state->wsize;
198 from += wsize - op;
208 from += wsize + write - op;
Ddeflate.c1278 uInt wsize = s->w_size; local
1286 more = wsize;
1299 if (s->strstart >= wsize+MAX_DIST(s)) {
1301 zmemcpy(s->window, s->window+wsize, (unsigned)wsize);
1302 s->match_start -= wsize;
1303 s->strstart -= wsize; /* we now have strstart >= MAX_DIST */
1304 s->block_start -= (long) wsize;
1317 *p = (Pos)(m >= wsize ? m-wsize : NIL);
1320 n = wsize;
1325 *p = (Pos)(m >= wsize ? m-wsize : NIL);
[all …]
/netbsd/src/crypto/external/bsd/openssl/dist/crypto/ec/
Dec_mult.c423 size_t *wsize = NULL; /* individual window sizes */ in ossl_ec_wNAF_mul() local
513 wsize = OPENSSL_malloc(totalnum * sizeof(wsize[0])); in ossl_ec_wNAF_mul()
523 if (wsize == NULL || wNAF_len == NULL || wNAF == NULL || val_sub == NULL) { in ossl_ec_wNAF_mul()
537 wsize[i] = EC_window_bits_for_scalar_size(bits); in ossl_ec_wNAF_mul()
538 num_val += (size_t)1 << (wsize[i] - 1); in ossl_ec_wNAF_mul()
541 bn_compute_wNAF((i < num ? scalars[i] : scalar), wsize[i], in ossl_ec_wNAF_mul()
570 wsize[num] = pre_comp->w; in ossl_ec_wNAF_mul()
571 tmp_wNAF = bn_compute_wNAF(scalar, wsize[num], &tmp_len); in ossl_ec_wNAF_mul()
674 for (j = 0; j < ((size_t)1 << (wsize[i] - 1)); j++) { in ossl_ec_wNAF_mul()
705 if (wsize[i] > 1) { in ossl_ec_wNAF_mul()
[all …]
/netbsd/src/crypto/external/bsd/netpgp/dist/src/netpgpverify/
Dzlib.c212 unsigned wsize; /* window size or zero if not using window */ member
284 state->wsize = 0; in inflateReset()
497 if (state->wsize == 0) { in updatewindow()
498 state->wsize = 1U << state->wbits; in updatewindow()
505 if (copy >= state->wsize) { in updatewindow()
506 zmemcpy(state->window, strm->next_out - state->wsize, state->wsize); in updatewindow()
508 state->whave = state->wsize; in updatewindow()
511 dist = state->wsize - state->write; in updatewindow()
518 state->whave = state->wsize; in updatewindow()
522 if (state->write == state->wsize) state->write = 0; in updatewindow()
[all …]
/netbsd/src/external/lgpl3/gmp/dist/tests/
Drefmpf.c305 mp_size_t gsize, wsize, cmpsize, i; in refmpf_validate() local
318 wsize = SIZ (want); in refmpf_validate()
319 if ((gsize < 0 && wsize > 0) || (gsize > 0 && wsize < 0)) in refmpf_validate()
326 wsize = ABS (wsize); in refmpf_validate()
330 wp = PTR (want) + wsize - 1; in refmpf_validate()
337 wlimb = (i < wsize ? wp[-i] : 0); in refmpf_validate()
/netbsd/src/sys/fs/nfs/common/
Dnfs_diskless.c143 nd->wsize = (int) v; in nfs_parse_options()
266 nd3->root_args.wsize = 32768; in nfs_setup_diskless()
305 nd->root_args.wsize = 8192; in nfs_setup_diskless()
334 args.wsize = nd->root_args.wsize; in nfs_setup_diskless()
339 nd->root_args.wsize = args.wsize; in nfs_setup_diskless()
/netbsd/src/external/bsd/am-utils/dist/conf/mount/
Dmount_aix3.c137 v2args.wsize = v3args->wsize; in mount_aix3()
164 v3args_bis.wsize = v3args->wsize; in mount_aix3()
/netbsd/src/external/bsd/am-utils/dist/conf/nfs_prot/
Dnfs_prot_aix4_3.h232 int wsize; /* write size in bytes */ member
255 unsigned long wsize; /* wsize */
284 unsigned long wsize; /* wsize */ member
/netbsd/src/sbin/mount_nfs/
Dmount_nfs.c146 .wsize = NFS_WSIZE,
332 nfsargsp->wsize = in mount_nfs_parseargs()
401 nfsargsp->wsize = getnum(optarg, c); in mount_nfs_parseargs()
496 nfsargsp->wsize, in shownfsargs()

123