Home
last modified time | relevance | path

Searched refs:diff (Results 1 – 25 of 27) sorted by relevance

12

/arch/x86/math-emu/
Dreg_add_sub.c45 int diff, tag, expa, expb; in FPU_add() local
59 diff = expa - expb; in FPU_add()
60 if (!diff) { in FPU_add()
61 diff = a->sigh - b->sigh; /* This works only if the ms bits in FPU_add()
63 if (!diff) { in FPU_add()
64 diff = a->sigl > b->sigl; in FPU_add()
65 if (!diff) in FPU_add()
66 diff = -(a->sigl < b->sigl); in FPU_add()
70 if (diff > 0) { in FPU_add()
74 } else if (diff < 0) { in FPU_add()
[all …]
Dreg_compare.c26 int diff, exp0, expb; in compare() local
141 diff = exp0 - expb; in compare()
142 if (diff == 0) { in compare()
143 diff = st0_ptr->sigh - b->sigh; /* Works only if ms bits are in compare()
145 if (diff == 0) { in compare()
146 diff = st0_ptr->sigl > b->sigl; in compare()
147 if (diff == 0) in compare()
148 diff = -(st0_ptr->sigl < b->sigl); in compare()
152 if (diff > 0) { in compare()
157 if (diff < 0) { in compare()
/arch/arm64/lib/
Dmemcmp.S40 diff .req x6 label
67 eor diff, data1, data2 /* Non-zero if differences found. */
68 csinv endloop, diff, xzr, cs /* Last Dword or differences. */
88 orr diff, diff, mask
170 eor diff, data1, data2 /*Non-zero if differences found.*/
171 csinv endloop, diff, xzr, ne
189 eor diff, data1, data2 /* Non-zero if differences found. */
190 cbnz diff, .Lnot_limit
195 eor diff, data1, data2 /* Non-zero if differences found. */
197 csinv endloop, diff, xzr, ne/*if limit_wd is 0,will finish the cmp*/
[all …]
Dstrcmp.S43 diff .req x5 label
70 eor diff, data1, data2 /* Non-zero if differences found. */
72 orr syndrome, diff, has_nul
139 eor diff, data1, data2 /* Non-zero if differences found. */
140 orr syndrome, diff, has_nul
161 eor diff, data1, data2 /* Non-zero if differences found. */
162 orr syndrome, diff, has_nul
171 eor diff, data1, data2 /* Non-zero if differences found. */
172 orr syndrome, diff, has_nul
204 CPU_BE( orr syndrome, diff, has_nul )
Dstrncmp.S44 diff .req x6 label
83 eor diff, data1, data2 /* Non-zero if differences found. */
84 csinv endloop, diff, xzr, pl /* Last Dword or differences.*/
107 orr syndrome, diff, has_nul
191 eor diff, data1, data2 /* Non-zero if differences found. */
192 csinv endloop, diff, xzr, ne/*if limit_wd is 0,will finish the cmp*/
215 eor diff, data1, data2 /* Non-zero if differences found. */
216 csinv endloop, diff, xzr, eq
225 eor diff, data1, data2 /* Non-zero if differences found. */
226 csinv endloop, diff, xzr, ne/*if limit_wd is 0,will finish the cmp*/
[all …]
/arch/powerpc/boot/
Dcuboot-acadia.c48 unsigned short diff; /* smallest diff */ in get_clocks() local
129 diff = 256; /* highest possible */ in get_clocks()
142 } else if (idiff < diff) { in get_clocks()
144 diff = idiff; /* update lowest diff*/ in get_clocks()
/arch/alpha/kernel/
Dtime.c394 long diff; in time_init() local
424 diff = cycle_freq - est_cycle_freq; in time_init()
425 if (diff < 0) in time_init()
426 diff = -diff; in time_init()
427 if ((unsigned long)diff > tolerance) { in time_init()
/arch/x86/hyperv/
Dmmu.c30 unsigned long cur = start, diff; in fill_gva_list() local
33 diff = end > cur ? end - cur : 0; in fill_gva_list()
40 if (diff >= HV_TLB_FLUSH_UNIT) { in fill_gva_list()
43 } else if (diff) { in fill_gva_list()
44 gva_list[gva_n] |= (diff - 1) >> PAGE_SHIFT; in fill_gva_list()
/arch/x86/boot/
Dboot.h178 bool diff; in memcmp_fs() local
180 : CC_OUT(nz) (diff), "+D" (s1), "+S" (s2), "+c" (len)); in memcmp_fs()
181 return diff; in memcmp_fs()
185 bool diff; in memcmp_gs() local
187 : CC_OUT(nz) (diff), "+D" (s1), "+S" (s2), "+c" (len)); in memcmp_gs()
188 return diff; in memcmp_gs()
Dstring.c34 bool diff; in memcmp() local
36 : CC_OUT(nz) (diff), "+D" (s1), "+S" (s2), "+c" (len)); in memcmp()
37 return diff; in memcmp()
/arch/powerpc/platforms/powermac/
Dbacklight.c89 int diff = abs(info->bl_curve[i] - value); in pmac_backlight_curve_lookup() local
90 if (diff < max) { in pmac_backlight_curve_lookup()
91 max = diff; in pmac_backlight_curve_lookup()
/arch/um/kernel/
Dum_arch.c252 unsigned long avail, diff; in linux_main() local
287 diff = UML_ROUND_UP(brk_start) - UML_ROUND_UP(&_end); in linux_main()
288 if (diff > 1024 * 1024) { in linux_main()
290 "exec-shield gap\n", diff); in linux_main()
/arch/arm/mm/
Dpmsa-v7.c193 phys_addr_t diff = size; in allocate_region() local
196 while (diff) { in allocate_region()
201 diff -= size; in allocate_region()
202 size = diff; in allocate_region()
213 phys_addr_t p2size = (1 << __fls(diff)) - 1; in allocate_region()
/arch/m68k/math-emu/
Dfp_arith.c63 int diff; in fp_fadd() local
95 if ((diff = dest->exp - src->exp) > 0) in fp_fadd()
96 fp_denormalize(src, diff); in fp_fadd()
97 else if ((diff = -diff) > 0) in fp_fadd()
98 fp_denormalize(dest, diff); in fp_fadd()
/arch/mips/alchemy/common/
Dclock.c399 long tdv, tpr, pr, nr, br, bpr, diff, lastdiff; in alchemy_clk_fgcs_detr() local
432 diff = req->rate - nr; in alchemy_clk_fgcs_detr()
436 if (diff < lastdiff) { in alchemy_clk_fgcs_detr()
437 lastdiff = diff; in alchemy_clk_fgcs_detr()
442 if (diff == 0) in alchemy_clk_fgcs_detr()
460 diff = req->rate - nr; in alchemy_clk_fgcs_detr()
463 if (diff < lastdiff) { in alchemy_clk_fgcs_detr()
464 lastdiff = diff; in alchemy_clk_fgcs_detr()
469 if (diff == 0) in alchemy_clk_fgcs_detr()
/arch/parisc/math-emu/
DREADME6 make their 'diff' job easier if our code is relatively unmodified.
/arch/um/drivers/
Dmconsole_kern.c284 unsigned long long diff; in mem_config() local
305 diff = memparse(str, &ret); in mem_config()
311 diff /= PAGE_SIZE; in mem_config()
314 for (i = 0; i < diff; i++) { in mem_config()
/arch/powerpc/kernel/
Dtime.c448 int diff; in __delay() local
455 diff = get_rtcl() - start; in __delay()
456 if (diff < 0) in __delay()
457 diff += 1000000000; in __delay()
459 } while (diff < loops); in __delay()
/arch/ia64/kernel/
Dsmpboot.c284 long diff; /* difference between midpoint and master's timestamp */ in ia64_sync_itc() member
328 t[i].diff = delta; in ia64_sync_itc()
338 t[i].rt, t[i].master, t[i].diff, t[i].lat); in ia64_sync_itc()
/arch/x86/kvm/vmx/
Dpmu_intel.c59 u64 diff = pmu->global_ctrl ^ data; in global_ctrl_changed() local
63 for_each_set_bit(bit, (unsigned long *)&diff, X86_PMC_IDX_MAX) in global_ctrl_changed()
/arch/sparc/kernel/
Dsbus.c206 unsigned long diff = SYSIO_ICLR_UNUSED0 - SYSIO_IMAP_SLOT0; in sysio_imap_to_iclr() local
207 return imap + diff; in sysio_imap_to_iclr()
Dprom_irqtrans.c644 unsigned long diff = SYSIO_ICLR_UNUSED0 - SYSIO_IMAP_SLOT0; in sysio_imap_to_iclr() local
645 return imap + diff; in sysio_imap_to_iclr()
Dsmp_64.c211 long diff; /* difference between midpoint and master's timestamp */ in smp_synchronize_tick_client() member
240 t[i].diff = delta; in smp_synchronize_tick_client()
250 t[i].rt, t[i].master, t[i].diff, t[i].lat); in smp_synchronize_tick_client()
Dldc.c252 unsigned long limit, tail, new_tail, diff; in tx_has_space_for() local
262 diff = limit - new_tail; in tx_has_space_for()
264 diff = (limit + in tx_has_space_for()
266 diff /= LDC_PACKET_SIZE; in tx_has_space_for()
269 if (diff * mss < size) in tx_has_space_for()
/arch/m68k/fpsp040/
Dround.S442 subw LOCAL_EX(%a0),%d0 |diff = threshold - exp
443 cmpw #67,%d0 |if diff > 67 (mant + grs bits)
455 subw LOCAL_EX(%a0),%d0 |diff = threshold - exp
456 cmpw #67,%d0 |if diff > 67 (mant + grs bits)

12