/netbsd/external/lgpl3/gmp/dist/mpn/generic/ |
H A D | invertappr.c | 207 mpn_add_n (xp + rn, xp + rn, dp - n, n - rn + 1); in mpn_ni_invertappr() 231 chk = mpn_sublsh1_n (xp, xp, dp - n, n); in mpn_ni_invertappr() 235 ASSERT_CARRY (mpn_sub_n (xp, xp, dp - n, n)); in mpn_ni_invertappr() 238 if (cy++ && !mpn_sub_n (xp, xp, dp - n, n)) { in mpn_ni_invertappr() 239 ASSERT_CARRY (mpn_sub_n (xp, xp, dp - n, n)); in mpn_ni_invertappr() 252 ASSERT_NOCARRY (mpn_sub_n (xp, xp, dp - n, n)); in mpn_ni_invertappr() 263 ASSERT_CARRY (mpn_add_n (xp, xp, dp - n, n)); in mpn_ni_invertappr() 265 mpn_com (xp + 2 * n - rn, xp + n - rn, rn); in mpn_ni_invertappr() 269 mpn_mul_n (xp, xp + 2 * n - rn, ip - rn, rn); in mpn_ni_invertappr() 270 cy = mpn_add_n (xp + rn, xp + rn, xp + 2 * n - rn, 2 * rn - n); in mpn_ni_invertappr() [all …]
|
H A D | sqrmod_bnm1.c | 152 am1 = xp; in mpn_sqrmod_bnm1() 159 so = xp; in mpn_sqrmod_bnm1() 193 xp[n] = mpn_mul_fft (xp, n, ap1, anp, ap1, anp, k); in mpn_sqrmod_bnm1() 200 cy = mpn_sub (xp, xp, n, xp + n, anp); in mpn_sqrmod_bnm1() 201 xp[n] = 0; in mpn_sqrmod_bnm1() 205 mpn_bc_sqrmod_bnp1 (xp, ap1, n, xp); in mpn_sqrmod_bnm1() 221 cy = mpn_rsh1add_nc(rp, rp, xp, n, xp[n]); /* B^n = 1 */ in mpn_sqrmod_bnm1() 241 cy = mpn_add_nc(rp, rp, xp, n, xp[n]); in mpn_sqrmod_bnm1() 274 cy = xp[n] + mpn_sub_nc (xp + 2*an - n, rp + 2*an - n, in mpn_sqrmod_bnm1() 282 cy = xp[n] + mpn_sub_n (rp + n, rp, xp, n); in mpn_sqrmod_bnm1() [all …]
|
H A D | mulmod_bnm1.c | 168 am1 = xp; in mpn_mulmod_bnm1() 184 so = xp; in mpn_mulmod_bnm1() 227 xp[n] = mpn_mul_fft (xp, n, ap1, anp, bp1, bnp, k); in mpn_mulmod_bnm1() 237 cy = mpn_sub (xp, xp, n, xp + n, anp); in mpn_mulmod_bnm1() 238 xp[n] = 0; in mpn_mulmod_bnm1() 242 mpn_bc_mulmod_bnp1 (xp, ap1, bp1, n, xp); in mpn_mulmod_bnm1() 258 cy = mpn_rsh1add_nc(rp, rp, xp, n, xp[n]); /* B^n = 1 */ in mpn_mulmod_bnm1() 264 cy = xp[n] + mpn_rsh1add_n(rp, rp, xp, n); /* B^n = 1 */ in mpn_mulmod_bnm1() 278 cy = mpn_add_nc(rp, rp, xp, n, xp[n]); in mpn_mulmod_bnm1() 322 cy = xp[n] + mpn_sub_n (rp + n, rp, xp, n); in mpn_mulmod_bnm1() [all …]
|
H A D | sqrlo.c | 140 ASSERT (! MPN_OVERLAP_P (rp, n, xp, n)); in mpn_dc_sqrlo() 165 mpn_sqr (tp, xp, n2); in mpn_dc_sqrlo() 170 mpn_mul_basecase (tp + n, xp + n2, n1, xp, n1); in mpn_dc_sqrlo() 172 mpn_mullo_basecase (tp + n, xp + n2, xp, n1); in mpn_dc_sqrlo() 174 mpn_mullo_n (tp + n, xp + n2, xp, n1); in mpn_dc_sqrlo() 204 mpn_mullo_basecase (rp, xp, xp, n); in mpn_sqrlo() 208 mpn_sqr_basecase (tp, xp, n); in mpn_sqrlo() 214 mpn_sqrlo_basecase (rp, xp, n); in mpn_sqrlo() 224 mpn_dc_sqrlo (rp, xp, n, tp); in mpn_sqrlo() 231 mpn_fft_mul (tp, xp, n, xp, n); in mpn_sqrlo() [all …]
|
H A D | toom_eval_dgr3_pm2.c | 43 mp_srcptr xp, mp_size_t n, mp_size_t x3n, mp_ptr tp) in mpn_toom_eval_dgr3_pm2() argument 54 xp2[n] = mpn_addlsh2_n (xp2, xp, xp + 2*n, n); in mpn_toom_eval_dgr3_pm2() 56 cy = mpn_addlsh2_n (tp, xp + n, xp + 3*n, x3n); in mpn_toom_eval_dgr3_pm2() 58 xp2[n] = mpn_addlsh_n (xp2, xp, xp + 2*n, n, 2); in mpn_toom_eval_dgr3_pm2() 60 cy = mpn_addlsh_n (tp, xp + n, xp + 3*n, x3n, 2); in mpn_toom_eval_dgr3_pm2() 63 cy = mpn_add_1 (tp + x3n, xp + n + x3n, n - x3n, cy); in mpn_toom_eval_dgr3_pm2() 66 cy = mpn_lshift (tp, xp + 2*n, n, 2); in mpn_toom_eval_dgr3_pm2() 67 xp2[n] = cy + mpn_add_n (xp2, tp, xp, n); in mpn_toom_eval_dgr3_pm2() 69 tp[x3n] = mpn_lshift (tp, xp + 3*n, x3n, 2); in mpn_toom_eval_dgr3_pm2() 71 tp[n] = mpn_add (tp, xp + n, n, tp, x3n + 1); in mpn_toom_eval_dgr3_pm2() [all …]
|
H A D | mullo_n.c | 141 ASSERT (! MPN_OVERLAP_P (rp, n, xp, n)); in mpn_dc_mullo_n() 168 mpn_mul_n (tp, xp, yp, n2); in mpn_dc_mullo_n() 173 mpn_mul_basecase (tp + n, xp + n2, n1, yp, n1); in mpn_dc_mullo_n() 175 mpn_mullo_basecase (tp + n, xp + n2, yp, n1); in mpn_dc_mullo_n() 184 mpn_mullo_basecase (tp + n, xp, yp + n2, n1); in mpn_dc_mullo_n() 206 ASSERT (! MPN_OVERLAP_P (rp, n, xp, n)); in mpn_mullo_n() 213 mpn_mul_basecase (tp, xp, n, yp, n); in mpn_mullo_n() 218 mpn_mullo_basecase (rp, xp, yp, n); in mpn_mullo_n() 228 mpn_dc_mullo_n (rp, xp, yp, n, tp); in mpn_mullo_n() 235 mpn_fft_mul (tp, xp, n, yp, n); in mpn_mullo_n() [all …]
|
/netbsd/external/lgpl3/gmp/dist/tests/mpn/ |
H A D | t-fat.c | 86 xp[0] = 123; in check_functions() 95 xp[0] = 123; in check_functions() 106 xp[0] = 123; in check_functions() 108 mpn_copyd (xp+1, xp, (mp_size_t) 1); in check_functions() 119 mpn_copyi (xp, xp+1, (mp_size_t) 1); in check_functions() 154 xp[0] = 12; in check_functions() 170 xp[0] = 14; in check_functions() 193 xp[0] = 14; in check_functions() 202 xp[0] = 5; in check_functions() 212 xp[0] = 5; in check_functions() [all …]
|
H A D | t-instrument.c | 136 refmpn_zero (xp, size); in check() 141 mpn_add_n (wp, xp, yp, size); in check() 158 mpn_and_n (wp, xp, yp, size); in check() 164 mpn_andn_n (wp, xp, yp, size); in check() 180 mpn_com (wp, xp, size); in check() 186 mpn_copyd (wp, xp, size); in check() 192 mpn_copyi (wp, xp, size); in check() 215 xp[0] |= 1; in check() 225 mpn_ior_n (wp, xp, yp, size); in check() 236 mpn_lshift (wp, xp, size, 1); in check() [all …]
|
/netbsd/bin/ksh/ |
H A D | path.c | 53 char *xp = Xstring(*xsp, xp); local 89 xp += len; 211 char *xp; local 215 xp = do_phys_path(&xs, xp, pathx); 217 if (!xp) 230 char *xp; 248 while (xp > Xstring(*xsp, xp)) { 249 xp--; 273 xp = ISABSPATH(lbuf) ? Xstring(*xsp, xp) 275 if (!(xp = do_phys_path(xsp, xp, lbuf))) [all …]
|
H A D | expand.h | 19 #define Xinit(xs, xp, length, area) do { \ argument 24 xp = (xs).beg; \ 25 __USE(xp); \ 29 #define Xput(xs, xp, c) (*xp++ = (c)) argument 32 #define XcheckN(xs, xp, n) do { \ argument 35 xp = Xcheck_grow_(&xs, xp, more); \ 39 #define Xcheck(xs, xp) XcheckN(xs, xp, 1) argument 48 #define Xstring(xs, xp) ((xs).beg) argument 50 #define Xnleft(xs, xp) ((xs).end - (xp)) /* may be less than 0 */ argument 51 #define Xlength(xs, xp) ((xp) - (xs).beg) argument [all …]
|
H A D | eval.c | 789 xp->str = *xp->u.strv++; 817 xp->str = *xp->u.strv++; 827 xp->str = str_val(xp->var); 986 char *xp; local 1033 if ((check & GF_EXCHECK) && xp > Xstring(*xs, xp) 1047 && xp > Xstring(*xs, xp) && !ISDIRSEP(xp[-1]) 1066 if (xp > Xstring(*xs, xp)) 1091 debunk(xp, sp, Xnleft(*xs, xp)); 1092 xp += strlen(xp); 1121 xp = Xstring(*xs, xp) + prefix_len; [all …]
|
/netbsd/sys/arch/hppa/stand/common/ |
H A D | exec_som.c | 57 xp->xp_entry = x.a_entry; in som_load() 61 xp->bss.size = x.a_bsize; in som_load() 65 xp->text.foff = x.a_tfile; in som_load() 66 xp->data.foff = x.a_dfile; in som_load() 67 xp->bss.foff = 0; in som_load() 69 xp->sym.foff = xf->sym_loc; in som_load() 73 xp->text.addr = x.a_tmem; in som_load() 74 xp->data.addr = x.a_dmem; in som_load() 75 xp->bss.addr = xp->data.addr + x.a_dsize; in som_load() 76 xp->sym.addr = xp->bss.addr + xp->bss.size; in som_load() [all …]
|
/netbsd/external/lgpl3/mpfr/dist/src/ |
H A D | asin.c | 28 mpfr_t xp; in mpfr_asin() local 62 mpfr_init2 (xp, MPFR_PREC (x)); in mpfr_asin() 66 compared = mpfr_cmp_ui (xp, 1); in mpfr_asin() 72 mpfr_clear (xp); in mpfr_asin() 94 mpfr_ui_sub (xp, 1, xp, MPFR_RNDD); in mpfr_asin() 106 mpfr_set_prec (xp, prec); in mpfr_asin() 108 mpfr_ui_sub (xp, 1, xp, MPFR_RNDN); in mpfr_asin() 109 mpfr_sqrt (xp, xp, MPFR_RNDN); in mpfr_asin() 110 mpfr_div (xp, x, xp, MPFR_RNDN); in mpfr_asin() 111 mpfr_atan (xp, xp, MPFR_RNDN); in mpfr_asin() [all …]
|
H A D | gamma.c | 309 mpfr_pow (xp, xp, yp, MPFR_RNDZ); /* (x/e)^(x-2) */ in mpfr_gamma() 310 mpfr_mul (xp, xp, zp, MPFR_RNDZ); /* x^(x-2) / e^(x-1) */ in mpfr_gamma() 311 mpfr_mul (xp, xp, zp, MPFR_RNDZ); /* x^(x-2) / e^x */ in mpfr_gamma() 312 mpfr_mul (xp, xp, x, MPFR_RNDZ); /* lower bound on x^(x-1) / e^x */ in mpfr_gamma() 313 MPFR_BLOCK (flags, mpfr_mul_2ui (xp, xp, 1, MPFR_RNDZ)); in mpfr_gamma() 342 mpfr_log (xp, xp, MPFR_RNDD); in mpfr_gamma() 343 mpfr_sub_ui (xp, xp, 1, MPFR_RNDD); in mpfr_gamma() 344 mpfr_mul (xp, xp, x, MPFR_RNDU); in mpfr_gamma() 372 mpfr_add (xp, tmp, xp, MPFR_RNDU); in mpfr_gamma() 380 mpfr_clear (xp); in mpfr_gamma() [all …]
|
H A D | grandom.c | 58 mpz_init (xp); in mpfr_grandom() 72 mpz_set_ui (xp, 0); in mpfr_grandom() 82 mpz_mul (a, xp, xp); in mpfr_grandom() 109 mpz_mul_2exp (xp, xp, 32); in mpfr_grandom() 113 mpz_add (xp, xp, x); in mpfr_grandom() 117 mpz_mul (a, xp, xp); in mpfr_grandom() 127 mpz_mul (a, xp, xp); in mpfr_grandom() 168 mpz_mul_2exp (xp, xp, 32); in mpfr_grandom() 172 mpz_add (xp, xp, x); in mpfr_grandom() 175 mpz_mul (a, xp, xp); in mpfr_grandom() [all …]
|
/netbsd/external/lgpl3/gmp/dist/mpz/ |
H A D | lucnum_ui.c | 60 mp_ptr lp, xp; in mpz_lucnum_ui() local 83 xp = TMP_ALLOC_LIMBS (xalloc); in mpz_lucnum_ui() 113 c = mpn_addlsh1_n (xp, yp, xp, xsize); in mpz_lucnum_ui() 115 c = mpn_lshift (xp, xp, xsize, 1); in mpz_lucnum_ui() 116 c += mpn_add_n (xp, xp, yp, xsize); in mpz_lucnum_ui() 119 xp[xsize] = c; in mpz_lucnum_ui() 121 ASSERT (xp[xsize-1] != 0); in mpz_lucnum_ui() 180 mpn_sqr (xp, lp, lsize); in mpz_lucnum_ui() 182 lsize -= (xp[lsize-1] == 0); in mpz_lucnum_ui() 190 xp[0] += 2; in mpz_lucnum_ui() [all …]
|
H A D | fib_ui.c | 59 mp_ptr fp, xp, yp; in mpz_fib_ui() local 77 TMP_ALLOC_LIMBS_2 (xp,xalloc, yp,xalloc); in mpz_fib_ui() 78 size = mpn_fib2_ui (xp, yp, n2); in mpz_fib_ui() 82 mpn_trace ("xp", xp, size); in mpz_fib_ui() 91 xp[size] = mpn_lshift (xp, xp, size, 1); in mpz_fib_ui() 93 ASSERT_NOCARRY (mpn_add_n_sub_n (xp, yp, xp, yp, size+1)); in mpz_fib_ui() 94 xsize = size + (xp[size] != 0); in mpz_fib_ui() 100 c2 = mpn_lshift (fp, xp, size, 1); in mpz_fib_ui() 102 xp[size] = c; in mpz_fib_ui() 137 c = mpn_addlsh1_n (yp, xp, yp, size); in mpz_fib_ui() [all …]
|
/netbsd/external/bsd/libarchive/dist/libarchive/ |
H A D | archive_entry_xattr.c | 75 struct ae_xattr *xp; in archive_entry_xattr_clear() local 78 xp = entry->xattr_head->next; in archive_entry_xattr_clear() 82 entry->xattr_head = xp; in archive_entry_xattr_clear() 92 struct ae_xattr *xp; in archive_entry_xattr_add_entry() local 101 memcpy(xp->value, value, size); in archive_entry_xattr_add_entry() 102 xp->size = size; in archive_entry_xattr_add_entry() 104 xp->size = 0; in archive_entry_xattr_add_entry() 106 xp->next = entry->xattr_head; in archive_entry_xattr_add_entry() 107 entry->xattr_head = xp; in archive_entry_xattr_add_entry() 117 struct ae_xattr *xp; in archive_entry_xattr_count() local [all …]
|
/netbsd/external/ibm-public/postfix/dist/src/xsasl/ |
H A D | xsasl_saslc_client.c | 126 XSASL_CLIENT *xp, in xsasl_saslc_client_first() argument 194 client = (XSASL_SASLC_CLIENT *)xp; in xsasl_saslc_client_next() 240 XSASL_SASLC_CLIENT_IMPL *xp; in xsasl_saslc_client_create() local 258 client->saslc = xp->saslc; in xsasl_saslc_client_create() 274 XSASL_SASLC_CLIENT_IMPL *xp; in xsasl_saslc_client_done() local 277 if (xp->saslc) { in xsasl_saslc_client_done() 278 saslc_end(xp->saslc); in xsasl_saslc_client_done() 290 XSASL_SASLC_CLIENT_IMPL *xp; in xsasl_saslc_client_init() local 304 xp = (XSASL_SASLC_CLIENT_IMPL *)mymalloc(sizeof(*xp)); in xsasl_saslc_client_init() 315 saslc_strerror(xp->saslc)); in xsasl_saslc_client_init() [all …]
|
H A D | xsasl_server.c | 253 const XSASL_SERVER_IMPL_INFO *xp; in xsasl_server_init() local 255 for (xp = server_impl_info; xp->server_type; xp++) in xsasl_server_init() 256 if (strcmp(server_type, xp->server_type) == 0) in xsasl_server_init() 257 return (xp->server_init(server_type, path_info)); in xsasl_server_init() 266 const XSASL_SERVER_IMPL_INFO *xp; in xsasl_server_types() local 269 for (xp = server_impl_info; xp->server_type; xp++) in xsasl_server_types() 270 argv_add(argv, xp->server_type, ARGV_END); in xsasl_server_types()
|
H A D | xsasl_dovecot_server.c | 274 path = xp->socket_path; in xsasl_dovecot_server_connect() 284 xp->socket_path); in xsasl_dovecot_server_connect() 383 if (xp->sasl_stream) { in xsasl_dovecot_server_disconnect() 385 xp->sasl_stream = 0; in xsasl_dovecot_server_disconnect() 387 if (xp->mechanism_list) { in xsasl_dovecot_server_disconnect() 389 xp->mechanism_list = 0; in xsasl_dovecot_server_disconnect() 400 xp = (XSASL_DOVECOT_SERVER_IMPL *) mymalloc(sizeof(*xp)); in xsasl_dovecot_server_init() 404 xp->sasl_stream = 0; in xsasl_dovecot_server_init() 405 xp->mechanism_list = 0; in xsasl_dovecot_server_init() 407 return (&xp->xsasl); in xsasl_dovecot_server_init() [all …]
|
H A D | xsasl_client.c | 227 const XSASL_CLIENT_IMPL_INFO *xp; in xsasl_client_init() local 229 for (xp = client_impl_info; xp->client_type; xp++) in xsasl_client_init() 230 if (strcmp(client_type, xp->client_type) == 0) in xsasl_client_init() 231 return (xp->client_init(client_type, path_info)); in xsasl_client_init() 240 const XSASL_CLIENT_IMPL_INFO *xp; in xsasl_client_types() local 243 for (xp = client_impl_info; xp->client_type; xp++) in xsasl_client_types() 244 argv_add(argv, xp->client_type, ARGV_END); in xsasl_client_types()
|
/netbsd/usr.sbin/timed/timed/ |
H A D | networkdelta.c | 75 long *xp; in networkdelta() local 84 xp = &x[0]; in networkdelta() 92 *++xp = htp->delta; in networkdelta() 117 xp = &x[0]; in networkdelta() 130 if (xp == &x[0]) { in networkdelta() 136 if (xp == &x[1]) { in networkdelta() 193 if (xx < xp) in median() 194 xp = xx; in median() 246 a = (xp+xm)/2; in median() 248 a = (a+xp)/2; in median() [all …]
|
/netbsd/external/lgpl3/gmp/dist/tune/ |
H A D | speed.h | 763 xp = s->xp; \ 817 xp = s->xp; \ 877 xp = s->xp; \ 2718 xp = s->xp; \ 2730 if (xp != s->xp) MPN_COPY (xp, s->xp, s->size); \ 2772 MPN_COPY (xp, s->xp, s->size); \ 2773 xp[0] |= refmpn_zero_p (xp, s->size); \ 3285 MPN_COPY (xp, s->xp, s->size); \ 3568 MPN_COPY (xp, s->xp, s->size); \ 3599 xp[i] = s->xp[i] % base; \ [all …]
|
/netbsd/external/bsd/am-utils/dist/amd/ |
H A D | amfs_direct.c | 89 am_node *xp; in amfs_direct_readlink() local 92 xp = next_nonerror_node(mp->am_child); in amfs_direct_readlink() 93 if (!xp) { in amfs_direct_readlink() 96 xp = amfs_generic_lookup_child(mp, mp->am_path + 1, &rc, VLOOK_CREATE); in amfs_direct_readlink() 97 if (xp && rc < 0) in amfs_direct_readlink() 98 xp = amfs_generic_mount_child(xp, &rc); in amfs_direct_readlink() 100 if (xp) { in amfs_direct_readlink() 101 new_ttl(xp); /* (7/12/89) from Rein Tollevik */ in amfs_direct_readlink() 102 return xp; in amfs_direct_readlink()
|