这篇教程C++ update_count函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中update_count函数的典型用法代码示例。如果您正苦于以下问题:C++ update_count函数的具体用法?C++ update_count怎么用?C++ update_count使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了update_count函数的30个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: J_IDLEvoid J_IDLE(){ long skip; update_count(); skip = next_interupt - Count; if (skip > 3) Count += (skip & 0xFFFFFFFC); else J();}
开发者ID:twinaphex,项目名称:mupen64-rr,代码行数:8,
示例2: tick_handlerstatic void tick_handler(struct tm *tick_time, TimeUnits units_changed) { if(window_is_loaded(s_time_window)) { update_time(); } else { update_count(); }}
开发者ID:kid-c-plus,项目名称:LifeTimer,代码行数:8,
示例3: ftrace_stacktrace_countstatic voidftrace_stacktrace_count(unsigned long ip, unsigned long parent_ip, void **data){ if (!tracing_is_on()) return; if (update_count(data)) trace_dump_stack(STACK_SKIP);}
开发者ID:ahmadrezamontazerolghaem,项目名称:VLB-CAC,代码行数:9,
示例4: ftrace_traceoff_countstatic voidftrace_traceoff_count(unsigned long ip, unsigned long parent_ip, void **data){ if (!tracing_is_on()) return; if (update_count(data)) tracing_off();}
开发者ID:ahmadrezamontazerolghaem,项目名称:VLB-CAC,代码行数:9,
示例5: to_string string to_string (float minimal_update_count = 0.0) const { if (sample_count < minimal_update_count) return " "; ostringstream out; char buf [100]; sprintf (buf, "%+3.3f(%5.0f)", mean(), update_count()); out << buf; return out.str (); }
开发者ID:tzolnowski,项目名称:libego,代码行数:9,
示例6: BC1TL_IDLEvoid BC1TL_IDLE(){ long skip; if ((FCR31 & 0x800000)!=0) { update_count(); skip = next_interupt - Count; if (skip > 3) Count += (skip & 0xFFFFFFFC); else BC1TL(); } else BC1TL();}
开发者ID:DusterTheThief2,项目名称:mupen64gc,代码行数:12,
示例7: BGEZALL_IDLEvoid BGEZALL_IDLE(){ long skip; if (irs >= 0) { update_count(); skip = next_interupt - Count; if (skip > 3) Count += (skip & 0xFFFFFFFC); else BGEZALL(); } else BGEZALL();}
开发者ID:ManlikePort6,项目名称:mupen64-360,代码行数:12,
示例8: BLTZ_IDLEvoid BLTZ_IDLE(){ long skip; if (irs < 0) { update_count(); skip = next_interupt - Count; if (skip > 3) Count += (skip & 0xFFFFFFFC); else BLTZ(); } else BLTZ();}
开发者ID:ManlikePort6,项目名称:mupen64-360,代码行数:12,
示例9: BGEZ_IDLEvoid BGEZ_IDLE(void){ int skip; if (irs >= 0) { update_count(); skip = next_interupt - Count; if (skip > 3) Count += (skip & 0xFFFFFFFC); else BGEZ(); } else BGEZ();}
开发者ID:CatalystG,项目名称:Mupen64Plus-PB,代码行数:12,
示例10: BC1F_IDLEvoid BC1F_IDLE(void){ int skip; if ((FCR31 & 0x800000)==0) { update_count(); skip = next_interupt - Count; if (skip > 3) Count += (skip & 0xFFFFFFFC); else BC1F(); } else BC1F();}
开发者ID:RDCH106,项目名称:n64oid,代码行数:12,
示例11: BLTZALL_IDLEvoid BLTZALL_IDLE(void){ int skip; if (irs < 0) { update_count(); skip = next_interupt - Count; if (skip > 3) Count += (skip & 0xFFFFFFFC); else BLTZALL(); } else BLTZALL();}
开发者ID:CatalystG,项目名称:Mupen64Plus-PB,代码行数:12,
示例12: BC1Tvoid BC1T(){ if (check_cop1_unusable()) return; PC++; delay_slot=1; PC->ops(); update_count(); delay_slot=0; if ((FCR31 & 0x800000)!=0 && !skip_jump) PC += (PC-2)->f.i.immediate-1; last_addr = PC->addr; if (next_interupt <= Count) gen_interupt();}
开发者ID:DusterTheThief2,项目名称:mupen64gc,代码行数:13,
示例13: J_OUTvoid J_OUT(){ jump_target = (PC->addr & 0xF0000000) | (PC->f.j.inst_index<<2); PC++; delay_slot=1; PC->ops(); update_count(); delay_slot=0; if (!skip_jump) jump_to(jump_target); last_addr = PC->addr; if (next_interupt <= Count) gen_interupt();}
开发者ID:LibXenonProject,项目名称:mupen64-360,代码行数:13,
示例14: BGEZvoid BGEZ(){ local_rs = irs; PC++; delay_slot=1; PC->ops(); update_count(); delay_slot=0; if (local_rs >= 0 && !skip_jump) PC += (PC-2)->f.i.immediate - 1; last_addr = PC->addr; if (next_interupt <= Count) gen_interupt();}
开发者ID:ManlikePort6,项目名称:mupen64-360,代码行数:13,
示例15: Jvoid J(){ PC++; delay_slot=1; PC->ops(); update_count(); delay_slot=0; if (!skip_jump) PC=actual->block+ (((((PC-2)->f.j.inst_index<<2) | ((PC-1)->addr & 0xF0000000))-actual->start)>>2); last_addr = PC->addr; if (next_interupt <= Count) gen_interupt();}
开发者ID:twinaphex,项目名称:mupen64-rr,代码行数:13,
示例16: BGEZLvoid BGEZL(void){ if (irs >= 0) { PC++; delay_slot=1;#ifdef DBG if (g_DebuggerActive) update_debugger(PC->addr);#endif PC->ops(); update_count(); delay_slot=0; if(!skip_jump) PC += (PC-2)->f.i.immediate-1; } else { PC+=2; update_count(); } last_addr = PC->addr; if (next_interupt <= Count) gen_interupt();}
开发者ID:CatalystG,项目名称:Mupen64Plus-PB,代码行数:22,
示例17: BC1TLvoid BC1TL(void){ if (check_cop1_unusable()) return; if ((FCR31 & 0x800000)!=0) { PC++; delay_slot=1;#ifdef DBG if (debugger_mode) update_debugger(PC->addr);#endif PC->ops(); update_count(); delay_slot=0; if(!skip_jump) PC += (PC-2)->f.i.immediate-1; } else { PC+=2; update_count(); } last_addr = PC->addr; if (next_interupt <= Count) gen_interupt();}
开发者ID:AlexOteiza,项目名称:n64ios,代码行数:23,
示例18: BGEZL_OUTvoid BGEZL_OUT(void){ if (irs >= 0) { jump_target = (int)PC->f.i.immediate; PC++; delay_slot=1;#ifdef DBG if (g_DebuggerActive) update_debugger(PC->addr);#endif PC->ops(); update_count(); delay_slot=0; if (!skip_jump) jump_to(PC->addr + ((jump_target-1)<<2)); } else { PC+=2; update_count(); } last_addr = PC->addr; if (next_interupt <= Count) gen_interupt();}
开发者ID:CatalystG,项目名称:Mupen64Plus-PB,代码行数:23,
示例19: BC1T_OUTvoid BC1T_OUT(){ if (check_cop1_unusable()) return; jump_target = (long)PC->f.i.immediate; PC++; delay_slot=1; PC->ops(); update_count(); delay_slot=0; if (!skip_jump && (FCR31 & 0x800000)!=0) jump_to(PC->addr + ((jump_target-1)<<2)); last_addr = PC->addr; if (next_interupt <= Count) gen_interupt();}
开发者ID:DusterTheThief2,项目名称:mupen64gc,代码行数:14,
示例20: dma_si_readvoid dma_si_read(){ int i; if (si_register.si_pif_addr_rd64b != 0x1FC007C0) {// printf("unknown SI use/n"); stop=1; } update_pif_read(); for (i=0; i<(64/4); i++) rdram[si_register.si_dram_addr/4+i] = sl(PIF_RAM[i]); update_count(); add_interupt_event(SI_INT, /*0x100*/0x900);}
开发者ID:RDCH106,项目名称:Not64,代码行数:14,
示例21: read_mailboxstatic uint read_mailbox(const char *arg, mlhead_t *msgs){ if (verbose) { printf("Reading %s/n", arg); fflush(stdout); } init_count(); mbox_mode = true; bogoreader_init(1, &arg); while ((*reader_more)()) { wordhash_t *whp = NULL; wordhash_t *whc = wordhash_new(); collect_words(whc); if (ds_path != NULL && (msgs_good + msgs_bad) == 0) set_train_msg_counts(whc); if (whc->count == 0 && !quiet) { printf("msg #%u, count is %u/n", message_count, whc->count); bt_trap(); } if (bogolex_file != NULL) { wordhash_sort(whc); lookup_words(whc); write_msgcount_file(whc); } else if (whc->count != 0) { if (!msg_count_file) whp = convert_wordhash_to_propslist(whc, train); else whp = convert_propslist_to_countlist(whc); msglist_add(msgs, whp); } update_count(); if (whc != whp) wordhash_free(whc); } print_final_count(); ns_and_sp->count += message_count; bogoreader_fini(); return message_count;}
开发者ID:BenediktGitGit,项目名称:itprojektEFT,代码行数:50,
示例22: BGEZ_OUTvoid BGEZ_OUT(){ local_rs = irs; jump_target = (long)PC->f.i.immediate; PC++; delay_slot=1; PC->ops(); update_count(); delay_slot=0; if (!skip_jump && local_rs >= 0) jump_to(PC->addr + ((jump_target-1)<<2)); last_addr = PC->addr; if (next_interupt <= Count) gen_interupt();}
开发者ID:ManlikePort6,项目名称:mupen64-360,代码行数:14,
示例23: write_ai_regsint write_ai_regs(void* opaque, uint32_t address, uint32_t value, uint32_t mask){ struct ai_controller* ai = (struct ai_controller*)opaque; uint32_t reg = ai_reg(address); unsigned int freq,delay=0; switch (reg) { case AI_LEN_REG: masked_write(&ai->regs[AI_LEN_REG], value, mask); audio.aiLenChanged(); freq = ROM_PARAMS.aidacrate / (ai->regs[AI_DACRATE_REG]+1); if (freq) delay = (unsigned int) (((unsigned long long)ai->regs[AI_LEN_REG]*ai->vi->delay*ROM_PARAMS.vilimit)/(freq*4)); if (ai->regs[AI_STATUS_REG] & 0x40000000) // busy { ai->fifo[1].delay = delay; ai->fifo[1].length = ai->regs[AI_LEN_REG]; ai->regs[AI_STATUS_REG] |= 0x80000000; } else { ai->fifo[0].delay = delay; ai->fifo[0].length = ai->regs[AI_LEN_REG]; update_count(); add_interupt_event(AI_INT, delay); ai->regs[AI_STATUS_REG] |= 0x40000000; } return 0; case AI_STATUS_REG: clear_rcp_interrupt(ai->r4300, MI_INTR_AI); return 0; case AI_DACRATE_REG: if ((ai->regs[AI_DACRATE_REG] & mask) != (value & mask)) { masked_write(&ai->regs[AI_DACRATE_REG], value, mask); audio.aiDacrateChanged(ROM_PARAMS.systemtype); } return 0; } masked_write(&ai->regs[reg], value, mask); return 0;}
开发者ID:RenaKunisaki,项目名称:mupen64plus-core,代码行数:49,
示例24: whilevoid *calculate_ams_all() { int stop = FALSE; gpointer value_t, key_t; while( TRUE ) { pthread_mutex_lock( &iter_mutex ); if( !finish && g_hash_table_iter_next( &iter_t, &key_t, &value_t ) ){ update_count(); } else { stop = TRUE; finish=TRUE; } pthread_mutex_unlock( &iter_mutex ); if( stop ) { break; } calculate_ams_all_serial( (word_count *)value_t, key_t ); } return NULL;}
开发者ID:ceramisch,项目名称:minimantics,代码行数:15,
示例25: JALvoid JAL(){ PC++; delay_slot=1; PC->ops(); update_count(); delay_slot=0; if (!skip_jump) { reg[31]=PC->addr; sign_extended(reg[31]); PC=actual->block+ (((((PC-2)->f.j.inst_index<<2) | ((PC-1)->addr & 0xF0000000))-actual->start)>>2); }
开发者ID:twinaphex,项目名称:mupen64-rr,代码行数:15,
示例26: QWidgetsboard::sboard(QWidget *parent) : QWidget(parent),port(8888){ setupUi(this); /* the default scoreboard is for karate but the abstraction with scoreBase means in the future we could have more types of scoring systems */ scores = 0; timer = new QTimer(this); disp = new QTimer(this); disp->setInterval(15000); timer->setInterval(10); connect(timer,SIGNAL(timeout()),this,SLOT(update_count())); connect(disp,SIGNAL(timeout()),this,SLOT(update_display()));}
开发者ID:Katana-Steel,项目名称:ScoreSys,代码行数:15,
示例27: BC1TL_OUTvoid BC1TL_OUT(void){ if (check_cop1_unusable()) return; if ((FCR31 & 0x800000)!=0) { jump_target = (int)PC->f.i.immediate; PC++; delay_slot=1;#ifdef DBG if (debugger_mode) update_debugger(PC->addr);#endif PC->ops(); update_count(); delay_slot=0; if (!skip_jump) jump_to(PC->addr + ((jump_target-1)<<2)); } else { PC+=2; update_count(); } last_addr = PC->addr; if (next_interupt <= Count) gen_interupt();}
开发者ID:AlexOteiza,项目名称:n64ios,代码行数:24,
示例28: MFC0void MFC0(void){ switch(PC->f.r.nrd) { case 1: DebugMessage(M64MSG_ERROR, "MFC0 instruction reading un-implemented Random register"); stop=1; case 9: // Count update_count(); default: rrt32 = reg_cop0[PC->f.r.nrd]; sign_extended(rrt); } PC++;}
开发者ID:KitoHo,项目名称:N64-Player--Mupen64plus-,代码行数:15,
示例29: lcd_spi_complete_eventint lcd_spi_complete_event(void * context, const void * data){ int j; int i; //deassert CS each time a SPI event completes deassert_cs(); i = lcd_page - 0xB0; if( i == LCD_COLS ){ lcd_hold = 0x00; update_count(); //interrupt again on next timer match return 0; //all done } switch(lcd_write_state){ case LCD_WRITE_PAGE: command_mode(); lcd_buffer[0] = lcd_page; lcd_buffer[1] = 0x10; lcd_buffer[2] = 0x00; op.nbyte = 3; assert_cs(); lcd_write_state = LCD_WRITE_DATA; hwpl_spi_write(context, &op); return 1; case LCD_WRITE_DATA: data_mode(); assert_cs(); for(j=0;j<LCD_ROWS;j++){ //128 rows high lcd_buffer[j] = mem[LCD_ROWS - j - 1][i]; } op.nbyte = LCD_ROWS; lcd_page++; lcd_write_state = LCD_WRITE_PAGE; hwpl_spi_write(context, &op); break; } return 1;}
开发者ID:CoActionOS,项目名称:CoActionOS-HW,代码行数:48,
示例30: BC1Tvoid BC1T(void){ if (check_cop1_unusable()) return; PC++; delay_slot=1;#ifdef DBG if (g_DebuggerActive) update_debugger(PC->addr);#endif PC->ops(); update_count(); delay_slot=0; if ((FCR31 & 0x800000)!=0 && !skip_jump) PC += (PC-2)->f.i.immediate-1; last_addr = PC->addr; if (next_interupt <= Count) gen_interupt();}
开发者ID:RDCH106,项目名称:n64oid,代码行数:16,
注:本文中的update_count函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 C++ update_cursor函数代码示例 C++ update_canvas函数代码示例 |