| /netbsd/src/external/bsd/ntp/dist/util/ |
| D | jitter.c | 38 double dtemp, gtod[NBUF]; in main() local 70 dtemp = gtod[j]; in main() 72 gtod[i] = dtemp; in main() 96 double dtemp; in get_systime() local 110 dtemp = ts.tv_nsec / 1e9; in get_systime() 120 dtemp = tv.tv_usec / 1e6; in get_systime() 127 dtemp += sys_residual; in get_systime() 128 if (dtemp >= 1) { in get_systime() 129 dtemp -= 1; in get_systime() 131 } else if (dtemp < -1) { in get_systime() [all …]
|
| /netbsd/src/games/phantasia/ |
| D | fight.c | 648 double dtemp; /* for dtemporary calculations */ in throwspell() local 720 dtemp = floor(infloat()); in throwspell() 722 while (dtemp < 0.0 || dtemp > Player.p_mana); in throwspell() 724 Player.p_mana -= dtemp; in throwspell() 731 … inflict = dtemp * ROLL(15.0, sqrt(Player.p_magiclvl / 3.0 + 1.0)); in throwspell() 940 double dtemp; /* for temporary calculations */ in awardtreasure() local 1042 dtemp = ROLL(7.0, 30.0 + Circle / 10.0); in awardtreasure() 1043 … printw("You've found a +%.0f shield!\n", dtemp); in awardtreasure() 1044 if (dtemp >= Player.p_shield) in awardtreasure() 1045 Player.p_shield = dtemp; in awardtreasure() [all …]
|
| D | gamesupport.c | 32 double dtemp; /* temporary variable */ in changestats() local 317 dtemp = infloat(); in changestats() 318 if (dtemp != 0.0) in changestats() 319 playerp->p_age = (long) dtemp; in changestats() 324 dtemp = infloat(); in changestats() 325 if (dtemp != 0.0) in changestats() 326 playerp->p_degenerated = (int) dtemp; in changestats() 425 dtemp = infloat(); in changestats() 426 if (dtemp != 0.0) in changestats() 427 *dptr = dtemp; in changestats() [all …]
|
| D | misc.c | 781 double dtemp; /* for temporary calculations */ in adjuststats() local 795 dtemp = ((Player.p_gold + Player.p_gems / 2.0) - 1000.0) / Statptr->c_goldtote in adjuststats() 797 dtemp = MAX(0.0, dtemp);/* gold slows player down */ in adjuststats() 798 Player.p_speed = Player.p_quickness + Player.p_quksilver - dtemp; in adjuststats() 804 dtemp = 1.0 - Player.p_poison * Statptr->c_weakness / 800.0; in adjuststats() 805 dtemp = MAX(0.1, dtemp); in adjuststats() 807 dtemp = 1.0; in adjuststats() 808 Player.p_might = dtemp * Player.p_strength + Player.p_sword; in adjuststats() 1025 double dtemp; /* for temporary calculations */ in collecttaxes() local 1039 dtemp = floor(taxes / N_GEMVALUE + 1.0); /* number of gems to in collecttaxes() [all …]
|
| D | interplayer.c | 67 double dtemp; /* for temporary calculations */ in battleplayer() local 96 dtemp = (Player.p_level - Other.p_level) / MAX(Player.p_level, Other.p_level); in battleplayer() 97 if (dtemp < -0.5) in battleplayer() 214 dtemp = Other.p_1scratch - oldhits; in battleplayer() 215 … mvprintw(Lines++, 0, "%s hit you %.0f times!", Enemyname, dtemp); in battleplayer() 216 Shield -= dtemp; in battleplayer() 295 double dtemp; /* for temporary calculations */ in myturn() local 310 dtemp = ROLL(2.0, Player.p_might); in myturn() 312 mvprintw(Lines++, 0, "You hit %s %.0f times!", Enemyname, dtemp); in myturn() 314 Player.p_1scratch += dtemp; in myturn() [all …]
|
| D | main.c | 93 double dtemp; /* for temporary calculations */ in main() local 235 && (dtemp = fabs(Player.p_x)) == fabs(Player.p_y) in main() 240 dtemp = sqrt(dtemp / 100.0); in main() 241 if (floor(dtemp) == dtemp) in main()
|
| /netbsd/src/external/bsd/ntp/dist/ntpd/ |
| D | refclock_wwv.c | 975 double dtemp; in wwv_rf() local 1036 dtemp = sintab[i] * data / (MS / 2. * DATCYC); in wwv_rf() 1038 ibuf[iptr] = dtemp; in wwv_rf() 1039 up->irig += dtemp; in wwv_rf() 1042 dtemp = sintab[i] * data / (MS / 2. * DATCYC); in wwv_rf() 1044 qbuf[iptr] = dtemp; in wwv_rf() 1045 up->qrig += dtemp; in wwv_rf() 1105 dtemp = sintab[i] * syncx / (MS / 2.); in wwv_rf() 1107 cibuf[jptr] = dtemp; in wwv_rf() 1108 ciamp += dtemp; in wwv_rf() [all …]
|
| D | ntpsim.c | 557 double dtemp; local 567 dtemp = now + sys_residual; 568 if (dtemp < 0) { 570 dtemp = -dtemp; 572 adjtv.tv_sec = (long)dtemp; 573 dtemp -= adjtv.tv_sec; 574 ticks = (long)(dtemp / sys_tick + .5); 576 dtemp -= adjtv.tv_usec / 1e6; 577 sys_residual = dtemp;
|
| D | refclock_chu.c | 913 double dtemp; in chu_uart() local 945 dtemp = sp->shift[i]; in chu_uart() 946 if (dtemp > slice) in chu_uart() 949 dist += dtemp - es_min; in chu_uart() 951 dist += es_max - dtemp; in chu_uart() 953 if (dtemp > slice) in chu_uart() 954 dist += dtemp - es_min; in chu_uart() 956 dist += es_max - dtemp; in chu_uart() 997 double dtemp; in chu_decode() local 1013 LFPTOD(&tstmp, dtemp); in chu_decode() [all …]
|
| D | ntp_loopfilter.c | 465 double dtemp, etemp; /* double temps */ in local_clock() local 545 dtemp = -(peer->delay - sys_mindly) / 2; in local_clock() 547 dtemp = (peer->delay - sys_mindly) / 2; in local_clock() 548 fp_offset += dtemp; in local_clock() 550 sys_hufflen, sys_mindly, dtemp)); in local_clock() 664 dtemp = SQUARE(max(fabs(fp_offset - last_offset), in local_clock() 666 clock_jitter = SQRT(etemp + (dtemp - etemp) / in local_clock() 723 dtemp = 4 * CLOCK_PLL * ULOGTOD(sys_poll); in local_clock() 725 fp_offset * etemp / (dtemp * dtemp); in local_clock() 855 dtemp = SQUARE(clock_frequency - drift_comp); in local_clock() [all …]
|
| D | refclock_irig.c | 600 double dtemp; in irig_base() local 658 dtemp = up->zxing * up->decim / BAUD; in irig_base() 659 up->yxing = dtemp; in irig_base() 661 up->phase += dtemp / up->tc; in irig_base() 662 up->freq += dtemp / (4. * up->tc * up->tc); in irig_base() 753 double dtemp; in irig_baud() local 789 dtemp = up->decim * (up->exing / SECOND) + up->fdelay; in irig_baud() 790 DTOLFP(dtemp, <emp); in irig_baud()
|
| D | ntp_timer.c | 622 double dtemp = now; in check_leapsec() local 624 … if (dtemp >= leap_smear.intv_start && dtemp <= leap_smear.intv_end) { in check_leapsec() 625 … double leap_smear_time = dtemp - leap_smear.intv_start; in check_leapsec()
|
| D | refclock_true.c | 435 double dtemp; in true_receive() local 437 dtemp = pp->fudgetime1; in true_receive() 439 pp->fudgetime2 = dtemp; in true_receive()
|
| D | ntp_proto.c | 2901 double dtemp; in clock_update() local 2942 dtemp = peer->rootdisp in clock_update() 2950 if (dtemp > sys_mindisp) in clock_update() 2951 sys_rootdisp = dtemp; in clock_update() 3348 double dtemp, etemp; in clock_filter() local 3378 dtemp = clock_phi * (current_time - peer->update); in clock_filter() 3382 peer->filter_disp[j] += dtemp; in clock_filter() 4108 double dtemp; in root_distance() local 4128 dtemp = (peer->delay + peer->rootdelay) / 2 in root_distance() 4140 if (dtemp < sys_mindisp) in root_distance() [all …]
|
| D | ntp_refclock.c | 1521 double dtemp, dcorr, trash; in refclock_pps() local 1579 dtemp = ap->ts.tv_nsec / 1e9; in refclock_pps() 1580 dcorr = modf((pp->fudgetime1 - dtemp), &trash); in refclock_pps() 1600 pp->lastrec.l_uf = (u_int32)(dtemp * FRAC); in refclock_pps()
|
| D | refclock_parse.c | 2240 double dtemp; in local_input() local 2254 … dtemp = (double) pts.tv_nsec / 1e9; in local_input() 2255 if (dtemp < 0.) { in local_input() 2256 dtemp += 1; in local_input() 2259 if (dtemp > 1.) { in local_input() 2260 dtemp -= 1; in local_input() 2263 … parse->parseio.parse_dtime.parse_ptime.fp.l_uf = (uint32_t)(dtemp * FRAC); in local_input()
|
| D | ntp_request.c | 425 double dtemp; in process_private() local 633 LFPTOD(&ftmp, dtemp); in process_private() 634 if (fabs(dtemp) > INFO_TS_MAXSKEW) { in process_private() 639 dtemp, INFO_TS_MAXSKEW)); in process_private()
|
| D | refclock_ripencc.c | 716 double dtemp; in ripencc_get_pps_ts() local 753 dtemp = ts.tv_nsec * FRAC / 1e9; in ripencc_get_pps_ts() 754 tstmp.l_uf = (u_int32)dtemp; in ripencc_get_pps_ts()
|
| D | ntp_control.c | 1922 double dtemp; in ctl_putsys() local 2261 LFPTOD(&sys_authdelay, dtemp); in ctl_putsys() 2262 ctl_putdbl(sys_var[varid].text, dtemp * 1e3); in ctl_putsys()
|
| /netbsd/src/external/bsd/ntp/dist/libntp/ |
| D | systime.c | 295 double dtemp; in adj_systime() local 322 dtemp = now + sys_residual; in adj_systime() 323 if (dtemp < 0) { in adj_systime() 325 dtemp = -dtemp; in adj_systime() 327 adjtv.tv_sec = (long)dtemp; in adj_systime() 328 dtemp -= adjtv.tv_sec; in adj_systime() 333 ticks = (long)(dtemp / quant + .5); in adj_systime() 342 dtemp -= 1.; in adj_systime() 345 sys_residual = dtemp - adjtv.tv_usec * 1.e-6; in adj_systime()
|
| /netbsd/src/external/gpl3/gcc/dist/gcc/ |
| D | valtrack.cc | 283 dead_debug_global_insert (struct dead_debug_global *global, rtx reg, rtx dtemp) in dead_debug_global_insert() argument 287 temp_entry.dtemp = dtemp; in dead_debug_global_insert() 325 if (!entry->dtemp) in dead_debug_global_replace_temp() 328 *DF_REF_REAL_LOC (use) = entry->dtemp; in dead_debug_global_replace_temp() 438 gcc_checking_assert (entry->dtemp); in dead_debug_promote_uses() 467 DEBUG_EXPR_TREE_DECL (entry->dtemp), in dead_debug_promote_uses() 474 entry->dtemp = NULL; in dead_debug_promote_uses() 643 dval = entry->dtemp; in dead_debug_insert_temp()
|
| D | valtrack.h | 34 rtx dtemp; member
|
| D | cfgexpand.cc | 2844 tree dtemp; in expand_call_stmt() local 2847 for (ix = 1; (*debug_args)->iterate (ix, &dtemp); ix += 2) in expand_call_stmt() 2849 gcc_assert (TREE_CODE (dtemp) == DEBUG_EXPR_DECL); in expand_call_stmt() 2850 expand_debug_expr (dtemp); in expand_call_stmt()
|
| /netbsd/src/external/bsd/ntp/dist/ntpdate/ |
| D | ntpdate.c | 2090 double dtemp; in l_step_systime() local 2113 LFPTOD(ts, dtemp); in l_step_systime() 2114 n = step_systime(dtemp); in l_step_systime() 2131 LFPTOD(ts, dtemp); in l_step_systime() 2132 return step_systime(dtemp); in l_step_systime() 2140 LFPTOD(ts, dtemp); in l_step_systime() 2141 return step_systime(dtemp); in l_step_systime()
|
| /netbsd/src/external/historical/nawk/dist/ |
| D | tran.c | 431 double dtemp; in get_str_val() local 471 else if (modf(vp->fval, &dtemp) == 0) /* it's integral */ \ in get_str_val()
|