Home
last modified time | relevance | path

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

/arch/sh/kernel/cpu/sh2a/
Dfpu.c205 int frac; in denormal_subf1() local
218 frac = (ix & 0x007fffff) | 0x00800000; in denormal_subf1()
219 frac -= iy; in denormal_subf1()
220 while (frac < 0x00800000) { in denormal_subf1()
222 return frac; in denormal_subf1()
223 frac <<= 1; in denormal_subf1()
226 return (exp << 23) | (frac & 0x007fffff); in denormal_subf1()
232 int frac; in denormal_addf1() local
245 frac = (ix & 0x007fffff) | 0x00800000; in denormal_addf1()
246 frac += iy; in denormal_addf1()
[all …]
/arch/powerpc/include/asm/
Dcputime.h160 unsigned int frac; in cputime_to_timespec() local
162 frac = do_div(x, tb_ticks_per_sec); in cputime_to_timespec()
164 x = (u64) frac * 1000000000; in cputime_to_timespec()
184 unsigned int frac; in cputime_to_timeval() local
186 frac = do_div(x, tb_ticks_per_sec); in cputime_to_timeval()
188 x = (u64) frac * 1000000; in cputime_to_timeval()
/arch/powerpc/kernel/
Dvecemu.c39 unsigned int mant, frac; in eexp2() local
73 asm("mulhwu %0,%1,%2" : "=r" (frac) in eexp2()
75 asm("mulhwu %0,%1,%2" : "=r" (frac) : "r" (frac), "r" (mant)); in eexp2()
76 mant += frac; in eexp2()
93 int exp, mant, lz, frac; in elog2() local
133 asm("mulhwu %0,%1,%2" : "=r" (frac) in elog2()
135 exp += frac; in elog2()
/arch/arm/mach-imx/
Dclock-imx6q.c706 u32 frac, bp_frac; in pfd_get_rate() local
712 frac = readl_relaxed(clk->enable_reg) >> bp_frac & PFD_FRAC_MASK; in pfd_get_rate()
713 do_div(tmp, frac); in pfd_get_rate()
720 u32 val, frac, bp_frac; in pfd_set_rate() local
732 frac = tmp; in pfd_set_rate()
733 frac = (frac < 12) ? 12 : frac; in pfd_set_rate()
734 frac = (frac > 35) ? 35 : frac; in pfd_set_rate()
743 val |= frac << bp_frac; in pfd_set_rate()
747 do_div(tmp, frac); in pfd_set_rate()
757 u32 frac; in pfd_round_rate() local
[all …]
/arch/arm/mach-mxs/
Dclock-mx23.c224 u32 reg, bm_busy, div_max, d, f, div, frac; local
241 div = frac = 1;
254 frac = f;
268 reg |= frac;
Dclock-mx28.c323 u32 reg, bm_busy, div_max, d, f, div, frac; \
348 div = frac = 1; \
366 frac = f; \
380 reg |= frac << BP_CLKCTRL_##fr##_##fs##FRAC; \
/arch/alpha/kernel/
Dtraps.c695 unsigned long frac = (s_mem >> 0) & 0x7fffff; in s_mem_to_reg() local
713 return (sign << 63) | (exp << 52) | (frac << 29); in s_mem_to_reg()
/arch/x86/kvm/
Dsvm.c948 u64 mult, frac, _tsc; in __scale_tsc() local
951 frac = ratio & ((1ULL << 32) - 1); in __scale_tsc()
955 _tsc += (tsc >> 32) * frac; in __scale_tsc()
956 _tsc += ((tsc & ((1ULL << 32) - 1)) * frac) >> 32; in __scale_tsc()