Home
last modified time | relevance | path

Searched refs:frac (Results 1 – 22 of 22) sorted by relevance

/minix/sys/sys/
H A Dtime.h104 uint64_t frac; member
112 u = bt->frac; in bintime_addx()
113 bt->frac += x; in bintime_addx()
114 if (u > bt->frac) in bintime_addx()
123 u = bt->frac; in bintime_add()
124 bt->frac += bt2->frac; in bintime_add()
125 if (u > bt->frac) in bintime_add()
135 u = bt->frac; in bintime_sub()
136 bt->frac -= bt2->frac; in bintime_sub()
137 if (u < bt->frac) in bintime_sub()
[all …]
/minix/lib/libc/gen/
H A Dfixunstfdi_ieee754.c59 uint32_t frac[(EXT_FRACBITS + 31)/32 + 2]; in FIXUNS() local
61 frac[0] = 0; in FIXUNS()
62 frac[1] = 0; in FIXUNS()
64 EXT_TO_ARRAY32(extu, &frac[2]); in FIXUNS()
71 &frac[__arraycount(frac)-1]); in FIXUNS()
H A Dfixunstfsi_ieee754.c63 uint32_t frac[(EXT_FRACBITS + 31)/32 + 1]; in FIXUNS() local
65 frac[0] = 0; in FIXUNS()
67 EXT_TO_ARRAY32(extu, &frac[1]); in FIXUNS()
74 &frac[__arraycount(frac)-1]); in FIXUNS()
H A Dfixunsgen_ieee754.c60 const uint32_t *frac) in FIXUNSNAME()
87 tmp |= *frac >> (fracbits - ebits); in FIXUNSNAME()
95 tmp = *frac--; in FIXUNSNAME()
98 tmp |= *frac--; in FIXUNSNAME()
101 fracbits = sizeof(frac[0]) * 4; in FIXUNSNAME()
H A Dmodf_ieee754.c46 u_int64_t frac; in modf() local
92 frac = ((u_int64_t)v.dblu_dbl.dbl_frach << 32) + v.dblu_dbl.dbl_fracl; in modf()
93 frac >>= DBL_FRACBITS - (u.dblu_dbl.dbl_exp - DBL_EXP_BIAS); in modf()
94 frac <<= DBL_FRACBITS - (u.dblu_dbl.dbl_exp - DBL_EXP_BIAS); in modf()
95 v.dblu_dbl.dbl_fracl = (u_int) (frac & 0xffffffffULL); in modf()
96 v.dblu_dbl.dbl_frach = (u_int) (frac >> 32); in modf()
H A Dfixunssfsi_ieee754.c57 const uint32_t frac[(SNG_FRACBITS + 31)/32 + 1] = { in __fixunssfsi() local
67 &frac[__arraycount(frac)-1]); in __fixunssfsi()
H A Dfixunsdfsi_ieee754.c57 const uint32_t frac[(DBL_FRACBITS + 31)/32 + 1] = { in __fixunsdfsi() local
68 &frac[__arraycount(frac)-1]); in __fixunsdfsi()
/minix/lib/libc/compat/gen/
H A Dcompat_modf_ieee754.c47 u_int64_t frac; in modf() local
93 frac = ((u_int64_t)v.dblu_dbl.dbl_frach << 32) + v.dblu_dbl.dbl_fracl; in modf()
94 frac >>= DBL_FRACBITS - (u.dblu_dbl.dbl_exp - DBL_EXP_BIAS); in modf()
95 frac <<= DBL_FRACBITS - (u.dblu_dbl.dbl_exp - DBL_EXP_BIAS); in modf()
96 v.dblu_dbl.dbl_fracl = (unsigned int)frac & 0xffffffff; in modf()
97 v.dblu_dbl.dbl_frach = (unsigned int)(frac >> 32); in modf()
/minix/lib/libc/quad/
H A Dfloatundisf_ieee754.c66 uint32_t frac; in __floatundisf() local
70 frac = u.ul[L] << (l + 1); /* clear implicit bit */ in __floatundisf()
74 frac = u.ul[H] << (l + 1); /* clear implicit bit */ in __floatundisf()
75 frac |= u.ul[L] >> (32 - (l + 1)); in __floatundisf()
78 ux.sngu_frac = frac >> (32 - SNG_FRACBITS); in __floatundisf()
H A Dfloatdisf_ieee754.c73 uint32_t frac; in __floatdisf() local
77 frac = u.ul[L] << (l + 1); /* clear implicit bit */ in __floatdisf()
81 frac = u.ul[H] << (l + 1); /* clear implicit bit */ in __floatdisf()
82 frac |= u.ul[L] >> (32 - (l + 1)); in __floatdisf()
85 ux.sngu_frac = frac >> (32 - SNG_FRACBITS); in __floatdisf()
/minix/tests/usr.bin/xlint/lint1/
H A Dd_c99_compound_literal_comma.c3 unsigned long long frac; member
12 .frac = (((us % 1000000U) >> 32)/1000000U) >> 32, in us2bintime()
/minix/external/bsd/less/dist/
H A Doption.c675 long frac = 0; local
684 frac = (frac * 10) + (*s - '0');
689 frac /= 10;
692 frac *= 10;
696 return (frac);
H A Dcmdbuf.c1341 cmd_int(frac) in cmd_int() argument
1342 long *frac; in cmd_int()
1350 *frac = 0;
1353 *frac = getfraction(&p, NULL, &err);
/minix/common/lib/libutil/
H A Dproc_compare.c65 # define P_RTIME_USEC p_rtime.frac
/minix/usr.bin/ftp/
H A Dutil.c708 char *timestr, *frac; in remotemodtime() local
721 frac = strchr(timestr, '\r'); in remotemodtime()
722 if (frac != NULL) in remotemodtime()
723 *frac = '\0'; in remotemodtime()
724 frac = strchr(timestr, '.'); in remotemodtime()
725 if (frac != NULL) in remotemodtime()
726 *frac++ = '\0'; in remotemodtime()
/minix/external/bsd/libpcap/dist/
H A Dsf-pcap-ng.c962 u_int64_t t, sec, frac; in pcap_ng_next_packet() local
1222 frac = t % ps->ifaces[interface_id].tsresol; in pcap_ng_next_packet()
1261 frac *= ps->user_tsresol; in pcap_ng_next_packet()
1262 frac /= ps->ifaces[interface_id].tsresol; in pcap_ng_next_packet()
1266 hdr->ts.tv_usec = (suseconds_t)frac; in pcap_ng_next_packet()
/minix/external/bsd/dhcpcd/dist/
H A Dauth.c445 double frac; in get_next_rdm_monotonic_clock() local
451 frac = ((double)ts.tv_nsec / 1e9 * 0x100000000ULL); in get_next_rdm_monotonic_clock()
452 pack[1] = htonl((uint32_t)frac); in get_next_rdm_monotonic_clock()
/minix/games/fortune/fortune/
H A Dfortune.c868 int percent, num_noprob, frac; in init_prob() local
899 frac = percent / num_noprob; in init_prob()
900 DPRINTF(1, (stderr, ", frac = %d%%", frac)); in init_prob()
903 fp->percent = frac; in init_prob()
904 percent -= frac; in init_prob()
/minix/external/lgpl3/mpfr/lib/libmpfr/
H A DMakefile95 frac.c \
265 frac.c \
/minix/external/mit/xorg/lib/libxcb/files/
H A Dxinput.h76 uint32_t frac; /**< */ member
/minix/external/bsd/flex/dist/doc/
H A Dflex.info-17373 {frac} (({dseq_opt}"."{dseq})|{dseq}".")
7383 {dfc} (({frac}{exp_opt}{fsuff_opt})|({dseq}{exp}{fsuff_opt}))
H A Dflex.texi8440 {frac} (({dseq_opt}"."{dseq})|{dseq}".")
8450 {dfc} (({frac}{exp_opt}{fsuff_opt})|({dseq}{exp}{fsuff_opt}))