1. 22 11月, 2018 1 次提交
    • V
      nds32: support denormalized result through FP emulator · 44e92e03
      Vincent Chen 提交于
      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: NVincent Chen <vincentc@andestech.com>
      Acked-by: NGreentime Hu <greentime@andestech.com>
      Signed-off-by: NGreentime Hu <greentime@andestech.com>
      44e92e03
  2. 22 2月, 2018 1 次提交