Home
last modified time | relevance | path

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

/illumos-gate/usr/src/lib/libm/common/m9x/
H A Dnearbyintl.c49 unsigned hx, sx, i, frac; in __nearbyintl() local
94 frac = ((xx.i[0] << 1) << (127 - j)) | (xx.i[1] >> (j - 96)); in __nearbyintl()
96 frac |= 1; in __nearbyintl()
97 if (!frac) in __nearbyintl()
101 if (rm == FSR_RP || (rm == FSR_RN && (frac > 0x80000000u || in __nearbyintl()
102 (frac == 0x80000000 && (xx.i[0] & i))))) in __nearbyintl()
106 frac = ((xx.i[1] << 1) << (95 - j)) | (xx.i[2] >> (j - 64)); in __nearbyintl()
108 frac |= 1; in __nearbyintl()
109 if (!frac) in __nearbyintl()
113 if (rm == FSR_RP || (rm == FSR_RN && (frac > 0x80000000u || in __nearbyintl()
[all …]
H A Dnearbyint.c50 unsigned hx, sx, i, frac; in __nearbyint() local
92 frac = ((xx.i[HIWORD] << 1) << (63 - j)) | in __nearbyint()
95 frac |= 1; in __nearbyint()
96 if (!frac) in __nearbyint()
101 ((frac > 0x80000000u) || ((frac == 0x80000000) && in __nearbyint()
106 frac = (xx.i[LOWORD] << 1) << (31 - j); in __nearbyint()
107 if (!frac) in __nearbyint()
111 (frac > 0x80000000u || ((frac == 0x80000000) && in __nearbyint()
H A Dllrintl.c57 unsigned int hx, sx, frac, fsr; in llrintl() local
97 frac = ((xx.i[0] << 1) << (127 - j)) | (xx.i[1] >> (j - 96)); in llrintl()
99 frac |= 1; in llrintl()
103 frac = ((xx.i[1] << 1) << (95 - j)) | (xx.i[2] >> (j - 64)); in llrintl()
105 frac |= 1; in llrintl()
109 frac = ((xx.i[2] << 1) << (63 - j)) | (xx.i[3] >> (j - 32)); in llrintl()
111 frac |= 1; in llrintl()
115 if (frac && (rm == FSR_RP || (rm == FSR_RN && (frac > 0x80000000u || in llrintl()
116 (frac == 0x80000000 && (zz.i[1] & 1)))))) { in llrintl()
129 if (frac) { in llrintl()
H A Dlrintl.c51 unsigned int hx, sx, frac, l, fsr; in lrintl() local
90 frac = ((xx.i[0] << 1) << (127 - j)) | (xx.i[1] >> (j - 96)); in lrintl()
92 frac |= 1; in lrintl()
95 frac = (xx.i[1] << (96 - j)) | (xx.i[2] >> (j - 64)); in lrintl()
97 frac |= 1; in lrintl()
101 if (frac && (rm == FSR_RP || (rm == FSR_RN && (frac > 0x80000000U || in lrintl()
102 (frac == 0x80000000 && (l & 1)))))) in lrintl()
112 if (frac) { in lrintl()
H A Dllroundl.c53 unsigned hx, sx, frac; in llroundl() local
80 frac = ((xx.i[0] << 1) << (127 - j)) | (xx.i[1] >> (j - 96)); in llroundl()
82 frac |= 1; in llroundl()
86 frac = ((xx.i[1] << 1) << (95 - j)) | (xx.i[2] >> (j - 64)); in llroundl()
88 frac |= 1; in llroundl()
92 frac = ((xx.i[2] << 1) << (63 - j)) | (xx.i[3] >> (j - 32)); in llroundl()
94 frac |= 1; in llroundl()
98 if (frac >= 0x80000000u) { in llroundl()
H A Dlroundl.c47 unsigned hx, sx, frac, l; in lroundl() local
73 frac = ((xx.i[0] << 1) << (127 - j)) | (xx.i[1] >> (j - 96)); in lroundl()
75 frac |= 1; in lroundl()
78 frac = (xx.i[1] << (96 - j)) | (xx.i[2] >> (j - 64)); in lroundl()
80 frac |= 1; in lroundl()
84 if (frac >= 0x80000000U) in lroundl()
H A Dnearbyintf.c41 unsigned hx, sx, i, frac; in __nearbyintf() local
74 frac = hx & (i - 1); in __nearbyintf()
75 if (!frac) in __nearbyintf()
79 if (rm == FE_UPWARD || (rm == FE_TONEAREST && (frac > (i >> 1) || in __nearbyintf()
80 ((frac == (i >> 1)) && (hx & i))))) in __nearbyintf()
/illumos-gate/usr/src/boot/sys/sys/
H A Dtime.h55 uint64_t frac; member
63 _u = _bt->frac; in bintime_addx()
64 _bt->frac += _x; in bintime_addx()
65 if (_u > _bt->frac) in bintime_addx()
74 _u = _bt->frac; in bintime_add()
75 _bt->frac += _bt2->frac; in bintime_add()
76 if (_u > _bt->frac) in bintime_add()
86 _u = _bt->frac; in bintime_sub()
87 _bt->frac -= _bt2->frac; in bintime_sub()
88 if (_u < _bt->frac) in bintime_sub()
[all …]
/illumos-gate/usr/src/lib/libc/sparcv9/fp/
H A D__quad_mag64.S47 ! unsigned long frac;
64 ! unsigned long lx, ly, frac, sticky;
87 ! frac = x->ll.frac;
88 ! sticky = ly | y->ll.frac;
90 ! frac = y->ll.frac;
92 ! sticky = frac & 0x7ffffffffffffffful;
93 ! round = frac >> 63;
94 ! frac = ly;
99 ! sticky |= round | (frac & ((1ul << (e - 1)) - 1));
100 ! round = (frac >> (e - 1)) & 1;
[all …]
/illumos-gate/usr/src/cmd/sleep/
H A Dsleep.c65 long double d, sec, frac; in main() local
134 frac = modfl(d, &sec); in main()
140 while (sec > 0 || frac != 0) { in main()
143 if (frac != 0) { in main()
144 frac *= NANOSEC; in main()
145 ts.tv_nsec = (long)frac; in main()
146 frac = 0; in main()
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/profile/
H A Dprof_file.c312 unsigned long frac; in profile_update_file_data() local
334 frac = st.st_mtimensec; in profile_update_file_data()
336 frac = st.st_mtimespec.tv_nsec; in profile_update_file_data()
338 frac = st.st_mtim.tv_nsec; in profile_update_file_data()
340 frac = 0; in profile_update_file_data()
343 && frac == data->frac_ts in profile_update_file_data()
390 data->frac_ts = frac; in profile_update_file_data()
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_modapi.c71 int whole, frac, i; in mdb_snprintfrac() local
76 frac = mul * numerator / denom - mul * whole; in mdb_snprintfrac()
77 return (mdb_snprintf(buf, len, "%u.%0*u", whole, frac_digits, frac)); in mdb_snprintfrac()
141 uint64_t days, hours, mins, secs, frac; in mdb_nicetime() local
143 frac = delta % NANOSEC; in mdb_nicetime()
160 if (frac > 0) in mdb_nicetime()
161 (void) mdb_snprintf(fracbuf, sizeof (fracbuf), ".%llu", frac); in mdb_nicetime()
/illumos-gate/usr/src/lib/libm/i386/src/
H A Dieee_funcl.S75 / msb(sgnfcnd(x)) = 0 & frac(x) /= 0)
/illumos-gate/usr/src/lib/libm/amd64/src/
H A Dieee_funcl.S75 / msb(sgnfcnd(x)) = 0 & frac(x) /= 0)
/illumos-gate/usr/src/uts/intel/io/vmm/
H A Dvmm_sol_glue.c368 const uint64_t frac = count % freq; in hrt_freq_interval() local
370 return ((NANOSEC * sec) + ((frac * NANOSEC) / freq)); in hrt_freq_interval()
/illumos-gate/usr/src/uts/intel/io/vmm/sys/
H A Dvmm_kernel.h575 uint32_t frac);
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dip_ndp.c5212 clock_t rnd, frac; in nce_fuzz_interval() local
5224 if ((frac = intv / 5) <= 1) in nce_fuzz_interval()
5225 frac = 2; in nce_fuzz_interval()
5227 if ((intv = intv - frac + rnd % (2 * frac + 1)) <= 0) in nce_fuzz_interval()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dxec.c191 register int min, sec, frac; in l_time() local
195 frac = t%shgd->lim.clk_tck; in l_time()
196 frac = (frac*100)/shgd->lim.clk_tck; in l_time()
205 sfprintf(outfile,"%dm%d%c%0*ds",min,sec,GETDECIMAL(0),p,frac); in l_time()