/openbsd/sys/dev/pci/drm/amd/display/dc/dcn10/ |
H A D | dcn10_hw_sequencer_debug.c | 98 (s->data_urgent * frac) / ref_clk_mhz / frac, (s->data_urgent * frac) / ref_clk_mhz % frac, in dcn10_get_hubbub_state() 99 …(s->pte_meta_urgent * frac) / ref_clk_mhz / frac, (s->pte_meta_urgent * frac) / ref_clk_mhz % frac, in dcn10_get_hubbub_state() 100 (s->sr_enter * frac) / ref_clk_mhz / frac, (s->sr_enter * frac) / ref_clk_mhz % frac, in dcn10_get_hubbub_state() 101 (s->sr_exit * frac) / ref_clk_mhz / frac, (s->sr_exit * frac) / ref_clk_mhz % frac, in dcn10_get_hubbub_state() 102 …(s->dram_clk_change * frac) / ref_clk_mhz / frac, (s->dram_clk_change * frac) / ref_clk_mhz % frac… in dcn10_get_hubbub_state() 157 … (s->min_ttu_vblank * frac) / ref_clk_mhz / frac, (s->min_ttu_vblank * frac) / ref_clk_mhz % frac, in dcn10_get_hubp_states() 158 …(s->qos_level_low_wm * frac) / ref_clk_mhz / frac, (s->qos_level_low_wm * frac) / ref_clk_mhz % fr… in dcn10_get_hubp_states() 159 …(s->qos_level_high_wm * frac) / ref_clk_mhz / frac, (s->qos_level_high_wm * frac) / ref_clk_mhz % … in dcn10_get_hubp_states() 177 … (s->min_ttu_vblank * frac) / ref_clk_mhz / frac, (s->min_ttu_vblank * frac) / ref_clk_mhz % frac, in dcn10_get_hubp_states() 178 …(s->qos_level_low_wm * frac) / ref_clk_mhz / frac, (s->qos_level_low_wm * frac) / ref_clk_mhz % fr… in dcn10_get_hubp_states() [all …]
|
/openbsd/sys/sys/ |
H A D | time.h | 171 uint64_t frac; member 179 (btp)->frac cmp (ctp)->frac : \ 186 if (bt->frac > bt->frac + x) in bintimeaddfrac() 188 ct->frac = bt->frac + x; in bintimeaddfrac() 196 if (bt->frac > bt->frac + ct->frac) in bintimeadd() 198 dt->frac = bt->frac + ct->frac; in bintimeadd() 206 if (bt->frac < bt->frac - ct->frac) in bintimesub() 208 dt->frac = bt->frac - ct->frac; in bintimesub() 218 bt->frac = hi64 << 32; in TIMECOUNT_TO_BINTIME() 237 FRAC_TO_NSEC(uint64_t frac) in FRAC_TO_NSEC() argument [all …]
|
/openbsd/sys/arch/sparc64/fpu/ |
H A D | fpu_explode.c | 172 u_int frac, f0, f1; in fpu_stof() local 176 frac = i & mask(SNG_FRACBITS); in fpu_stof() 177 f0 = frac >> SNG_SHIFT; in fpu_stof() 178 f1 = frac << (32 - SNG_SHIFT); in fpu_stof() 190 u_int frac, f0, f1, f2; in fpu_dtof() local 194 frac = i & mask(DBL_FRACBITS - 32); in fpu_dtof() 195 f0 = frac >> DBL_SHIFT; in fpu_dtof() 198 frac |= j; in fpu_dtof() 209 u_int frac, f0, f1, f2, f3; in fpu_qtof() local 216 frac = i & mask(EXT_FRACBITS - 3 * 32); in fpu_qtof() [all …]
|
/openbsd/lib/libc/arch/sparc64/fpu/ |
H A D | fpu_explode.c | 233 u_int frac, f0, f1; local 237 frac = i & mask(SNG_FRACBITS); 238 f0 = frac >> SNG_SHIFT; 239 f1 = frac << (32 - SNG_SHIFT); 253 u_int frac, f0, f1, f2; local 257 frac = i & mask(DBL_FRACBITS - 32); 258 f0 = frac >> DBL_SHIFT; 261 frac |= j; 274 u_int frac, f0, f1, f2, f3; local 281 frac = i & mask(EXT_FRACBITS - 3 * 32); [all …]
|
/openbsd/lib/libc/gen/ |
H A D | modf.c | 51 u_int64_t frac; in modf() local 97 frac = ((u_int64_t)v.s.dbl_frach << 32) + v.s.dbl_fracl; in modf() 98 frac >>= DBL_FRACBITS - (u.s.dbl_exp - DBL_EXP_BIAS); in modf() 99 frac <<= DBL_FRACBITS - (u.s.dbl_exp - DBL_EXP_BIAS); in modf() 100 v.s.dbl_fracl = frac & 0xffffffff; in modf() 101 v.s.dbl_frach = frac >> 32; in modf()
|
/openbsd/gnu/usr.bin/perl/lib/ExtUtils/ |
H A D | XSSymSet.pm | 45 my $frac = 3; # replaces broken length-based calculations but w/same result 48 if ($frac > 1) { $pat .= '[^A-Z_]{' . ($frac - 1) . '}'; } 58 if ($frac > 1) { $pat .= '[^A-Z_]{' . ($frac - 1) . '}'; } 69 my $frac = int((length $trimmed - $maxlen) / length $trimmed + 0.5);
|
/openbsd/games/trek/ |
H A D | warp.c | 71 double power, dist, time, speed, frac; in warp() local 116 frac = franf(); in warp() 117 dist *= frac; in warp() 118 time *= frac; in warp() 119 damage(WARP, (frac + 1.0) * Ship.warp * (franf() + 0.25) * 0.20); in warp()
|
/openbsd/usr.bin/touch/ |
H A D | touch.c | 290 char *frac, *p; in stime_argd() local 303 frac = ++p; in stime_argd() 305 if (p - frac < 9) { in stime_argd() 311 if (p == frac) in stime_argd() 315 while (p - frac-- < 9) in stime_argd()
|
/openbsd/sys/dev/pci/drm/apple/ |
H A D | dcp_backlight.c | 96 u32 frac; in interpolate() local 105 frac = interpolated & (SCALE_FACTOR - 1); in interpolate() 109 return ((frac * high) + ((SCALE_FACTOR - frac) * low)) / SCALE_FACTOR; in interpolate()
|
/openbsd/usr.bin/less/ |
H A D | option.c | 652 long frac = 0; in getfraction() local 660 frac = (frac * 10) + (*s - '0'); in getfraction() 665 frac /= 10; in getfraction() 668 frac *= 10; in getfraction() 672 return (frac); in getfraction()
|
/openbsd/gnu/gcc/gcc/config/soft-fp/ |
H A D | extended.h | 271 _FP_W_TYPE frac : _FP_W_TYPE_SIZE; member 273 _FP_W_TYPE frac : _FP_W_TYPE_SIZE; 286 X##_f0 = _flo.bits.frac; \ 297 X##_f0 = _flo->bits.frac; \ 309 _flo.bits.frac = X##_f0; \ 325 _flo->bits.frac = X##_f0; \
|
H A D | op-1.h | 93 X##_f = _flo.bits.frac; \ 103 X##_f = _flo->bits.frac; \ 116 _flo.bits.frac = X##_f; \ 128 _flo->bits.frac = X##_f; \
|
H A D | single.h | 65 unsigned frac : _FP_FRACBITS_S - (_FP_IMPLBIT_S != 0); member 67 unsigned frac : _FP_FRACBITS_S - (_FP_IMPLBIT_S != 0);
|
H A D | double.h | 173 _FP_W_TYPE frac : _FP_FRACBITS_D - (_FP_IMPLBIT_D != 0); member 175 _FP_W_TYPE frac : _FP_FRACBITS_D - (_FP_IMPLBIT_D != 0);
|
/openbsd/regress/sys/dev/kcov/ |
H A D | kcov.c | 88 unsigned long *cover, frac; in main() local 103 frac = strtonum(optarg, 1, 100, &errstr); in main() 104 if (frac == 0) in main() 106 else if (frac > ctx.c_bufsize) in main() 108 ctx.c_bufsize /= frac; in main()
|
/openbsd/sys/arch/hppa/dev/ |
H A D | viper.h | 154 frac :12, /* fractional part (12 bits) */ member 165 #define vnu_p16f prec16.frac
|
/openbsd/usr.bin/kstat/ |
H A D | kstat.c | 57 unsigned int frac; member 75 fr->frac = (rem * 1000) / chunk; in fmt_thing() 461 if (fr.frac > 10) in kstat_kv() 462 printf(".%02u", fr.frac / 10); in kstat_kv()
|
/openbsd/sys/arch/octeon/octeon/ |
H A D | locore.S | 188 beqz a2, 2f # skip if frac == 2^64 190 dmultu t1, a2 # multiply with frac
|
/openbsd/sys/kern/ |
H A D | tty_nmea.c | 596 long fac = 36000L, div = 6L, secs = 0L, frac = 0L; in nmea_time_to_nano() local 628 frac *= 10; in nmea_time_to_nano() 629 frac += (*s - '0'); in nmea_time_to_nano() 637 *nano = secs * 1000000000LL + (int64_t)frac * (1000000000 / div); in nmea_time_to_nano()
|
/openbsd/usr.bin/rsync/ |
H A D | downloader.c | 81 float frac, tot = dl->total; in log_file() local 88 frac = (dl->total == 0) ? 100.0 : in log_file() 106 f->path, prec, tot, unit, frac); in log_file()
|
/openbsd/sys/arch/alpha/include/ |
H A D | cpu.h | 78 u_int32_t frac: 23, member 85 u_int64_t frac: 52, member
|
/openbsd/bin/pax/ |
H A D | tar.c | 984 char frac[sizeof(".111222333")] = ""; in xheader_add_ts() local 991 n = snprintf(frac, sizeof(frac), ".%09ld", in xheader_add_ts() 997 for (n--; n > 1 && frac[n] == '0'; n--) in xheader_add_ts() 998 frac[n] = '\0'; in xheader_add_ts() 1005 keyword, (long long)value->tv_sec, frac); in xheader_add_ts() 1015 (long long)value->tv_sec, frac) < 0) { in xheader_add_ts()
|
/openbsd/gnu/gcc/gcc/config/ |
H A D | fp-bit.c | 1506 USItype frac) 1513 in.fraction.ll = frac; 1564 __make_dp (fp_class_type class, unsigned int sign, int exp, UDItype frac) 1571 in.fraction.ll = frac; 1620 UTItype frac) 1627 in.fraction.ll = frac;
|
/openbsd/gnu/usr.bin/gcc/gcc/config/ |
H A D | fp-bit.c | 1443 USItype frac) 1450 in.fraction.ll = frac; 1501 __make_dp (fp_class_type class, unsigned int sign, int exp, UDItype frac) 1508 in.fraction.ll = frac; 1557 UTItype frac) 1564 in.fraction.ll = frac;
|
/openbsd/games/fortune/fortune/ |
H A D | fortune.c | 736 int percent, num_noprob, frac; in init_prob() local 776 frac = percent / num_noprob; in init_prob() 777 DPRINTF(1, (stderr, ", frac = %d%%", frac)); in init_prob() 780 fp->percent = frac; in init_prob() 781 percent -= frac; in init_prob()
|