Home
last modified time | relevance | path

Searched refs:dtemp (Results 1 – 25 of 35) sorted by relevance

12

/netbsd/external/bsd/ntp/dist/util/
H A Djitter.c38 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()
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()
132 dtemp += 1; in get_systime()
[all …]
/netbsd/games/phantasia/
H A Dfight.c720 dtemp = floor(infloat()); in throwspell()
722 while (dtemp < 0.0 || dtemp > Player.p_mana); in throwspell()
724 Player.p_mana -= dtemp; in throwspell()
1045 Player.p_shield = dtemp; in awardtreasure()
1131 if (dtemp >= Player.p_sword) in awardtreasure()
1132 Player.p_sword = dtemp; in awardtreasure()
1141 Player.p_shield = dtemp; in awardtreasure()
1174 Player.p_sword = dtemp; in awardtreasure()
1200 Player.p_sword = dtemp; in awardtreasure()
1233 Player.p_sword = dtemp; in awardtreasure()
[all …]
H A Dgamesupport.c317 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()
425 dtemp = infloat(); in changestats()
426 if (dtemp != 0.0) in changestats()
427 *dptr = dtemp; in changestats()
432 dtemp = infloat(); in changestats()
433 if (dtemp != 0.0) in changestats()
[all …]
H A Dmisc.c781 double dtemp; /* for temporary calculations */ in adjuststats() local
797 dtemp = MAX(0.0, dtemp);/* gold slows player down */ in adjuststats()
805 dtemp = MAX(0.1, dtemp); in adjuststats()
807 dtemp = 1.0; in adjuststats()
1025 double dtemp; /* for temporary calculations */ in collecttaxes() local
1042 if (Player.p_gems >= dtemp) in collecttaxes()
1045 Player.p_gems -= dtemp; in collecttaxes()
1046 Player.p_gold += dtemp * N_GEMVALUE; in collecttaxes()
1060 dtemp = 0.0; in collecttaxes()
1061 fread((char *) &dtemp, sizeof(double), 1, fp); in collecttaxes()
[all …]
H A Dinterplayer.c67 double dtemp; /* for temporary calculations */ in battleplayer() local
97 if (dtemp < -0.5) in battleplayer()
214 dtemp = Other.p_1scratch - oldhits; 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()
331 dtemp = MIN(Player.p_mana, Player.p_level * 5.0); in myturn()
332 Player.p_mana -= dtemp; in myturn()
[all …]
H A Dmain.c93 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/external/bsd/ntp/dist/ntpd/
H A Drefclock_wwv.c975 double dtemp; in wwv_rf() local
1108 ciamp += dtemp; in wwv_rf()
1111 csiamp += dtemp; in wwv_rf()
1117 cqamp += dtemp; in wwv_rf()
1120 csqamp += dtemp; in wwv_rf()
1136 hiamp += dtemp; in wwv_rf()
1145 hqamp += dtemp; in wwv_rf()
1406 double dtemp; in wwv_endpoc() local
2421 rank = dtemp; in wwv_newchan()
2428 rank = dtemp; in wwv_newchan()
[all …]
H A Dntpsim.c557 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;
H A Drefclock_chu.c913 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()
953 if (dtemp > slice) in chu_uart()
997 double dtemp; in chu_decode() local
1013 LFPTOD(&tstmp, dtemp); in chu_decode()
1335 double dtemp; in chu_second() local
1357 dtemp = chu_major(peer); in chu_second()
1395 dtemp > MINMETRIC) { in chu_second()
[all …]
H A Dntp_loopfilter.c468 double dtemp, etemp; /* double temps */ in local_clock() local
548 dtemp = -(peer->delay - sys_mindly) / 2; in local_clock()
550 dtemp = (peer->delay - sys_mindly) / 2; in local_clock()
551 fp_offset += dtemp; in local_clock()
553 sys_hufflen, sys_mindly, dtemp)); in local_clock()
667 dtemp = SQUARE(max(fabs(fp_offset - last_offset), in local_clock()
669 clock_jitter = SQRT(etemp + (dtemp - etemp) / in local_clock()
726 dtemp = 4 * CLOCK_PLL * ULOGTOD(sys_poll); in local_clock()
728 fp_offset * etemp / (dtemp * dtemp); in local_clock()
858 dtemp = SQUARE(clock_frequency - drift_comp); in local_clock()
[all …]
H A Drefclock_irig.c600 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, &ltemp); in irig_baud()
H A Dntp_timer.c613 double dtemp = now; in check_leapsec() local
614 if (dtemp >= leap_smear.intv_start && dtemp <= leap_smear.intv_end) { in check_leapsec()
615 double leap_smear_time = dtemp - leap_smear.intv_start; in check_leapsec()
H A Drefclock_true.c441 double dtemp; in true_receive() local
443 dtemp = pp->fudgetime1; in true_receive()
445 pp->fudgetime2 = dtemp; in true_receive()
H A Dntp_proto.c2814 double dtemp; in clock_update() local
2855 dtemp = peer->rootdisp in clock_update()
2863 if (dtemp > sys_mindisp) in clock_update()
2864 sys_rootdisp = dtemp; in clock_update()
3261 double dtemp, etemp; in clock_filter() local
3296 peer->filter_disp[j] += dtemp; in clock_filter()
4020 double dtemp; in root_distance() local
4040 dtemp = (peer->delay + peer->rootdelay) / 2 in root_distance()
4052 if (dtemp < sys_mindisp) in root_distance()
4053 dtemp = sys_mindisp; in root_distance()
[all …]
H A Dntp_refclock.c1442 double dtemp, dcorr, trash; in refclock_pps() local
1500 dtemp = ap->ts.tv_nsec / 1e9; in refclock_pps()
1501 dcorr = modf((pp->fudgetime1 - dtemp), &trash); in refclock_pps()
1521 pp->lastrec.l_uf = (u_int32)(dtemp * FRAC); in refclock_pps()
H A Drefclock_parse.c2239 double dtemp; in local_input() local
2253 dtemp = (double) pts.tv_nsec / 1e9; in local_input()
2254 if (dtemp < 0.) { in local_input()
2255 dtemp += 1; in local_input()
2258 if (dtemp > 1.) { in local_input()
2259 dtemp -= 1; in local_input()
2262 parse->parseio.parse_dtime.parse_ptime.fp.l_uf = (uint32_t)(dtemp * FRAC); in local_input()
H A Dntp_request.c425 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()
/netbsd/external/bsd/ntp/dist/libntp/
H A Dsystime.c296 double dtemp; in adj_systime() local
323 dtemp = now + sys_residual; in adj_systime()
324 if (dtemp < 0) { in adj_systime()
326 dtemp = -dtemp; in adj_systime()
328 adjtv.tv_sec = (long)dtemp; in adj_systime()
329 dtemp -= adjtv.tv_sec; in adj_systime()
334 ticks = (long)(dtemp / quant + .5); in adj_systime()
343 dtemp -= 1.; in adj_systime()
346 sys_residual = dtemp - adjtv.tv_usec * 1.e-6; in adj_systime()
/netbsd/external/gpl3/gcc/dist/gcc/
H A Dvaltrack.c284 dead_debug_global_insert (struct dead_debug_global *global, rtx reg, rtx dtemp) in dead_debug_global_insert() argument
288 temp_entry.dtemp = dtemp; in dead_debug_global_insert()
326 if (!entry->dtemp) in dead_debug_global_replace_temp()
329 *DF_REF_REAL_LOC (use) = entry->dtemp; in dead_debug_global_replace_temp()
439 gcc_checking_assert (entry->dtemp); in dead_debug_promote_uses()
468 DEBUG_EXPR_TREE_DECL (entry->dtemp), in dead_debug_promote_uses()
475 entry->dtemp = NULL; in dead_debug_promote_uses()
644 dval = entry->dtemp; in dead_debug_insert_temp()
H A Dvaltrack.cc283 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()
H A Dvaltrack.h34 rtx dtemp; member
/netbsd/external/gpl3/gcc.old/dist/gcc/
H A Dvaltrack.c284 dead_debug_global_insert (struct dead_debug_global *global, rtx reg, rtx dtemp) in dead_debug_global_insert() argument
288 temp_entry.dtemp = dtemp; in dead_debug_global_insert()
326 if (!entry->dtemp) in dead_debug_global_replace_temp()
329 *DF_REF_REAL_LOC (use) = entry->dtemp; in dead_debug_global_replace_temp()
439 gcc_checking_assert (entry->dtemp); in dead_debug_promote_uses()
468 DEBUG_EXPR_TREE_DECL (entry->dtemp), in dead_debug_promote_uses()
475 entry->dtemp = NULL; in dead_debug_promote_uses()
644 dval = entry->dtemp; in dead_debug_insert_temp()
H A Dvaltrack.h34 rtx dtemp; member
/netbsd/external/bsd/ntp/dist/ntpdate/
H A Dntpdate.c2090 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/external/historical/nawk/dist/
H A Dtran.c448 double dtemp; in get_str_val() local
485 if (modf(vp->fval, &dtemp) == 0) /* it's integral */ \ in get_str_val()

12