/netbsd-src/external/cddl/osnet/dist/uts/common/sys/ |
H A D | bitmap.h | 83 #define BT_WIM(bitmap, bitindex) \ argument 84 ((bitmap)[(bitindex) >> BT_ULSHIFT]) 92 #define BT_WIM32(bitmap, bitindex) \ argument 93 ((bitmap)[(bitindex) >> BT_ULSHIFT32]) 108 #define BT_TEST(bitmap, bitindex) \ argument 109 ((BT_WIM((bitmap), (bitindex)) & BT_BIW(bitindex)) ? 1 : 0) 110 #define BT_SET(bitmap, bitindex) \ argument 111 { BT_WIM((bitmap), (bitindex)) |= BT_BIW(bitindex); } 112 #define BT_CLEAR(bitmap, bitindex) \ argument 113 { BT_WIM((bitmap), (bitindex)) &= ~BT_BIW(bitindex); } [all …]
|
/netbsd-src/sys/external/bsd/drm2/include/linux/ |
H A D | bitmap.h | 48 bitmap_zero(unsigned long *bitmap, size_t nbits) in bitmap_zero() argument 50 const size_t bpl = NBBY * sizeof(*bitmap); in bitmap_zero() 53 memset(bitmap, 0, n * sizeof(*bitmap)); in bitmap_zero() 63 bitmap_empty(const unsigned long *bitmap, size_t nbits) in bitmap_empty() argument 65 const size_t bpl = NBBY * sizeof(*bitmap); in bitmap_empty() 68 if (*bitmap++) in bitmap_empty() 73 if (*bitmap & ~(~0UL << nbits)) in bitmap_empty() 86 bitmap_weight(const unsigned long *bitmap, size_t nbits) in bitmap_weight() argument 88 const size_t bpl = NBBY * sizeof(*bitmap); in bitmap_weight() 92 weight += popcountl(*bitmap++); in bitmap_weight() [all …]
|
/netbsd-src/sys/external/bsd/drm2/linux/ |
H A D | linux_wait_bit.c | 81 wait_bit_hash(const volatile unsigned long *bitmap, unsigned bit) in wait_bit_hash() argument 84 const volatile unsigned long *word = bitmap + bit/(NBBY*sizeof(*word)); in wait_bit_hash() 91 wait_bit_enter(const volatile unsigned long *bitmap, unsigned bit) in wait_bit_enter() argument 93 struct waitbitentry *wbe = &waitbittab[wait_bit_hash(bitmap, bit)].ent; in wait_bit_enter() 115 clear_and_wake_up_bit(int bit, volatile unsigned long *bitmap) in clear_and_wake_up_bit() argument 119 wbe = wait_bit_enter(bitmap, bit); in clear_and_wake_up_bit() 120 clear_bit(bit, bitmap); in clear_and_wake_up_bit() 133 wait_on_bit(const volatile unsigned long *bitmap, unsigned bit, int flags) in wait_on_bit() argument 138 if (test_bit(bit, bitmap) == 0) in wait_on_bit() 141 wbe = wait_bit_enter(bitmap, bit); in wait_on_bit() [all …]
|
/netbsd-src/crypto/external/bsd/openssl.old/dist/ssl/record/ |
H A D | dtls1_bitmap.c | 38 int dtls1_record_replay_check(SSL *s, DTLS1_BITMAP *bitmap) in dtls1_record_replay_check() argument 44 cmp = satsub64be(seq, bitmap->max_seq_num); in dtls1_record_replay_check() 50 if (shift >= sizeof(bitmap->map) * 8) in dtls1_record_replay_check() 52 else if (bitmap->map & (1UL << shift)) in dtls1_record_replay_check() 59 void dtls1_record_bitmap_update(SSL *s, DTLS1_BITMAP *bitmap) in dtls1_record_bitmap_update() argument 65 cmp = satsub64be(seq, bitmap->max_seq_num); in dtls1_record_bitmap_update() 68 if (shift < sizeof(bitmap->map) * 8) in dtls1_record_bitmap_update() 69 bitmap->map <<= shift, bitmap->map |= 1UL; in dtls1_record_bitmap_update() 71 bitmap->map = 1UL; in dtls1_record_bitmap_update() 72 memcpy(bitmap->max_seq_num, seq, SEQ_NUM_SIZE); in dtls1_record_bitmap_update() [all …]
|
/netbsd-src/crypto/external/bsd/openssl/dist/ssl/record/ |
H A D | dtls1_bitmap.c | 38 int dtls1_record_replay_check(SSL *s, DTLS1_BITMAP *bitmap) in dtls1_record_replay_check() argument 44 cmp = satsub64be(seq, bitmap->max_seq_num); in dtls1_record_replay_check() 50 if (shift >= sizeof(bitmap->map) * 8) in dtls1_record_replay_check() 52 else if (bitmap->map & (1UL << shift)) in dtls1_record_replay_check() 59 void dtls1_record_bitmap_update(SSL *s, DTLS1_BITMAP *bitmap) in dtls1_record_bitmap_update() argument 65 cmp = satsub64be(seq, bitmap->max_seq_num); in dtls1_record_bitmap_update() 68 if (shift < sizeof(bitmap->map) * 8) in dtls1_record_bitmap_update() 69 bitmap->map <<= shift, bitmap->map |= 1UL; in dtls1_record_bitmap_update() 71 bitmap->map = 1UL; in dtls1_record_bitmap_update() 72 memcpy(bitmap->max_seq_num, seq, SEQ_NUM_SIZE); in dtls1_record_bitmap_update() [all …]
|
/netbsd-src/crypto/external/bsd/openssh/dist/ |
H A D | bitmap.h | 26 struct bitmap; 29 struct bitmap *bitmap_new(void); 32 void bitmap_free(struct bitmap *b); 35 void bitmap_zero(struct bitmap *b); 38 int bitmap_test_bit(struct bitmap *b, u_int n); 41 int bitmap_set_bit(struct bitmap *b, u_int n); 44 void bitmap_clear_bit(struct bitmap *b, u_int n); 47 size_t bitmap_nbits(struct bitmap *b); 50 size_t bitmap_nbytes(struct bitmap *b); 53 int bitmap_to_string(struct bitmap *b, void *p, size_t l); [all …]
|
/netbsd-src/external/bsd/unbound/dist/testcode/ |
H A D | unitverify.c | 371 unitest_nsec_has_type_rdata(char* bitmap, size_t len, uint16_t type) in unitest_nsec_has_type_rdata() argument 373 return nsecbitmap_has_type_rdata((uint8_t*)bitmap, len, type); in unitest_nsec_has_type_rdata() 382 char* bitmap = "\000\006\100\001\000\000\000\003" in nsectest() local 389 unit_assert(!unitest_nsec_has_type_rdata(bitmap, len, 0)); in nsectest() 390 unit_assert(unitest_nsec_has_type_rdata(bitmap, len, LDNS_RR_TYPE_A)); in nsectest() 391 unit_assert(!unitest_nsec_has_type_rdata(bitmap, len, 2)); in nsectest() 392 unit_assert(!unitest_nsec_has_type_rdata(bitmap, len, 3)); in nsectest() 393 unit_assert(!unitest_nsec_has_type_rdata(bitmap, len, 4)); in nsectest() 394 unit_assert(!unitest_nsec_has_type_rdata(bitmap, len, 5)); in nsectest() 395 unit_assert(!unitest_nsec_has_type_rdata(bitmap, len, 6)); in nsectest() [all …]
|
/netbsd-src/external/gpl3/gcc/dist/gcc/ |
H A D | bitmap.h | 368 void bitmap_list_view (bitmap); 369 void bitmap_tree_view (bitmap); 372 extern void bitmap_clear (bitmap); 375 extern void bitmap_copy (bitmap, const_bitmap); 378 extern void bitmap_move (bitmap, bitmap); 409 extern void bitmap_and (bitmap, const_bitmap, const_bitmap); 410 extern bool bitmap_and_into (bitmap, const_bitmap); 411 extern bool bitmap_and_compl (bitmap, const_bitmap, const_bitmap); 412 extern bool bitmap_and_compl_into (bitmap, const_bitmap); 414 extern void bitmap_compl_and_into (bitmap, const_bitmap); [all …]
|
H A D | df.h | 191 typedef void (*df_alloc_function) (bitmap); 199 typedef void (*df_reset_function) (bitmap); 206 typedef void (*df_local_compute_function) (bitmap); 209 typedef void (*df_init_function) (bitmap); 212 typedef void (*df_dataflow_function) (struct dataflow *, bitmap, int *, int); 226 typedef void (*df_finalizer_function) (bitmap); 308 bitmap out_of_date_transfer_functions; 546 bitmap blocks_to_analyze; 576 bitmap entry_block_defs; 577 bitmap exit_block_uses; /* The set of hardware registers used in exit block. */ [all …]
|
H A D | early-remat.cc | 255 bitmap rd_in; 259 bitmap rd_out; 263 bitmap rd_gen; 268 bitmap rd_kill; 277 bitmap rd_after_call; 281 bitmap available_in; 285 bitmap available_locally; 289 bitmap available_out; 293 bitmap required_in; 297 bitmap required_after_call; [all …]
|
H A D | gimple-range-gori.h | 42 bool def_chain_in_bitmap_p (tree name, bitmap b); 43 void add_def_chain_to_bitmap (bitmap b, tree name); 44 bitmap get_def_chain (tree name); 45 bitmap get_imports (tree name); 51 bitmap bm; // All dependencies 52 bitmap m_import; 55 void set_import (struct rdc &data, tree imp, bitmap b); 95 bitmap exports (basic_block bb); 96 bitmap imports (basic_block bb); 102 vec<bitmap> m_outgoing; // BB: Outgoing ranges calculatable on edges [all …]
|
H A D | df-problems.cc | 182 df_rd_alloc (bitmap all_blocks) in df_rd_alloc() 239 df_rd_simulate_artificial_defs_at_top (basic_block bb, bitmap local_rd) in df_rd_simulate_artificial_defs_at_top() 260 bitmap local_rd) in df_rd_simulate_one_insn() 389 df_rd_local_compute (bitmap all_blocks) in df_rd_local_compute() 395 bitmap sparse_invalidated = &problem_data->sparse_invalidated_by_eh; in df_rd_local_compute() 396 bitmap dense_invalidated = &problem_data->dense_invalidated_by_eh; in df_rd_local_compute() 432 df_rd_init_solution (bitmap all_blocks) in df_rd_init_solution() 451 bitmap op1 = &df_rd_get_bb_info (e->dest->index)->in; in df_rd_confluence_n() 452 bitmap op2 = &df_rd_get_bb_info (e->src->index)->out; in df_rd_confluence_n() 462 bitmap sparse_invalidated = &problem_data->sparse_invalidated_by_eh; in df_rd_confluence_n() [all …]
|
H A D | valtrack.h | 74 bitmap used; 97 bitmap used; 100 bitmap to_rescan; 126 extern void dead_debug_global_init (struct dead_debug_global *, bitmap); 127 extern void dead_debug_global_finish (struct dead_debug_global *, bitmap); 128 extern void dead_debug_local_init (struct dead_debug_local *, bitmap, 130 extern void dead_debug_local_finish (struct dead_debug_local *, bitmap);
|
H A D | value-relation.h | 100 void valid_equivs (bitmap b, const_bitmap equivs, basic_block bb); 109 bitmap m_names; // ssa-names in equiv set. 140 bitmap m_equiv_set; // Index by ssa-name. true if an equivalence exists. 142 vec <bitmap> m_self_equiv; // Index by ssa-name, self equivalency set. 148 bitmap register_equiv (basic_block bb, unsigned v, equiv_chain *equiv_1); 149 bitmap register_equiv (basic_block bb, equiv_chain *equiv_1, 152 void add_equiv_to_block (basic_block bb, bitmap equiv); 160 bitmap m_names; // ssa_names with relations in this block. 191 bitmap m_tmp, m_tmp2; 192 bitmap m_relation_set; // Index by ssa-name. True if a relation exists [all …]
|
H A D | bitmap.cc | 33 static bitmap_element *bitmap_tree_listify_from (bitmap, bitmap_element *); 37 bitmap_register (bitmap b MEM_STAT_DECL) in bitmap_register() 49 register_overhead (bitmap b, size_t amount) in register_overhead() 58 release_overhead (bitmap b, size_t amount, bool remove_from_map) in release_overhead() 78 bitmap_elem_to_freelist (bitmap head, bitmap_element *elt) in bitmap_elem_to_freelist() 102 bitmap_element_allocate (bitmap head) in bitmap_element_allocate() 155 bitmap_elt_clear_from (bitmap head, bitmap_element *elt) in bitmap_elt_clear_from() 212 bitmap_list_link_element (bitmap head, bitmap_element *element) in bitmap_list_link_element() 270 bitmap_list_unlink_element (bitmap head, bitmap_element *element, in bitmap_list_unlink_element() 307 bitmap_list_insert_element_after (bitmap head, in bitmap_list_insert_element_after() [all …]
|
/netbsd-src/sys/external/bsd/drm2/dist/drm/i915/selftests/ |
H A D | i915_syncmap.c | 67 for_each_set_bit(i, (unsigned long *)&p->bitmap, KSYNCMAP) { in __sync_print() 82 for_each_set_bit(i, (unsigned long *)&p->bitmap, KSYNCMAP) { in __sync_print() 85 last << 1 | !!(p->bitmap >> (i + 1)), in __sync_print() 188 if (hweight32((*sync)->bitmap) != 1) { in check_one() 190 (*sync)->bitmap, hweight32((*sync)->bitmap)); in check_one() 194 err = check_seqno((*sync), ilog2((*sync)->bitmap), seqno); in check_one() 257 if (hweight32((*sync)->bitmap) != 1) { in check_leaf() 259 context, (*sync)->bitmap, hweight32((*sync)->bitmap)); in check_leaf() 263 err = check_seqno((*sync), ilog2((*sync)->bitmap), seqno); in check_leaf() 319 if (hweight32(join->bitmap) != 2) { in igt_syncmap_join_above() [all …]
|
/netbsd-src/external/gpl3/gcc.old/dist/gcc/ |
H A D | bitmap.h | 368 void bitmap_list_view (bitmap); 369 void bitmap_tree_view (bitmap); 372 extern void bitmap_clear (bitmap); 375 extern void bitmap_copy (bitmap, const_bitmap); 378 extern void bitmap_move (bitmap, bitmap); 409 extern void bitmap_and (bitmap, const_bitmap, const_bitmap); 410 extern bool bitmap_and_into (bitmap, const_bitmap); 411 extern bool bitmap_and_compl (bitmap, const_bitmap, const_bitmap); 412 extern bool bitmap_and_compl_into (bitmap, const_bitmap); 414 extern void bitmap_compl_and_into (bitmap, const_bitmap); [all …]
|
H A D | df.h | 191 typedef void (*df_alloc_function) (bitmap); 199 typedef void (*df_reset_function) (bitmap); 206 typedef void (*df_local_compute_function) (bitmap); 209 typedef void (*df_init_function) (bitmap); 212 typedef void (*df_dataflow_function) (struct dataflow *, bitmap, int *, int); 226 typedef void (*df_finalizer_function) (bitmap); 308 bitmap out_of_date_transfer_functions; 546 bitmap blocks_to_analyze; 576 bitmap entry_block_defs; 577 bitmap exit_block_uses; /* The set of hardware registers used in exit block. */ [all …]
|
H A D | early-remat.c | 255 bitmap rd_in; 259 bitmap rd_out; 263 bitmap rd_gen; 268 bitmap rd_kill; 277 bitmap rd_after_call; 281 bitmap available_in; 285 bitmap available_locally; 289 bitmap available_out; 293 bitmap required_in; 297 bitmap required_after_call; [all …]
|
H A D | df-problems.c | 182 df_rd_alloc (bitmap all_blocks) in df_rd_alloc() 239 df_rd_simulate_artificial_defs_at_top (basic_block bb, bitmap local_rd) in df_rd_simulate_artificial_defs_at_top() 260 bitmap local_rd) in df_rd_simulate_one_insn() 389 df_rd_local_compute (bitmap all_blocks) in df_rd_local_compute() 395 bitmap sparse_invalidated = &problem_data->sparse_invalidated_by_eh; in df_rd_local_compute() 396 bitmap dense_invalidated = &problem_data->dense_invalidated_by_eh; in df_rd_local_compute() 432 df_rd_init_solution (bitmap all_blocks) in df_rd_init_solution() 451 bitmap op1 = &df_rd_get_bb_info (e->dest->index)->in; in df_rd_confluence_n() 452 bitmap op2 = &df_rd_get_bb_info (e->src->index)->out; in df_rd_confluence_n() 462 bitmap sparse_invalidated = &problem_data->sparse_invalidated_by_eh; in df_rd_confluence_n() [all …]
|
H A D | valtrack.h | 74 bitmap used; 97 bitmap used; 100 bitmap to_rescan; 126 extern void dead_debug_global_init (struct dead_debug_global *, bitmap); 127 extern void dead_debug_global_finish (struct dead_debug_global *, bitmap); 128 extern void dead_debug_local_init (struct dead_debug_local *, bitmap, 130 extern void dead_debug_local_finish (struct dead_debug_local *, bitmap);
|
/netbsd-src/external/mit/xorg/bin/bitmap/ |
H A D | Makefile | 5 PROG= bitmap 8 .PATH: ${X11SRCDIR.bitmap}/man 9 MLINKS= bitmap.1 bmtoa.1 bitmap.1 atobm.1 19 .PATH: ${X11SRCDIR.bitmap} ${X11SRCDIR.bitmap}/bitmaps
|
/netbsd-src/external/gpl3/gcc.old/dist/gcc/config/i386/ |
H A D | i386-features.h | 143 bitmap queue; 145 bitmap insns; 147 bitmap defs; 149 bitmap defs_conv; 151 void build (bitmap candidates, unsigned insn_uid); 160 void add_insn (bitmap candidates, unsigned insn_uid); 161 void analyze_register_chain (bitmap candidates, df_ref ref); 175 bitmap insns_conv;
|
/netbsd-src/external/gpl3/gcc/dist/gcc/config/i386/ |
H A D | i386-features.h | 143 bitmap queue; 145 bitmap insns; 147 bitmap defs; 149 bitmap defs_conv; 152 void build (bitmap candidates, unsigned insn_uid); 161 void add_insn (bitmap candidates, unsigned insn_uid); 162 void analyze_register_chain (bitmap candidates, df_ref ref); 176 bitmap insns_conv;
|
/netbsd-src/sys/arch/amiga/dev/ |
H A D | grfabs_cc.c | 751 v->bitmap = bm; in cc_init_view() 769 cc_monitor->free_bitmap(v->bitmap); in cc_free_view() 900 int depth = v->bitmap->depth, i; in display_hires_view() 909 ddfwidth = ((v->bitmap->bytes_per_row >> 1) - 2) << 2; in display_hires_view() 986 HIADDR(PREP_DMA_MEM(v->bitmap->plane[i])); in display_hires_view() 988 LOADDR(PREP_DMA_MEM(v->bitmap->plane[i])); in display_hires_view() 993 tmp[0].cp.inst.operand = v->bitmap->row_mod; in display_hires_view() 994 tmp[1].cp.inst.operand = v->bitmap->row_mod; in display_hires_view() 1093 int depth = v->bitmap->depth, i; in display_hires_lace_view() 1104 ddfwidth = ((v->bitmap->bytes_per_row >> 1) - 2) << 2; in display_hires_lace_view() [all …]
|