linux_dsm_epyc7002/arch/nds32/include/uapi/asm
Vincent Chen 44e92e0364 nds32: support denormalized result through FP emulator
Currently, the nds32 FPU dose not support the arithmetic of denormalized
number. When the nds32 FPU finds the result of the instruction is a
denormlized number, the nds32 FPU considers it to be an underflow condition
and rounds the result to an appropriate number. It may causes some loss
of precision. This commit proposes a solution to re-execute the
instruction by the FPU emulator to enhance the precision. To transfer
calculations from user space to kernel space, this feature will enable
the underflow exception trap by default. Enabling this feature may cause
some side effects:
  1. Performance loss due to extra FPU exception
  2. Need another scheme to control real underflow trap
       A new parameter, UDF_trap, which is belong to FPU context is used
     to control underflow trap.

User can configure this feature via CONFIG_SUPPORT_DENORMAL_ARITHMETIC

Signed-off-by: Vincent Chen <vincentc@andestech.com>
Acked-by: Greentime Hu <greentime@andestech.com>
Signed-off-by: Greentime Hu <greentime@andestech.com>
2018-11-22 18:13:27 +08:00
..
auxvec.h nds32: support denormalized result through FP emulator 2018-11-22 18:13:27 +08:00
byteorder.h nds32: Miscellaneous header files 2018-02-22 10:44:34 +08:00
cachectl.h nds32: Cache and TLB routines 2018-02-22 10:44:32 +08:00
Kbuild nds32: Build infrastructure 2018-02-22 10:44:35 +08:00
param.h nds32: ELF definitions 2018-02-22 10:44:33 +08:00
ptrace.h nds32: Debugging support 2018-02-22 10:44:34 +08:00
sigcontext.h nds32: support denormalized result through FP emulator 2018-11-22 18:13:27 +08:00
udftrap.h nds32: support denormalized result through FP emulator 2018-11-22 18:13:27 +08:00
unistd.h nds32: support denormalized result through FP emulator 2018-11-22 18:13:27 +08:00