Home
last modified time | relevance | path

Searched refs:n_bits (Results 1 – 25 of 33) sorted by relevance

12

/netbsd-src/external/lgpl3/mpfr/dist/src/
H A Deq.c29 mpfr_eq (mpfr_srcptr u, mpfr_srcptr v, unsigned long int n_bits) in mpfr_eq() argument
81 if ((unsigned long) vsize * GMP_NUMB_BITS < n_bits) in mpfr_eq()
85 unsigned long remains = n_bits - (vsize * GMP_NUMB_BITS); in mpfr_eq()
114 if ((unsigned long) size > 1 + (n_bits - 1) / GMP_NUMB_BITS) in mpfr_eq()
115 size = 1 + (n_bits - 1) / GMP_NUMB_BITS; in mpfr_eq()
116 else if (n_bits > (unsigned long) size * GMP_NUMB_BITS) in mpfr_eq()
117 n_bits = size * GMP_NUMB_BITS; in mpfr_eq()
122 for (i = size - 1; i > 0 && n_bits >= GMP_NUMB_BITS; i--) in mpfr_eq()
126 n_bits -= GMP_NUMB_BITS; in mpfr_eq()
134 MPFR_ASSERTD(n_bits <= GMP_NUMB_BITS); in mpfr_eq()
[all …]
/netbsd-src/usr.bin/compress/
H A Dzopen.c96 #define MAXCODE(n_bits) ((1 << (n_bits)) - 1) argument
146 #define n_bits zs->zs_n_bits macro
270 maxcode = MAXCODE(n_bits = INIT_BITS); in zwrite()
375 bits = n_bits; in output()
398 offset += n_bits; in output()
399 if (offset == (n_bits << 3)) { in output()
401 bits = n_bits; in output()
419 if (fwrite(buf, 1, n_bits, fp) != (size_t)n_bits) in output()
421 bytes_out += n_bits; in output()
426 maxcode = MAXCODE(n_bits = INIT_BITS); in output()
[all …]
/netbsd-src/sys/net/
H A Dbsd-comp.c89 u_char n_bits; /* current bits/code */ member
204 db->n_bits = BSD_INIT_BITS; in bsd_clear()
461 u_int n_bits = db->n_bits; in bsd_compress() local
493 bitno -= n_bits; \ in bsd_compress()
596 if (max_ent >= MAXCODE(n_bits)) in bsd_compress()
597 db->n_bits = ++n_bits; in bsd_compress()
639 if (max_ent >= MAXCODE(n_bits) && max_ent < db->maxmaxcode) in bsd_compress()
640 db->n_bits++; in bsd_compress()
671 u_int n_bits = db->n_bits; in bsd_incomp() local
734 bitno += n_bits; in bsd_incomp()
[all …]
/netbsd-src/external/lgpl3/gmp/dist/mpf/
H A Deq.c36 mpf_eq (mpf_srcptr u, mpf_srcptr v, mp_bitcnt_t n_bits) in mpf_eq() argument
86 n_bits += cnt - GMP_NAIL_BITS; in mpf_eq()
87 n_limbs = (n_bits + GMP_NUMB_BITS - 1) / GMP_NUMB_BITS; in mpf_eq()
113 n_bits -= (maxsize - 1) * GMP_NUMB_BITS; in mpf_eq()
145 if (n_bits < GMP_NUMB_BITS) in mpf_eq()
146 diff >>= GMP_NUMB_BITS - n_bits; in mpf_eq()
/netbsd-src/external/gpl3/gcc.old/dist/gcc/
H A Dsbitmap.h88 unsigned int n_bits; /* Number of bits. */ member
97 #define SBITMAP_SIZE(BITMAP) ((BITMAP)->n_bits)
105 gcc_checking_assert ((unsigned int)index < map->n_bits); in bitmap_check_index()
113 gcc_checking_assert (a->n_bits == b->n_bits); in bitmap_check_sizes()
H A Dsbitmap.c52 bmap->n_bits = n_elms; in sbitmap_alloc()
76 if (n_elms > bmap->n_bits) in sbitmap_resize()
84 last_bit = bmap->n_bits % SBITMAP_ELT_BITS; in sbitmap_resize()
98 else if (n_elms < bmap->n_bits) in sbitmap_resize()
107 bmap->n_bits = n_elms; in sbitmap_resize()
127 src->n_bits = n_elms; in sbitmap_realloc()
132 bmap->n_bits = n_elms; in sbitmap_realloc()
172 b->n_bits = n_elms; in sbitmap_vector_alloc()
446 last_bit = bmap->n_bits % SBITMAP_ELT_BITS; in bitmap_ones()
517 last_bit = src->n_bits % SBITMAP_ELT_BITS; in bitmap_not()
[all …]
H A Dprofile-count.h148 static const int n_bits = 29; in class() local
151 static const uint32_t max_probability = (uint32_t) 1 << (n_bits - 2); in class()
153 = ((uint32_t) 1 << (n_bits - 1)) - 1; in class()
697 static const int n_bits = 61;
698 static const uint64_t max_count = ((uint64_t) 1 << n_bits) - 2;
700 static const uint64_t uninitialized_count = ((uint64_t) 1 << n_bits) - 1;
711 uint64_t UINT64_BIT_FIELD_ALIGN m_val : n_bits;
H A Dprofile-count.c456 return ((sreal)m_val) >> (n_bits - 2); in to_sreal()
H A Dshrink-wrap.c1067 for (unsigned int j = 0; j < components->n_bits; j++) in dump_components()
/netbsd-src/external/gpl3/gcc/dist/gcc/
H A Dsbitmap.h88 unsigned int n_bits; /* Number of bits. */ member
97 #define SBITMAP_SIZE(BITMAP) ((BITMAP)->n_bits)
105 gcc_checking_assert ((unsigned int)index < map->n_bits); in bitmap_check_index()
113 gcc_checking_assert (a->n_bits == b->n_bits); in bitmap_check_sizes()
H A Dsbitmap.cc52 bmap->n_bits = n_elms; in sbitmap_alloc()
76 if (n_elms > bmap->n_bits) in sbitmap_resize()
84 last_bit = bmap->n_bits % SBITMAP_ELT_BITS; in sbitmap_resize()
98 else if (n_elms < bmap->n_bits) in sbitmap_resize()
107 bmap->n_bits = n_elms; in sbitmap_resize()
127 src->n_bits = n_elms; in sbitmap_realloc()
132 bmap->n_bits = n_elms; in sbitmap_realloc()
172 b->n_bits = n_elms; in sbitmap_vector_alloc()
446 last_bit = bmap->n_bits % SBITMAP_ELT_BITS; in bitmap_ones()
517 last_bit = src->n_bits % SBITMAP_ELT_BITS; in bitmap_not()
[all …]
H A Dprofile-count.h148 static const int n_bits = 29; in class() local
151 static const uint32_t max_probability = (uint32_t) 1 << (n_bits - 2); in class()
153 = ((uint32_t) 1 << (n_bits - 1)) - 1; in class()
700 static const int n_bits = 61;
701 static const uint64_t max_count = ((uint64_t) 1 << n_bits) - 2;
703 static const uint64_t uninitialized_count = ((uint64_t) 1 << n_bits) - 1;
714 uint64_t UINT64_BIT_FIELD_ALIGN m_val : n_bits;
H A Dprofile-count.cc478 return ((sreal)m_val) >> (n_bits - 2); in to_sreal()
H A Dshrink-wrap.cc1078 for (unsigned int j = 0; j < components->n_bits; j++) in dump_components()
H A Dpredict.cc3947 freq_max = (sreal (1) << (profile_count::n_bits / 2)) / freq_max; in estimate_bb_frequencies()
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/tests/
H A Dsanitizer_bitvector_test.cc121 uptr n_bits = ((uptr)my_rand() % bv.size()) + 1; in TestBitVector() local
123 EXPECT_TRUE(n_bits > 0 && n_bits <= bv.size()); in TestBitVector()
125 for (uptr i = 0; i < n_bits; i++) { in TestBitVector()
/netbsd-src/external/bsd/wpa/dist/src/utils/
H A Dradiotap_iter.h22 int n_bits; member
/netbsd-src/usr.bin/gzip/
H A Dzuncompress.c67 #define MAXCODE(n_bits) ((1 << (n_bits)) - 1) argument
/netbsd-src/external/gpl3/binutils/dist/gas/config/
H A Dtc-xgate.c855 unsigned char n_bits) in xgate_apply_operand() argument
869 for (n_drop_bits = n_bits; in xgate_apply_operand()
876 *availiable_mask_bits >>= n_shifts + n_bits; in xgate_apply_operand()
881 new_mask <<= N_BITS_IN_WORD - (n_shifts + n_bits); in xgate_apply_operand()
/netbsd-src/external/gpl3/binutils.old/dist/gas/config/
H A Dtc-xgate.c855 unsigned char n_bits) in xgate_apply_operand() argument
869 for (n_drop_bits = n_bits; in xgate_apply_operand()
876 *availiable_mask_bits >>= n_shifts + n_bits; in xgate_apply_operand()
881 new_mask <<= N_BITS_IN_WORD - (n_shifts + n_bits); in xgate_apply_operand()
/netbsd-src/external/gpl3/binutils/dist/opcodes/
H A Dcrx-dis.c33 #define EXTRACT(a, offs, n_bits) \ argument
34 (((a) >> (offs)) & ((2ull << (n_bits - 1)) - 1))
H A Dcr16-dis.c32 #define EXTRACT(a, offs, n_bits) \ argument
33 (((a) >> (offs)) & ((1ul << ((n_bits) - 1) << 1) - 1))
/netbsd-src/external/gpl3/binutils.old/dist/opcodes/
H A Dcrx-dis.c33 #define EXTRACT(a, offs, n_bits) \ argument
34 (((a) >> (offs)) & ((2ull << (n_bits - 1)) - 1))
H A Dcr16-dis.c32 #define EXTRACT(a, offs, n_bits) \ argument
33 (((a) >> (offs)) & ((1ul << ((n_bits) - 1) << 1) - 1))
/netbsd-src/external/gpl3/gcc/dist/gcc/config/aarch64/
H A Daarch64.cc24861 int n_bits = GET_MODE_BITSIZE (next_mode).to_constant (); in aarch64_expand_cpymem() local
24862 gcc_assert (n_bits <= mode_bits); in aarch64_expand_cpymem()
24863 src = aarch64_move_pointer (src, (n - n_bits) / BITS_PER_UNIT); in aarch64_expand_cpymem()
24864 dst = aarch64_move_pointer (dst, (n - n_bits) / BITS_PER_UNIT); in aarch64_expand_cpymem()
24865 n = n_bits; in aarch64_expand_cpymem()
25052 int n_bits = GET_MODE_BITSIZE (next_mode).to_constant (); in aarch64_expand_setmem() local
25053 gcc_assert (n_bits <= mode_bits); in aarch64_expand_setmem()
25054 dst = aarch64_move_pointer (dst, (n - n_bits) / BITS_PER_UNIT); in aarch64_expand_setmem()
25055 n = n_bits; in aarch64_expand_setmem()

12