| /netbsd/src/external/gpl3/gdb/dist/gdb/testsuite/gdb.base/ |
| D | call-ar-st.c | 198 int index; in print_char_array() local 202 for (index = 0; index < 120; index++) { in print_char_array() 203 printf("%1c", array_c[index]); in print_char_array() 204 if ((index%50) == 0) printf("\n"); in print_char_array() 216 int index; in print_double_array() local 220 for (index = 0; index < 9; index++) { in print_double_array() 221 printf("%f ", array_d[index]); in print_double_array() 222 if ((index%8) == 0) printf("\n"); in print_double_array() 234 int index; in print_float_array() local 238 for (index = 0; index < 15; index++) { in print_float_array() [all …]
|
| /netbsd/src/common/dist/zlib/examples/ |
| D | zran.c | 68 void deflate_index_free(struct deflate_index *index) { in deflate_index_free() argument 69 if (index != NULL) { in deflate_index_free() 70 free(index->list); in deflate_index_free() 71 free(index); in deflate_index_free() 79 static struct deflate_index *add_point(struct deflate_index *index, int bits, in add_point() argument 82 if (index == NULL) { in add_point() 84 index = malloc(sizeof(struct deflate_index)); in add_point() 85 if (index == NULL) in add_point() 87 index->have = 0; in add_point() 88 index->mode = 8; in add_point() [all …]
|
| /netbsd/src/external/bsd/lutok/dist/ |
| D | state.cpp | 341 lutok::state::get_metafield(const int index, const std::string& name) in get_metafield() argument 343 return luaL_getmetafield(_pimpl->lua_state, index, name.c_str()) != 0; in get_metafield() 353 lutok::state::get_metatable(const int index) in get_metatable() argument 355 return lua_getmetatable(_pimpl->lua_state, index) != 0; in get_metatable() 368 lutok::state::get_table(const int index) in get_table() argument 372 lua_pushvalue(_pimpl->lua_state, index < 0 ? index - 1 : index); in get_table() 394 lutok::state::insert(const int index) in insert() argument 396 lua_insert(_pimpl->lua_state, index); in insert() 406 lutok::state::is_boolean(const int index) in is_boolean() argument 408 return lua_isboolean(_pimpl->lua_state, index); in is_boolean() [all …]
|
| /netbsd/src/external/lgpl3/mpc/dist/tests/ |
| D | rounding.c | 87 first_mode (mpc_fun_param_t *params, int index) in first_mode() argument 89 switch (params->T[index]) in first_mode() 92 params->P[index].mpc_rnd = in first_mode() 96 params->P[index].mpfr_rnd = FIRST_MPFR_RND_MODE; in first_mode() 106 next_mode (mpc_fun_param_t *params, int index) in next_mode() argument 108 switch (params->T[index]) in next_mode() 111 params->P[index].mpc_rnd = in next_mode() 112 next_mpc_rnd_mode (params->P[index].mpc_rnd); in next_mode() 115 params->P[index].mpfr_rnd = in next_mode() 116 next_mpfr_rnd_mode (params->P[index].mpfr_rnd); in next_mode() [all …]
|
| D | print_parameter.c | 56 print_parameter (mpc_fun_param_t* params, int index) in print_parameter() argument 58 switch (params->T[index]) in print_parameter() 61 printf ("= %d\n", params->P[index].i); in print_parameter() 65 printf ("= %lu\n", params->P[index].ui); in print_parameter() 69 printf ("= %ld\n", params->P[index].si); in print_parameter() 73 printf ("= %e\n", params->P[index].d); in print_parameter() 77 gmp_printf ("= %Zd\n", params->P[index].mpz); in print_parameter() 80 gmp_printf ("= %Qd\n", params->P[index].mpq); in print_parameter() 83 gmp_printf ("= %Fe\n", params->P[index].mpf); in print_parameter() 88 MPFR_INEX_STR (params->P[index].mpfr_inex)); in print_parameter() [all …]
|
| /netbsd/src/external/bsd/kyua-cli/dist/utils/sqlite/ |
| D | statement.cpp | 220 sqlite::statement::column_name(const int index) in column_name() argument 222 const char* name = ::sqlite3_column_name(_pimpl->stmt, index); in column_name() 235 sqlite::statement::column_type(const int index) in column_type() argument 237 return c_type_to_cxx(::sqlite3_column_type(_pimpl->stmt, index)); in column_type() 277 sqlite::statement::column_blob(const int index) in column_blob() argument 279 PRE(column_type(index) == type_blob); in column_blob() 280 return blob(::sqlite3_column_blob(_pimpl->stmt, index), in column_blob() 281 ::sqlite3_column_bytes(_pimpl->stmt, index)); in column_blob() 291 sqlite::statement::column_double(const int index) in column_double() argument 293 PRE(column_type(index) == type_float); in column_double() [all …]
|
| /netbsd/src/external/gpl3/gdb/dist/sim/ppc/ |
| D | hw_opic.c | 929 int *index) in decode_opic_address() argument 936 *index = -1; in decode_opic_address() 951 *index = block_offset / sizeof_idu_per_processor_register_block; in decode_opic_address() 955 *index = 0; in decode_opic_address() 959 *index = 1; in decode_opic_address() 963 *index = 2; in decode_opic_address() 967 *index = 3; in decode_opic_address() 985 *index)); in decode_opic_address() 996 *index = (opic->isu_block[isb].int_number in decode_opic_address() 1012 *index)); in decode_opic_address() [all …]
|
| D | registers.c | 79 description.index = atoi(reg+1); in register_description() 84 description.index = atoi(reg+1); in register_description() 89 description.index = 0; in register_description() 94 description.index = 1; in register_description() 99 description.index = 2; in register_description() 104 description.index = 0; in register_description() 109 description.index = 0; in register_description() 114 description.index = 0; in register_description() 119 description.index = atoi(reg+2); in register_description() 124 description.index = spr_ctr; in register_description() [all …]
|
| /netbsd/src/sys/arch/mips/mips/ |
| D | wired_map.c | 95 int found, index; in mips3_wired_enter_page() local 105 for (index = 0; index < mips3_nwired_page; index++) { in mips3_wired_enter_page() 106 if (mips3_wired_map[index].va == va0) { in mips3_wired_enter_page() 109 mips3_wired_map[index].pa0 = pa; in mips3_wired_enter_page() 112 mips3_wired_map[index].pa1 = pa; in mips3_wired_enter_page() 128 index = mips3_nwired_page; in mips3_wired_enter_page() 132 mips3_wired_map[index].pa0 = pa; in mips3_wired_enter_page() 133 mips3_wired_map[index].pa1 = 0; in mips3_wired_enter_page() 136 mips3_wired_map[index].pa0 = 0; in mips3_wired_enter_page() 137 mips3_wired_map[index].pa1 = pa; in mips3_wired_enter_page() [all …]
|
| /netbsd/src/sys/fs/v7fs/ |
| D | v7fs_datablock.c | 209 map->index[0] = 0; in v7fs_datablock_addr() 218 map->index[0] = (sz >> V7FS_BSHIFT) - 1; in v7fs_datablock_addr() 226 map->index[0] = (sz >> V7FS_BSHIFT) - 1; in v7fs_datablock_addr() 234 map->index[0] = ROUND(sz, IDX1_SZ) / IDX1_SZ - 1; in v7fs_datablock_addr() 235 map->index[1] = ((sz - (map->index[0] * IDX1_SZ)) >> in v7fs_datablock_addr() 243 map->index[0] = ROUND(sz, IDX2_SZ) / IDX2_SZ - 1; in v7fs_datablock_addr() 244 sz -= map->index[0] * IDX2_SZ; in v7fs_datablock_addr() 245 map->index[1] = ROUND(sz, IDX1_SZ) / IDX1_SZ - 1; in v7fs_datablock_addr() 246 sz -= map->index[1] * IDX1_SZ; in v7fs_datablock_addr() 247 map->index[2] = (sz >> V7FS_BSHIFT) - 1; in v7fs_datablock_addr() [all …]
|
| /netbsd/src/external/gpl3/gdb/dist/sim/mips/ |
| D | sim-main.c | 411 int index = PENDING_OUT; in pending_tick() local 415 for (loop = 0, index = PENDING_OUT; in pending_tick() 417 loop++, index = (index + 1) % PSLOTS) in pending_tick() 419 if (PENDING_SLOT_DEST[index] != NULL) in pending_tick() 421 PENDING_SLOT_DELAY[index] -= 1; in pending_tick() 422 if (PENDING_SLOT_DELAY[index] == 0) in pending_tick() 426 index, in pending_tick() 427 PENDING_SLOT_DEST[index], in pending_tick() 428 PENDING_SLOT_BIT[index], in pending_tick() 429 PENDING_SLOT_VALUE[index], in pending_tick() [all …]
|
| /netbsd/src/crypto/external/cpl/trousers/dist/src/tcs/ |
| D | tcs_context.c | 82 struct tcs_context *index; in get_context() local 83 index = tcs_context_table; in get_context() 84 while (index) { in get_context() 85 if (index->handle == handle) in get_context() 87 index = index->next; in get_context() 90 return index; in get_context() 96 struct tcs_context *index; in get_previous_context() local 97 index = tcs_context_table; in get_previous_context() 98 while (index) { in get_previous_context() 99 if (index->next) { in get_previous_context() [all …]
|
| /netbsd/src/external/gpl3/gcc/dist/gcc/ |
| D | cfganal.cc | 99 dest->index)) in mark_dfs_back_edges() 102 bitmap_set_bit (visited, dest->index); in mark_dfs_back_edges() 104 pre[dest->index] = prenum++; in mark_dfs_back_edges() 112 post[dest->index] = postnum++; in mark_dfs_back_edges() 118 && pre[src->index] >= pre[dest->index] in mark_dfs_back_edges() 119 && post[dest->index] == 0) in mark_dfs_back_edges() 124 post[src->index] = postnum++; in mark_dfs_back_edges() 317 fprintf (f, "%d,", INDEX_EDGE_PRED_BB (elist, x)->index); in print_edge_list() 322 fprintf (f, "%d)\n", INDEX_EDGE_SUCC_BB (elist, x)->index); in print_edge_list() 333 int pred, succ, index; in verify_edge_list() local [all …]
|
| D | dbgcnt.cc | 64 dbg_cnt (enum debug_counter index) in dbg_cnt() argument 66 unsigned v = ++count[index]; in dbg_cnt() 68 if (!limits[index].exists ()) in dbg_cnt() 70 else if (limits[index].is_empty ()) in dbg_cnt() 73 unsigned last = limits[index].length () - 1; in dbg_cnt() 74 unsigned int min = limits[index][last].first; in dbg_cnt() 75 unsigned int max = limits[index][last].second; in dbg_cnt() 81 print_limit_reach (map[index].name, v, false); in dbg_cnt() 84 print_limit_reach (map[index].name, v, true); in dbg_cnt() 85 limits[index].pop (); in dbg_cnt() [all …]
|
| D | tracer.cc | 75 if ((unsigned int)bb->index >= size) in mark_bb_seen() 78 bitmap_set_bit (bb_seen, bb->index); in mark_bb_seen() 84 return bitmap_bit_p (bb_seen, bb->index); in bb_seen_p() 94 bitmap_set_bit (can_duplicate_bb, bb->index); in cache_can_duplicate_bb_p() 104 if ((unsigned int)bb->index < size) in cached_can_duplicate_bb_p() 105 return bitmap_bit_p (can_duplicate_bb, bb->index); in cached_can_duplicate_bb_p() 118 if (bb->index < NUM_FIXED_BLOCKS) in ignore_bb_p() 154 return e1->src->index > e2->src->index; in better_p() 155 return e1->dest->index > e2->dest->index; in better_p() 217 fprintf (dump_file, "Trace seed %i [%i]", bb->index, bb->count.to_frequency (cfun)); in find_trace() [all …]
|
| /netbsd/src/sys/arch/arm/broadcom/ |
| D | bcm2835_dmac.c | 120 int index; in bcm_dmac_attach() local 151 for (index = 0; index < sc->sc_nchannels; index++) { in bcm_dmac_attach() 152 ch = &sc->sc_channels[index]; in bcm_dmac_attach() 154 ch->ch_index = index; in bcm_dmac_attach() 158 if ((__BIT(index) & sc->sc_channelmask) == 0) in bcm_dmac_attach() 161 aprint_normal(" DMA%d", index); in bcm_dmac_attach() 163 ch->ch_debug = DMAC_READ(sc, DMAC_DEBUG(index)); in bcm_dmac_attach() 165 val = DMAC_READ(sc, DMAC_CS(index)); in bcm_dmac_attach() 167 DMAC_WRITE(sc, DMAC_CS(index), val); in bcm_dmac_attach() 202 int index; in bcm_dmac_alloc() local [all …]
|
| /netbsd/src/sys/dev/ic/ |
| D | bt463.c | 357 u_int count, index; in bt463_set_cmap() local 363 if (cmapp->index >= BT463_NCMAP_ENTRIES || in bt463_set_cmap() 364 cmapp->count > BT463_NCMAP_ENTRIES - cmapp->index) in bt463_set_cmap() 367 index = cmapp->index; in bt463_set_cmap() 369 error = copyin(cmapp->red, &r[index], count); in bt463_set_cmap() 372 error = copyin(cmapp->green, &g[index], count); in bt463_set_cmap() 375 error = copyin(cmapp->blue, &b[index], count); in bt463_set_cmap() 379 memcpy(&data->cmap_r[index], &r[index], count); in bt463_set_cmap() 380 memcpy(&data->cmap_g[index], &g[index], count); in bt463_set_cmap() 381 memcpy(&data->cmap_b[index], &b[index], count); in bt463_set_cmap() [all …]
|
| /netbsd/src/sys/arch/arm/iomd/ |
| D | vidcvideo.c | 519 int index; in flush_dc_changes_to_screen() local 524 for (index=0; index < (1 << dc->dc_depth); index++) in flush_dc_changes_to_screen() 526 VIDC_COL(cm->r[index], in flush_dc_changes_to_screen() 527 cm->g[index], in flush_dc_changes_to_screen() 528 cm->b[index])); in flush_dc_changes_to_screen() 538 for (index = 0; index < CMAP_SIZE; index++) { in flush_dc_changes_to_screen() 540 VIDC_COL(cm->r[index], cm->g[index], in flush_dc_changes_to_screen() 541 cm->b[index])); in flush_dc_changes_to_screen() 612 int index; in vidcvideo_colourmap_and_cursor_init() local 631 for (index = 0; index < CMAP_SIZE; index++, p += 3) { in vidcvideo_colourmap_and_cursor_init() [all …]
|
| /netbsd/src/crypto/external/cpl/trousers/dist/src/tspi/ |
| D | tsp_context_mem.c | 109 struct memTable *prev = NULL, *index = NULL, *next = NULL; in __tspi_freeTable() local 112 for(index = SpiMemoryTable; index; index = index->nextTable) { in __tspi_freeTable() 113 next = index->nextTable; in __tspi_freeTable() 114 if (index->tspContext == tspContext) { in __tspi_freeTable() 115 for (entry = index->entries; entry; entry = entry_next) { in __tspi_freeTable() 127 free(index); in __tspi_freeTable() 130 prev = index; in __tspi_freeTable() 139 struct memEntry *index = NULL; in __tspi_freeEntry() local 143 for (index = table->entries; index; prev = index, index = index->nextEntry) { in __tspi_freeEntry() 144 if (index->memPointer == pointer) { in __tspi_freeEntry() [all …]
|
| /netbsd/src/external/bsd/openldap/dist/tests/data/ |
| D | slapd-nis-provider.conf | 38 index objectClass eq 39 index uid pres,eq,approx 40 index gidNumber pres,eq,approx 41 index uidNumber pres,eq,approx 42 index cn pres,eq,approx 43 index memberUid pres,eq,approx 44 index macAddress pres,eq,approx 45 index ipServiceProtocol pres,eq,approx 46 index ipServicePort pres,eq,approx 47 index oncRpcNumber pres,eq,approx [all …]
|
| /netbsd/src/sys/arch/newsmips/apbus/ |
| D | xafb.c | 56 volatile uint32_t index; member 194 xafb_setcolor(struct xafb_devconfig *dc, int index, int r, int g, int b) in xafb_setcolor() argument 198 reg->index = index; in xafb_setcolor() 366 u_int index = cm->index; in xafb_getcmap() local 370 if (index >= 256 || count > 256 || index + count > 256) in xafb_getcmap() 373 error = copyout(&sc->sc_cmap_red[index], cm->red, count); in xafb_getcmap() 376 error = copyout(&sc->sc_cmap_green[index], cm->green, count); in xafb_getcmap() 379 error = copyout(&sc->sc_cmap_blue[index], cm->blue, count); in xafb_getcmap() 389 u_int index = cm->index; in xafb_putcmap() local 395 if (cm->index >= 256 || cm->count > 256 || in xafb_putcmap() [all …]
|
| /netbsd/src/external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/ |
| D | attach-slow-waitpid.c | 55 unsigned index; in main() local 58 for (index = 0; index < NUM_THREADS; ++index) in main() 60 printf ("In main: creating thread %d\n", index); in main() 61 result_code = pthread_create (&threads[index], NULL, perform_work, &go); in main() 68 for (index = 0; index < NUM_THREADS; ++index) in main() 71 result_code = pthread_join (threads[index], NULL); in main() 73 printf ("In main: thread %d has completed\n", index); in main()
|
| /netbsd/src/external/gpl3/gcc/dist/libgomp/ |
| D | hashtab.h | 263 hashval_t index = htab_mod (hash, htab); in find_empty_slot_for_expand() local 265 hash_entry_type *slot = htab->entries + index; in find_empty_slot_for_expand() 276 index += hash2; in find_empty_slot_for_expand() 277 if (index >= size) in find_empty_slot_for_expand() 278 index -= size; in find_empty_slot_for_expand() 280 slot = htab->entries + index; in find_empty_slot_for_expand() 336 hashval_t index, hash2, hash = htab_hash (element); in htab_find() local 341 index = htab_mod (hash, htab); in htab_find() 343 entry = htab->entries[index]; in htab_find() 351 index += hash2; in htab_find() [all …]
|
| /netbsd/src/usr.bin/videoctl/ |
| D | videoctl.c | 250 fmtdesc.index = fmtnum; in video_print_one_format() 255 printf("info.format.%u=%s\n", fmtdesc.index, in video_print_one_format() 264 framesize.index = n++; in video_print_one_format() 274 fmtdesc.index, framesize.index, in video_print_one_format() 280 fmtdesc.index, framesize.index, in video_print_one_format() 290 fmtdesc.index, framesize.index, in video_print_one_format() 343 for (input.index = 0; ; input.index++) { in video_print_inputs() 347 printf("info.input.%u=%s\n", input.index, input.name); in video_print_inputs() 348 printf("info.input.%u.type=", input.index); in video_print_inputs() 368 input.index = n; in video_print_inputs() [all …]
|
| /netbsd/src/external/gpl3/gdb/dist/sim/frv/ |
| D | frv-sim.h | 437 #define GET_ESR(index) \ argument 438 (CPU (h_spr[H_SPR_ESR0 + (index)])) 439 #define SET_ESR(index, esr) \ argument 440 (CPU (h_spr[H_SPR_ESR0 + (index)]) = (esr)) 475 #define SET_EPCR(index, address) \ argument 476 (CPU (h_spr[H_SPR_EPCR0 + (index)]) = (address)) 478 #define SET_EAR(index, address) \ argument 479 (CPU (h_spr[H_SPR_EAR0 + (index)]) = (address)) 481 #define SET_EDR(index, edr) \ argument 482 (CPU (h_spr[H_SPR_EDR0 + (index)]) = (edr)) [all …]
|