Home
last modified time | relevance | path

Searched refs:swcr (Results 1 – 5 of 5) sorted by relevance

/arch/alpha/include/asm/
Dfpu.h60 swcr_update_status(unsigned long swcr, unsigned long fpcr) in swcr_update_status() argument
65 swcr &= ~IEEE_STATUS_MASK; in swcr_update_status()
66 swcr |= (fpcr >> 35) & IEEE_STATUS_MASK; in swcr_update_status()
68 return swcr; in swcr_update_status()
Dsfp-machine.h77 #define FP_DENORM_ZERO (swcr & IEEE_MAP_DMZ)
/arch/alpha/math-emu/
Dmath.c108 unsigned long res, va, vb, vc, swcr, fpcr; in alpha_fp_emul() local
121 swcr = swcr_update_status(current_thread_info()->ieee_state, fpcr); in alpha_fp_emul()
275 if ((_fex & FP_EX_UNDERFLOW) && (swcr & IEEE_MAP_UMZ)) in alpha_fp_emul()
282 if ((_fex & FP_EX_UNDERFLOW) && (swcr & IEEE_MAP_UMZ)) in alpha_fp_emul()
303 swcr |= (_fex << IEEE_STATUS_TO_EXCSUM_SHIFT); in alpha_fp_emul()
309 fpcr |= ieee_swcr_to_fpcr(swcr); in alpha_fp_emul()
313 _fex = _fex & swcr & IEEE_TRAP_ENABLE_MASK; in alpha_fp_emul()
/arch/alpha/kernel/
Dptrace.c134 unsigned long swcr in get_reg() local
136 swcr = swcr_update_status(swcr, fpcr); in get_reg()
137 return fpcr | swcr; in get_reg()
Dosf_sys.c823 unsigned long swcr, fpcr; in SYSCALL_DEFINE5() local
833 if (get_user(swcr, (unsigned long __user *)buffer)) in SYSCALL_DEFINE5()
838 *state = (*state & ~IEEE_SW_MASK) | (swcr & IEEE_SW_MASK); in SYSCALL_DEFINE5()
842 fpcr |= ieee_swcr_to_fpcr(swcr); in SYSCALL_DEFINE5()
849 unsigned long exc, swcr, fpcr, fex; in SYSCALL_DEFINE5() local
858 swcr = (*state & IEEE_SW_MASK) | exc; in SYSCALL_DEFINE5()
863 fpcr |= ieee_swcr_to_fpcr(swcr); in SYSCALL_DEFINE5()
868 fex = (exc >> IEEE_STATUS_TO_EXCSUM_SHIFT) & swcr; in SYSCALL_DEFINE5()