Home
last modified time | relevance | path

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

/linux-2.6.39/arch/sh/kernel/cpu/sh2a/
Dfpu.c204 int frac; in denormal_subf1() local
217 frac = (ix & 0x007fffff) | 0x00800000; in denormal_subf1()
218 frac -= iy; in denormal_subf1()
219 while (frac < 0x00800000) { in denormal_subf1()
221 return frac; in denormal_subf1()
222 frac <<= 1; in denormal_subf1()
225 return (exp << 23) | (frac & 0x007fffff); in denormal_subf1()
231 int frac; in denormal_addf1() local
244 frac = (ix & 0x007fffff) | 0x00800000; in denormal_addf1()
245 frac += iy; in denormal_addf1()
[all …]
/linux-2.6.39/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()
/linux-2.6.39/arch/powerpc/include/asm/
Dcputime.h174 unsigned int frac; in cputime_to_timespec() local
176 frac = do_div(x, tb_ticks_per_sec); in cputime_to_timespec()
178 x = (u64) frac * 1000000000; in cputime_to_timespec()
198 unsigned int frac; in cputime_to_timeval() local
200 frac = do_div(x, tb_ticks_per_sec); in cputime_to_timeval()
202 x = (u64) frac * 1000000; in cputime_to_timeval()
/linux-2.6.39/include/math-emu/
Dop-1.h79 X##_f = _flo.bits.frac; \
89 X##_f = _flo->bits.frac; \
102 _flo.bits.frac = X##_f; \
114 _flo->bits.frac = X##_f; \
Dsingle.h53 unsigned frac : _FP_FRACBITS_S - (_FP_IMPLBIT_S != 0); member
55 unsigned frac : _FP_FRACBITS_S - (_FP_IMPLBIT_S != 0);
Ddouble.h136 unsigned long frac : _FP_FRACBITS_D - (_FP_IMPLBIT_D != 0); member
138 unsigned long frac : _FP_FRACBITS_D - (_FP_IMPLBIT_D != 0);
/linux-2.6.39/lib/
Dproportions.c271 struct prop_local_percpu *pl, long frac) in __prop_inc_percpu_max() argument
277 if (unlikely(frac != PROP_FRAC_BASE)) { in __prop_inc_percpu_max()
287 if (numerator > ((denominator * frac) >> PROP_FRAC_SHIFT)) in __prop_inc_percpu_max()
/linux-2.6.39/arch/arm/mach-mxs/
Dclock-mx23.c224 u32 reg, bm_busy, div_max, d, f, div, frac; local
242 div = frac = 1;
255 frac = f;
269 reg |= frac;
Dclock-mx28.c294 u32 reg, bm_busy, div_max, d, f, div, frac; \
320 div = frac = 1; \
338 frac = f; \
352 reg |= frac; \
/linux-2.6.39/include/linux/
Dproportions.h90 struct prop_local_percpu *pl, long frac);
/linux-2.6.39/drivers/video/
Dpxa168fb.h333 #define CLK_FRACDIV(frac) ((frac) << 16) argument
/linux-2.6.39/drivers/scsi/
Dscsi_transport_spi.c100 int frac = value % denom; in sprint_frac() local
103 if (frac == 0) in sprint_frac()
109 sprintf(dest + result, "%d", frac / denom); in sprint_frac()
111 frac %= denom; in sprint_frac()
112 } while (frac); in sprint_frac()
/linux-2.6.39/arch/alpha/kernel/
Dtraps.c694 unsigned long frac = (s_mem >> 0) & 0x7fffff; in s_mem_to_reg() local
712 return (sign << 63) | (exp << 52) | (frac << 29); in s_mem_to_reg()
/linux-2.6.39/drivers/scsi/qla2xxx/
Dqla_attr.c1317 uint16_t temp, frac; in qla2x00_thermal_temp_show() local
1322 temp = frac = 0; in qla2x00_thermal_temp_show()
1329 rval = qla2x00_get_thermal_temp(vha, &temp, &frac); in qla2x00_thermal_temp_show()
1331 temp = frac = 0; in qla2x00_thermal_temp_show()
1333 return snprintf(buf, PAGE_SIZE, "%d.%02d\n", temp, frac); in qla2x00_thermal_temp_show()
Dqla_mbx.c4160 qla2x00_get_thermal_temp(scsi_qla_host_t *vha, uint16_t *temp, uint16_t *frac) in qla2x00_get_thermal_temp() argument
4215 *frac = ((mcp->mb[1] & 0xFF) >> 6) * 25; in qla2x00_get_thermal_temp()
/linux-2.6.39/drivers/hwmon/
Dadt7462.c894 u8 frac = data->temp_frac[attr->index] >> TEMP_FRAC_OFFSET; in show_temp() local
900 250 * frac); in show_temp()