Home
last modified time | relevance | path

Searched refs:wi (Results 1 – 25 of 352) sorted by relevance

12345678910>>...15

/netbsd/src/external/gpl3/gcc/dist/gcc/
Dgimple-walk.cc45 walk_tree_fn callback_op, struct walk_stmt_info *wi) in walk_gimple_seq_mod() argument
51 tree ret = walk_gimple_stmt (&gsi, callback_stmt, callback_op, wi); in walk_gimple_seq_mod()
56 gcc_assert (wi); in walk_gimple_seq_mod()
57 wi->callback_result = ret; in walk_gimple_seq_mod()
59 return wi->removed_stmt ? NULL : gsi_stmt (gsi); in walk_gimple_seq_mod()
62 if (!wi->removed_stmt) in walk_gimple_seq_mod()
66 if (wi) in walk_gimple_seq_mod()
67 wi->callback_result = NULL_TREE; in walk_gimple_seq_mod()
78 walk_tree_fn callback_op, struct walk_stmt_info *wi) in walk_gimple_seq() argument
81 gimple *ret = walk_gimple_seq_mod (&seq2, callback_stmt, callback_op, wi); in walk_gimple_seq()
[all …]
Dwide-int-print.cc33 print_dec (const wide_int_ref &wi, char *buf, signop sgn) in print_dec() argument
36 print_decs (wi, buf); in print_dec()
38 print_decu (wi, buf); in print_dec()
42 print_dec (const wide_int_ref &wi, FILE *file, signop sgn) in print_dec() argument
45 print_decs (wi, file); in print_dec()
47 print_decu (wi, file); in print_dec()
55 print_decs (const wide_int_ref &wi, char *buf) in print_decs() argument
57 if ((wi.get_precision () <= HOST_BITS_PER_WIDE_INT) in print_decs()
58 || (wi.get_len () == 1)) in print_decs()
60 if (wi::neg_p (wi)) in print_decs()
[all …]
Dwide-int.cc144 wi::from_array (HOST_WIDE_INT *val, const HOST_WIDE_INT *xval, in from_array()
157 wi::from_buffer (const unsigned char *buffer, unsigned int buffer_len) in from_buffer()
207 wi::to_mpz (const wide_int_ref &x, mpz_t result, signop sgn) in to_mpz()
213 if (wi::neg_p (x, sgn)) in to_mpz()
233 else if (excess < 0 && wi::neg_p (x)) in to_mpz()
255 wi::from_mpz (const_tree type, mpz_t x, bool wrap) in from_mpz()
330 wi::max_value (unsigned int precision, signop sgn) in max_value()
344 wi::min_value (unsigned int precision, signop sgn) in min_value()
352 return wi::set_bit_in_zero (precision - 1, precision); in min_value()
366 wi::force_to_size (HOST_WIDE_INT *val, const HOST_WIDE_INT *xval, in force_to_size()
[all …]
Dwide-int.h270 typename wi::binary_traits <T1, T2>::result_type
275 typename wi::binary_traits <T1, T2>::operator_result
280 typename wi::binary_traits <T1, T2>::signed_shift_result_type
286 typename wi::binary_traits <T1, T2>::predicate_result
292 typename wi::binary_traits <T1, T2>::signed_predicate_result
296 typename wi::binary_traits <T, T>::result_type
305 wi::int_traits <WI_BINARY_RESULT (T1, T2)>::get_binary_result (X, Y); \
311 wi::int_traits <WI_UNARY_RESULT (T)>::get_binary_result (X, X); \
345 <wide_int_ref_storage <wi::int_traits <T>::is_sign_extended, \
346 wi::int_traits <T>::host_dependent_precision> >
[all …]
Drange-op.cc55 return wi::max_value (TYPE_PRECISION (type) , TYPE_SIGN (type)); in max_limit()
63 return wi::min_value (TYPE_PRECISION (type) , TYPE_SIGN (type)); in min_limit()
111 return wi::le_p (wmin, 0, sign) && wi::ge_p (wmax, 0, sign); in wi_includes_zero_p()
120 return wmin == wmax && wi::eq_p (wmin, wi::zero (prec)); in wi_zero_p()
148 widest_int rh_range = wi::sub (widest_int::from (rh_ub, TYPE_SIGN (type)), in wi_fold_in_parts()
150 widest_int lh_range = wi::sub (widest_int::from (lh_ub, TYPE_SIGN (type)), in wi_fold_in_parts()
318 if (wi::cmp (tmin, tmax, sgn) < 0) in value_range_from_overflowed_bounds()
321 if (wi::cmp (tmax, tem, sgn) > 0) in value_range_from_overflowed_bounds()
327 if (covers || wi::cmp (tmin, tmax, sgn) > 0) in value_range_from_overflowed_bounds()
344 wi::overflow_type min_ovf = wi::OVF_NONE, in value_range_with_overflow()
[all …]
Dtree-nested.cc806 struct walk_stmt_info wi; in walk_body() local
808 memset (&wi, 0, sizeof (wi)); in walk_body()
809 wi.info = info; in walk_body()
810 wi.val_only = true; in walk_body()
811 walk_gimple_seq_mod (pseq, callback_stmt, callback_op, &wi); in walk_body()
833 struct walk_stmt_info wi; in walk_gimple_omp_for() local
841 memset (&wi, 0, sizeof (wi)); in walk_gimple_omp_for()
842 wi.info = info; in walk_gimple_omp_for()
843 wi.gsi = gsi_last (seq); in walk_gimple_omp_for()
847 wi.val_only = false; in walk_gimple_omp_for()
[all …]
Dtree-ssa-ccp.cc224 widest_int cval = wi::bit_and_not (wi::to_widest (val.value), in dump_lattice_value()
310 widest_int ipa_value = wi::to_widest (value); in get_default_value()
312 gcc_assert (wi::bit_and (ipa_value, mask) == 0); in get_default_value()
467 return (wi::bit_and_not (wi::to_widest (old_val.value), new_val.mask) in valid_lattice_transition()
468 == wi::bit_and_not (wi::to_widest (new_val.value), new_val.mask)); in valid_lattice_transition()
547 || (wi::bit_and_not (wi::to_widest (old_val->value), in set_lattice_value()
549 != wi::bit_and_not (wi::to_widest (new_val->value), in set_lattice_value()
586 return wi::to_widest (val.value); in value_to_wide_int()
605 val.mask = wi::bit_and_not in get_value_from_alignment()
607 ? wi::mask <widest_int> (TYPE_PRECISION (type), false) in get_value_from_alignment()
[all …]
Dwide-int-print.h29 extern void print_dec (const wide_int_ref &wi, char *buf, signop sgn);
30 extern void print_dec (const wide_int_ref &wi, FILE *file, signop sgn);
31 extern void print_decs (const wide_int_ref &wi, char *buf);
32 extern void print_decs (const wide_int_ref &wi, FILE *file);
33 extern void print_decu (const wide_int_ref &wi, char *buf);
34 extern void print_decu (const wide_int_ref &wi, FILE *file);
35 extern void print_hex (const wide_int_ref &wi, char *buf);
36 extern void print_hex (const wide_int_ref &wi, FILE *file);
Dtree-emutls.cc458 struct walk_stmt_info *wi = (struct walk_stmt_info *) cb_data; in lower_emutls_1() local
459 struct lower_emutls_data *d = (struct lower_emutls_data *) wi->info; in lower_emutls_1()
483 if (!wi->val_only || is_gimple_debug (wi->stmt)) in lower_emutls_1()
490 save_changed = wi->changed; in lower_emutls_1()
491 wi->changed = false; in lower_emutls_1()
492 wi->val_only = false; in lower_emutls_1()
493 walk_tree (&TREE_OPERAND (t, 0), lower_emutls_1, wi, NULL); in lower_emutls_1()
494 wi->val_only = true; in lower_emutls_1()
498 if (wi->changed) in lower_emutls_1()
514 wi->changed = save_changed; in lower_emutls_1()
[all …]
Dvalue-range.cc78 && lower_bound () == wi::min_value (precision, sign) in maybe_anti_range()
79 && upper_bound () == wi::max_value (precision, sign)); in maybe_anti_range()
233 wi::overflow_type ovf; in irange_set_anti_range()
235 wide_int w_min = wi::to_wide (min); in irange_set_anti_range()
236 if (wi::ne_p (w_min, type_range.lower_bound ())) in irange_set_anti_range()
238 wide_int lim1 = wi::sub (w_min, 1, sign, &ovf); in irange_set_anti_range()
239 gcc_checking_assert (ovf != wi::OVF_OVERFLOW); in irange_set_anti_range()
244 wide_int w_max = wi::to_wide (max); in irange_set_anti_range()
245 if (wi::ne_p (w_max, type_range.upper_bound ())) in irange_set_anti_range()
247 wide_int lim2 = wi::add (w_max, 1, sign, &ovf); in irange_set_anti_range()
[all …]
Dtree-dfa.cc413 bitsize = wi::to_poly_offset (size_tree); in get_ref_base_and_extent()
428 bit_offset += wi::to_poly_offset (TREE_OPERAND (exp, 2)); in get_ref_base_and_extent()
438 poly_offset_int woffset = (wi::to_poly_offset (this_offset) in get_ref_base_and_extent()
440 woffset += wi::to_offset (DECL_FIELD_BIT_OFFSET (field)); in get_ref_base_and_extent()
466 = (wi::to_poly_offset (ssize) in get_ref_base_and_extent()
467 - wi::to_poly_offset (fsize)); in get_ref_base_and_extent()
489 maxsize = wi::to_poly_offset (csize) - bit_offset; in get_ref_base_and_extent()
510 = wi::sext (wi::to_poly_offset (index) in get_ref_base_and_extent()
511 - wi::to_poly_offset (low_bound), in get_ref_base_and_extent()
513 woffset *= wi::to_offset (unit_size); in get_ref_base_and_extent()
[all …]
Dtree-vrp.cc176 wide_int a_max = wi::round_down_for_mask (*min - 1, nonzero_bits); in intersect_range_with_nonzero_bits()
177 wide_int b_min = wi::round_up_for_mask (*max + 1, nonzero_bits); in intersect_range_with_nonzero_bits()
183 bool a_empty = wi::ge_p (a_max, *min, sgn); in intersect_range_with_nonzero_bits()
184 bool b_empty = wi::le_p (b_min, *max, sgn); in intersect_range_with_nonzero_bits()
196 gcc_checking_assert (wi::le_p (*min, *max, sgn)); in intersect_range_with_nonzero_bits()
203 gcc_checking_assert (wi::le_p (*min, *max, sgn)); in intersect_range_with_nonzero_bits()
207 if (wi::round_up_for_mask (*min, nonzero_bits) == b_min) in intersect_range_with_nonzero_bits()
210 *min = wi::min_value (precision, sgn); in intersect_range_with_nonzero_bits()
211 *max = wi::max_value (precision, sgn); in intersect_range_with_nonzero_bits()
217 *max = wi::round_down_for_mask (*max, nonzero_bits); in intersect_range_with_nonzero_bits()
[all …]
Dpointer-query.cc66 add = wi::to_offset (op); in get_offset_range()
86 r[0] = wi::to_offset (TYPE_MIN_VALUE (type)) + add; in get_offset_range()
87 r[1] = wi::to_offset (TYPE_MAX_VALUE (type)) + add; in get_offset_range()
325 min = wi::to_wide (vr.min ()); in get_size_range()
326 max = wi::to_wide (vr.max ()); in get_size_range()
355 if (wi::les_p (max, 0)) in get_size_range()
363 min = wi::zero (expprec); in get_size_range()
364 max = wi::to_wide (TYPE_MAX_VALUE (exptype)); in get_size_range()
366 else if (wi::les_p (min - 1, 0)) in get_size_range()
372 max = wi::to_wide (TYPE_MAX_VALUE (exptype)); in get_size_range()
[all …]
Dgimple-array-bounds.cc262 wi::sub (wi::to_wide (maxbound), in check_array_ref()
408 axssize = wi::to_offset (access_size); in check_mem_ref()
452 eltsize = wi::to_offset (refsize); in check_mem_ref()
487 offrange[0] = offrange[0] / wi::to_offset (size); in check_mem_ref()
488 offrange[1] = offrange[1] / wi::to_offset (size); in check_mem_ref()
609 idx = wi::sdiv_trunc (idx, wi::to_offset (el_sz)); in check_addr_expr()
623 else if (idx > (wi::to_offset (up_bound) in check_addr_expr()
624 - wi::to_offset (low_bound) + 1)) in check_addr_expr()
708 struct walk_stmt_info *wi = (struct walk_stmt_info *) data; in check_array_bounds() local
715 location = gimple_location (wi->stmt); in check_array_bounds()
[all …]
Dtree-ssa-loop-niter.cc99 wi::to_mpz (wi::to_wide (op1), offset, SIGNED); in split_to_var_and_offset()
106 wi::to_mpz (wi::to_wide (expr), offset, TYPE_SIGN (type)); in split_to_var_and_offset()
170 wi::to_mpz (wi::to_wide (c1), valc1, TYPE_SIGN (type)); in refine_value_range_using_guard()
181 wide_int min = wi::min_value (type); in refine_value_range_using_guard()
182 wide_int max = wi::max_value (type); in refine_value_range_using_guard()
184 if (wi::to_wide (c1) == min) in refine_value_range_using_guard()
186 if (wi::to_wide (c1) == max) in refine_value_range_using_guard()
228 wi::to_mpz (0, minc1, TYPE_SIGN (type)); in refine_value_range_using_guard()
229 wi::to_mpz (0, maxc1, TYPE_SIGN (type)); in refine_value_range_using_guard()
236 gcc_assert (wi::le_p (r.lower_bound (), r.upper_bound (), sgn)); in refine_value_range_using_guard()
[all …]
Dgimple-ssa-warn-restrict.cc277 sizrange[0] = wi::to_offset (range[0]); in builtin_memref()
278 sizrange[1] = wi::to_offset (range[1]); in builtin_memref()
305 maxoff = wi::to_offset (basesize); in builtin_memref()
327 return wi::to_offset (startlen); in write_off()
360 min = wi::to_wide (vr.min ()); in extend_offset_range()
361 max = wi::to_wide (vr.max ()); in extend_offset_range()
365 if (rng == VR_ANTI_RANGE && wi::lts_p (max, min)) in extend_offset_range()
375 && (DECL_P (base) || wi::lts_p (min, max))) in extend_offset_range()
400 offrange[0] += wi::to_offset (TYPE_MIN_VALUE (type)); in extend_offset_range()
401 offrange[1] += wi::to_offset (TYPE_MAX_VALUE (type)); in extend_offset_range()
[all …]
Dvalue-range.h285 return (wi::to_wide (l) == wi::min_value (prec, sign) in varying_compatible_p()
286 && wi::to_wide (u) == wi::max_value (prec, sign)); in varying_compatible_p()
288 return (wi::to_wide (l) == 0 in varying_compatible_p()
289 && wi::to_wide (u) == wi::max_value (prec, sign)); in varying_compatible_p()
483 wide_int min = wi::min_value (TYPE_PRECISION (type), TYPE_SIGN (type)); in set_varying()
484 wide_int max = wi::max_value (TYPE_PRECISION (type), TYPE_SIGN (type)); in set_varying()
485 if (wi::eq_p (max, wi::to_wide (TYPE_MAX_VALUE (type))) in set_varying()
486 && wi::eq_p (min, wi::to_wide (TYPE_MIN_VALUE (type)))) in set_varying()
522 return wi::to_wide (tree_lower_bound (pair)); in lower_bound()
535 return wi::to_wide (tree_upper_bound (pair)); in upper_bound()
[all …]
Dmatch.pd172 && wi::to_widest (@1) == element_precision (TREE_TYPE (@0)) - 1)
381 & wi::mask (element_precision (TREE_TYPE (@1)) - 1,
474 wi::overflow_type overflow;
475 wide_int mul = wi::mul (wi::to_wide (@1), wi::to_wide (@2),
483 || mul != wi::min_value (TYPE_PRECISION (type), SIGNED))
491 wi::overflow_type overflow;
492 wide_int mul = wi::mul (wi::to_wide (@1), wi::to_wide (@2),
590 && wi::to_wide (@2) + wi::to_wide (@1) == 0)
593 wi::exact_log2 (wi::to_wide (@2))); }))))
646 && wi::multiple_of_p (wi::to_wide (@1), wi::to_wide (@2),
[all …]
/netbsd/src/external/bsd/tmux/dist/
Dcmd-wait-for.c143 struct wait_item *wi, *wi1; in cmd_wait_for_signal() local
155 TAILQ_FOREACH_SAFE(wi, &wc->waiters, entry, wi1) { in cmd_wait_for_signal()
156 cmdq_continue(wi->item); in cmd_wait_for_signal()
158 TAILQ_REMOVE(&wc->waiters, wi, entry); in cmd_wait_for_signal()
159 free(wi); in cmd_wait_for_signal()
171 struct wait_item *wi; in cmd_wait_for_wait() local
188 wi = xcalloc(1, sizeof *wi); in cmd_wait_for_wait()
189 wi->item = item; in cmd_wait_for_wait()
190 TAILQ_INSERT_TAIL(&wc->waiters, wi, entry); in cmd_wait_for_wait()
199 struct wait_item *wi; in cmd_wait_for_lock() local
[all …]
/netbsd/src/lib/libc/stdio/
Dvfwscanf.c166 wint_t wi; /* handy wint_t */ in __vfwscanf_unlocked_l() local
209 if ((wi = __fgetwc_unlock(fp)) == WEOF) in __vfwscanf_unlocked_l()
211 if (wi != c) { in __vfwscanf_unlocked_l()
212 ungetwc(wi, fp); in __vfwscanf_unlocked_l()
372 while ((wi = __fgetwc_unlock(fp)) != WEOF && in __vfwscanf_unlocked_l()
373 iswspace_l(wi, loc)) in __vfwscanf_unlocked_l()
375 if (wi == WEOF) in __vfwscanf_unlocked_l()
377 ungetwc(wi, fp); in __vfwscanf_unlocked_l()
394 (wi = __fgetwc_unlock(fp)) != WEOF) { in __vfwscanf_unlocked_l()
396 *p++ = (wchar_t)wi; in __vfwscanf_unlocked_l()
[all …]
/netbsd/src/external/lgpl3/mpfr/dist/src/
Dsum.c388 mp_size_t wi; /* index in the accumulator */ in sum_raw() local
393 wi = ws - 1; in sum_raw()
394 MPFR_ASSERTD (wi >= 0); in sum_raw()
395 a = wp[wi] >> (GMP_NUMB_BITS - 1) ? MPFR_LIMB_MAX : MPFR_LIMB_ZERO; in sum_raw()
397 while (wi >= 0) in sum_raw()
398 if ((b = wp[wi]) == a) in sum_raw()
401 wi--; in sum_raw()
412 if (wi >= 0 || a != MPFR_LIMB_ZERO) /* accumulator != 0 */ in sum_raw()
681 mp_size_t wi; in sum_aux() local
688 wi = tq / GMP_NUMB_BITS; in sum_aux()
[all …]
/netbsd/src/sys/dev/ata/
Dwd.c1442 struct wd_ioctl *wi; in wdioctl() local
1446 wi = wi_get(wd); in wdioctl()
1447 wi->wi_atareq = *atareq; in wdioctl()
1455 wi->wi_iov.iov_base = tbuf; in wdioctl()
1456 wi->wi_iov.iov_len = DEV_BSIZE; in wdioctl()
1457 UIO_SETUP_SYSSPACE(&wi->wi_uio); in wdioctl()
1460 wi->wi_iov.iov_base = atareq->databuf; in wdioctl()
1461 wi->wi_iov.iov_len = atareq->datalen; in wdioctl()
1462 wi->wi_uio.uio_vmspace = l->l_proc->p_vmspace; in wdioctl()
1464 wi->wi_uio.uio_iov = &wi->wi_iov; in wdioctl()
[all …]
/netbsd/src/lib/libc/regex/
Dregexec.c78 xmbrtowc(wint_t *wi, const char *s, size_t n, mbstate_t *mbs, wint_t dummy) in __weak_alias()
85 if (wi != NULL) in __weak_alias()
86 *wi = wc; in __weak_alias()
91 if (wi != NULL) in __weak_alias()
92 *wi = dummy; in __weak_alias()
97 if (wi) in __weak_alias()
98 *wi = *s; in __weak_alias()
104 xmbrtowc_dummy(wint_t *wi, in xmbrtowc_dummy() argument
111 if (wi != NULL) in xmbrtowc_dummy()
112 *wi = (unsigned char)*s; in xmbrtowc_dummy()
/netbsd/src/sys/arch/amiga/dev/
Dmntva.c79 static void mntva_rectfill(struct mntva_softc *sc, int x, int y, int wi,
82 int yd, int wi, int he);
351 mntva_rectfill(struct mntva_softc *sc, int x, int y, int wi, int he, in mntva_rectfill() argument
357 mntva_reg_write(sc, MNTVA_BLITTERX2, (uint16_t) x + wi - 1); in mntva_rectfill()
367 mntva_bitblt(struct mntva_softc *sc, int xs, int ys, int xd, int yd, int wi, in mntva_bitblt() argument
372 mntva_reg_write(sc, MNTVA_BLITTERX2, (uint16_t) xd + wi - 1); in mntva_bitblt()
376 mntva_reg_write(sc, MNTVA_BLITTERX4, (uint16_t) xs + wi - 1); in mntva_bitblt()
391 int x, ys, yd, wi, he; in mntva_copyrows() local
401 wi = ri->ri_emuwidth; in mntva_copyrows()
403 mntva_bitblt(sc, x, ys, x, yd, wi, he); in mntva_copyrows()
[all …]
/netbsd/src/sys/dev/ic/
Di128.c83 int xd, int yd, int wi, int he, int rop) in i128_bitblt() argument
89 xs += wi - 1; in i128_bitblt()
90 xd += wi - 1; in i128_bitblt()
102 bus_space_write_4(tag, regh, XY2_WH, (wi << 16) | he); in i128_bitblt()
109 int wi, int he, uint32_t color) in i128_rectfill() argument
117 bus_space_write_4(tag, regh, XY2_WH, (wi << 16) | he); in i128_rectfill()

12345678910>>...15