/netbsd/external/lgpl3/gmp/dist/mpz/ |
H A D | aorsmul_i.c | 77 xsize = SIZ (x); in mpz_aorsmul_1() 78 if (xsize == 0 || y == 0) in mpz_aorsmul_1() 81 sub ^= xsize; in mpz_aorsmul_1() 82 xsize = ABS (xsize); in mpz_aorsmul_1() 90 wp[xsize] = cy; in mpz_aorsmul_1() 91 xsize += (cy != 0); in mpz_aorsmul_1() 92 SIZ (w) = (sub >= 0 ? xsize : -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() [all …]
|
H A D | aorsmul.c | 37 || ((xsize) == (ysize) && mpn_cmp (xp, yp, xsize) < 0)) 53 mp_size_t xsize, ysize, tsize, wsize, wsize_signed; in mpz_aorsmul() local 59 xsize = SIZ(x); in mpz_aorsmul() 61 if (xsize == 0 || ysize == 0) in mpz_aorsmul() 65 if (ABS(ysize) > ABS(xsize)) in mpz_aorsmul() 68 MP_SIZE_T_SWAP (xsize, ysize); in mpz_aorsmul() 81 sub ^= xsize; in mpz_aorsmul() 82 xsize = ABS(xsize); in mpz_aorsmul() 88 tsize = xsize + ysize; in mpz_aorsmul() 95 high = mpn_mul (wp, PTR(x),xsize, PTR(y),ysize); in mpz_aorsmul() [all …]
|
H A D | lucnum_ui.c | 59 mp_size_t lalloc, xalloc, lsize, xsize; in mpz_lucnum_ui() local 104 xsize = mpn_fib2_ui (xp, yp, n/2); in mpz_lucnum_ui() 107 ysize = 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() 118 ASSERT (xalloc >= xsize+1); in mpz_lucnum_ui() 119 xp[xsize] = c; in mpz_lucnum_ui() 120 xsize += (c != 0); in mpz_lucnum_ui() 121 ASSERT (xp[xsize-1] != 0); in mpz_lucnum_ui() 123 ASSERT (lalloc >= xsize + ysize); in mpz_lucnum_ui() [all …]
|
H A D | fib_ui.c | 88 mp_size_t xsize, ysize; in mpz_fib_ui() local 94 xsize = size + (xp[size] != 0); in mpz_fib_ui() 103 xsize = size + (c != 0); in mpz_fib_ui() 110 size = xsize + ysize; in mpz_fib_ui() 111 c = mpn_mul (fp, xp, xsize, yp, ysize); in mpz_fib_ui() 135 mp_size_t xsize, ysize; in mpz_fib_ui() local 143 xsize = size; in mpz_fib_ui() 146 c = mpn_mul (fp, yp, ysize, xp, xsize); in mpz_fib_ui()
|
H A D | set_str.c | 49 mp_size_t xsize; in mpz_set_str() local 135 LIMBS_PER_DIGIT_IN_BASE (xsize, str_size, base); in mpz_set_str() 136 MPZ_NEWALLOC (x, xsize); in mpz_set_str() 139 xsize = mpn_set_str (PTR (x), (unsigned char *) begs, str_size, base); in mpz_set_str() 140 SIZ (x) = negative ? -xsize : xsize; in mpz_set_str()
|
H A D | inp_str.c | 73 mp_size_t xsize; in mpz_inp_str_nowhite() local 164 LIMBS_PER_DIGIT_IN_BASE (xsize, str_size, base); in mpz_inp_str_nowhite() 165 MPZ_NEWALLOC (x, xsize); in mpz_inp_str_nowhite() 168 xsize = mpn_set_str (PTR (x), (unsigned char *) str, str_size, base); in mpz_inp_str_nowhite() 169 SIZ (x) = negative ? -xsize : xsize; in mpz_inp_str_nowhite()
|
H A D | out_raw.c | 62 mp_size_t xsize, abs_xsize, bytes, i; in mpz_out_raw() local 69 xsize = SIZ(x); in mpz_out_raw() 70 abs_xsize = ABS (xsize); in mpz_out_raw() 154 bytes = (xsize >= 0 ? bytes : -bytes); in mpz_out_raw()
|
H A D | cdiv_qr.c | 38 mp_size_t xsize; in mpz_cdiv_qr() local 54 xsize = SIZ (dividend) ^ divisor_size;; in mpz_cdiv_qr() 57 if (xsize >= 0 && SIZ (rem) != 0) in mpz_cdiv_qr()
|
H A D | fdiv_qr.c | 38 mp_size_t xsize; in mpz_fdiv_qr() local 54 xsize = SIZ (dividend) ^ divisor_size;; in mpz_fdiv_qr() 57 if (xsize < 0 && SIZ (rem) != 0) in mpz_fdiv_qr()
|
/netbsd/external/lgpl3/mpfr/dist/src/ |
H A D | round_raw_generic.c | 73 mp_size_t xsize, nw; in mpfr_round_raw_generic() local 105 xsize = MPFR_PREC2LIMBS (xprec); in mpfr_round_raw_generic() 115 MPFR_ASSERTD(nw >= xsize); in mpfr_round_raw_generic() 120 mpn_copyd (yp + (nw - xsize), xp, xsize); in mpfr_round_raw_generic() 121 MPN_ZERO(yp, nw - xsize); in mpfr_round_raw_generic() 128 mp_size_t k = xsize - nw - 1; in mpfr_round_raw_generic() 169 mpn_copyi (yp, xp + xsize - nw, nw); in mpfr_round_raw_generic() 217 mpn_copyi (yp, xp + xsize - nw, nw); in mpfr_round_raw_generic() 235 mpn_copyi (yp, xp + xsize - nw, nw); in mpfr_round_raw_generic() 249 carry = mpn_add_1(yp, xp + xsize - nw, nw, in mpfr_round_raw_generic() [all …]
|
H A D | set_prec.c | 28 mp_size_t xsize, xoldsize; in mpfr_set_prec() local 36 xsize = MPFR_PREC2LIMBS (p); in mpfr_set_prec() 40 if (xsize > xoldsize) in mpfr_set_prec() 47 MPFR_MALLOC_SIZE(xsize)); in mpfr_set_prec() 49 MPFR_SET_ALLOC_SIZE(x, xsize); in mpfr_set_prec()
|
H A D | rndna.c | 67 mp_size_t xsize; in mpfr_round_nearest_away_begin() local 86 xsize = MPFR_PREC2LIMBS (p); in mpfr_round_nearest_away_begin() 88 mpfr_allocate_func (MPFR_MALLOC_EXTENDED_SIZE(xsize)); in mpfr_round_nearest_away_begin() 91 ext[ALLOC_SIZE].si = xsize; in mpfr_round_nearest_away_begin() 135 mp_size_t xsize; in mpfr_round_nearest_away_end() local 164 xsize = ext[ALLOC_SIZE].si; in mpfr_round_nearest_away_end() 196 mpfr_free_func(ext, MPFR_MALLOC_EXTENDED_SIZE(xsize)); in mpfr_round_nearest_away_end()
|
H A D | init2.c | 28 mp_size_t xsize; in mpfr_init2() local 56 xsize = MPFR_PREC2LIMBS (p); in mpfr_init2() 57 tmp = (mpfr_size_limb_t *) mpfr_allocate_func(MPFR_MALLOC_SIZE(xsize)); in mpfr_init2() 64 MPFR_SET_ALLOC_SIZE(x, xsize); /* Fix alloc size of Mantissa */ in mpfr_init2()
|
/netbsd/external/bsd/libarchive/dist/tar/test/ |
H A D | test_patterns.c | 127 int xsize; in DEFINE_TEST() local 137 xsize = sizeof(file_b1); in DEFINE_TEST() 147 xsize = sizeof(file_b2); in DEFINE_TEST() 151 xsize = sizeof(file_a); in DEFINE_TEST() 154 filex[xsize-3] = '0' + r / 10; in DEFINE_TEST() 155 filex[xsize-2] = '0' + r % 10; in DEFINE_TEST() 175 xsize = sizeof(file_d); in DEFINE_TEST() 178 xsize = sizeof(file_c); in DEFINE_TEST() 180 filex[xsize-3] = '0' + r / 10; in DEFINE_TEST() 181 filex[xsize-2] = '0' + r % 10; in DEFINE_TEST()
|
/netbsd/external/lgpl3/gmp/dist/mpn/sparc64/ |
H A D | divrem_1.c | 88 mp_size_t size, xsize, total_size, adj; in mpn_divrem_1() local 95 xsize = 2 * xsize_limbs; in mpn_divrem_1() 96 total_size = size + xsize; in mpn_divrem_1() 101 qp += xsize; in mpn_divrem_1() 164 qp -= xsize; in mpn_divrem_1() 166 for (i = xsize-1; i >= 0; i--) in mpn_divrem_1() 179 mp_size_t size, xsize, total_size; in mpn_divrem_1() local 186 xsize = xsize_limbs; in mpn_divrem_1() 235 for (i = 0; i < xsize; i++) in mpn_divrem_1()
|
/netbsd/external/bsd/libarchive/dist/libarchive/test/ |
H A D | test_read_pax_schily_xattr.c | 38 size_t xsize; /* For xattr tests. */ in DEFINE_TEST() local 53 assertEqualInt(0, archive_entry_xattr_next(ae, &xname, &xval, &xsize)); in DEFINE_TEST() 58 assertEqualInt((int)xsize, strlen(string) + 1); in DEFINE_TEST() 60 assertEqualInt(0, archive_entry_xattr_next(ae, &xname, &xval, &xsize)); in DEFINE_TEST() 62 assertEqualInt((int)xsize, 265); in DEFINE_TEST()
|
/netbsd/external/lgpl3/gmp/dist/mpn/generic/ |
H A D | pre_divrem_1.c | 61 mpn_preinv_divrem_1 (mp_ptr qp, mp_size_t xsize, in mpn_preinv_divrem_1() argument 70 ASSERT (xsize >= 0); in mpn_preinv_divrem_1() 84 ASSERT (MPN_SAME_OR_SEPARATE_P (qp+xsize, ap, size)); in mpn_preinv_divrem_1() 88 qp += (size + xsize - 1); /* dest high limb */ in mpn_preinv_divrem_1() 136 for (i = 0; i < xsize; i++) in mpn_preinv_divrem_1()
|
/netbsd/usr.bin/systat/ |
H A D | swap.c | 162 int col, blk_div, i, avail, used, xsize, swp_free; in showswap() local 178 xsize = sep->se_nblks; in showswap() 180 avail += xsize; in showswap() 181 swp_free += xsize - used; in showswap() 184 whline(wnd, 'X', (100 * used / xsize + 1) / 2); in showswap()
|
/netbsd/external/gpl3/gcc/dist/gcc/ |
H A D | alias.c | 2428 return maybe_gt (maybe_lt (xsize, 0) ? -xsize : xsize, c); in offset_overlap_p() 2506 x = addr_side_effect_eval (x, maybe_lt (xsize, 0) ? -xsize : xsize, 0); in memrefs_conflict_p() 2629 || !can_div_trunc_p (xsize, c1, &xsize) in memrefs_conflict_p() 2653 if (maybe_gt (xsize, 0)) in memrefs_conflict_p() 2654 xsize = -xsize; in memrefs_conflict_p() 2655 if (maybe_ne (xsize, 0)) in memrefs_conflict_p() 2656 xsize += sc + 1; in memrefs_conflict_p() 2673 return memrefs_conflict_p (xsize, x, in memrefs_conflict_p() 2697 return memrefs_conflict_p (xsize, x, ysize, in memrefs_conflict_p() 2705 return (maybe_lt (xsize, 0) in memrefs_conflict_p() [all …]
|
H A D | alias.cc | 2458 return maybe_gt (maybe_lt (xsize, 0) ? -xsize : xsize, c); in offset_overlap_p() 2536 x = addr_side_effect_eval (x, maybe_lt (xsize, 0) ? -xsize : xsize, 0); in memrefs_conflict_p() 2660 || !can_div_trunc_p (xsize, c1, &xsize) in memrefs_conflict_p() 2684 if (maybe_gt (xsize, 0)) in memrefs_conflict_p() 2685 xsize = -xsize; in memrefs_conflict_p() 2686 if (maybe_ne (xsize, 0)) in memrefs_conflict_p() 2687 xsize += sc + 1; in memrefs_conflict_p() 2704 return memrefs_conflict_p (xsize, x, in memrefs_conflict_p() 2728 return memrefs_conflict_p (xsize, x, ysize, in memrefs_conflict_p() 2736 return (maybe_lt (xsize, 0) in memrefs_conflict_p() [all …]
|
/netbsd/external/gpl3/gcc.old/dist/gcc/ |
H A D | alias.c | 2428 return maybe_gt (maybe_lt (xsize, 0) ? -xsize : xsize, c); in offset_overlap_p() 2506 x = addr_side_effect_eval (x, maybe_lt (xsize, 0) ? -xsize : xsize, 0); in memrefs_conflict_p() 2629 || !can_div_trunc_p (xsize, c1, &xsize) in memrefs_conflict_p() 2653 if (maybe_gt (xsize, 0)) in memrefs_conflict_p() 2654 xsize = -xsize; in memrefs_conflict_p() 2655 if (maybe_ne (xsize, 0)) in memrefs_conflict_p() 2656 xsize += sc + 1; in memrefs_conflict_p() 2673 return memrefs_conflict_p (xsize, x, in memrefs_conflict_p() 2697 return memrefs_conflict_p (xsize, x, ysize, in memrefs_conflict_p() 2705 return (maybe_lt (xsize, 0) in memrefs_conflict_p() [all …]
|
/netbsd/external/lgpl3/gmp/dist/mpn/x86/k7/mmx/ |
H A D | divrem_1.asm | 84 C xsize==0 in a straight line and xsize!=0 under forward jumps. 144 leal 8(%edx,%ecx,4), %edx C &dst[xsize+2] 148 movl %edx, VAR_DST_STOP C &dst[xsize+2] 169 leal -8(%edx,%ebx,4), %edx C &dst[xsize+size] 172 movl %edx, VAR_DST C &dst[xsize+size] 206 leal -4(%edi,%ebx,4), %edi C &dst[xsize-1] 277 C ebx xsize 281 C edi &dst[xsize-1] 335 C ebx xsize 339 C edi &dst[xsize-1] [all …]
|
/netbsd/games/larn/ |
H A D | create.c | 319 int tx, ty, xsize, ysize; in treasureroom() local 323 xsize = rnd(6) + 3; in treasureroom() 327 troom(lv, xsize, ysize, tx = tx + rnd(MAXX - 24), ty, rnd(3) + 6); in treasureroom() 329 troom(lv, xsize, ysize, tx, ty, rnd(9)); in treasureroom() 339 troom(int lv, int xsize, int ysize, int tx, int ty, int glyph) in troom() argument 344 for (i = tx - 1; i <= tx + xsize; i++) /* clear out space for in troom() 348 for (i = tx; i < tx + xsize; i++) { /* now put in the walls */ in troom() 353 for (i = tx + 1; i < tx + xsize - 1; i++) /* now clear out in troom() 359 item[i = tx + rund(xsize)][j = ty + (ysize - 1) * rund(2)] = OCLOSEDDOOR; in troom() 372 for (playerx = tx + 1; playerx <= tx + xsize - 2; playerx += 2) in troom() [all …]
|
/netbsd/external/lgpl3/gmp/dist/mpn/x86/pentium4/sse2/ |
H A D | divrem_1.asm | 78 C xsize==0 in a straight line and xsize!=0 under forward jumps. 194 leal -4(%edi,%ebx,4), %edi C &dst[xsize-1] 238 C ebx xsize 242 C edi &dst[xsize-1] 245 leal (%ebx,%ecx), %eax C size+xsize 258 C ebx xsize 279 jnz L(divide_fraction) C if xsize!=0 317 C ebx xsize 321 C edi &dst[size+xsize-1] 357 C ebx xsize [all …]
|
/netbsd/external/lgpl3/gmp/dist/tests/ |
H A D | refmpn.c | 50 ASSERT (xsize >= 0); in byte_overlap_p() 54 ASSERT (xp+xsize >= xp); in byte_overlap_p() 57 if (xp + xsize <= yp) in byte_overlap_p() 325 ASSERT (xsize >= 0); in refmpn_copy_extend() 328 if (xsize > wsize) in refmpn_copy_extend() 331 xsize = wsize; in refmpn_copy_extend() 334 refmpn_copy (wp + wsize-xsize, xp, xsize); in refmpn_copy_extend() 370 ASSERT_MPN (xp, xsize); in refmpn_cmp_twosizes() 373 opp = (xsize < ysize); in refmpn_cmp_twosizes() 2143 if (xsize == ysize) in refmpn_gcd() [all …]
|