[prev in list] [next in list] [prev in thread] [next in thread] 

List:       qemu-commits
Subject:    [Qemu-commits] [qemu/qemu] ce8d40: fpu: Bound increment for scalbn
From:       GitHub <noreply () github ! com>
Date:       2018-04-17 13:52:54
Message-ID: 5ad5fc36a46bf_ea62aeb59901c0c2918a () hookshot-fe-da92815 ! cp1-iad ! github ! net ! mail
[Download RAW message or body]


  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: ce8d4082054519f2eaac39958edde502860a7fc6
      https://github.com/qemu/qemu/commit/ce8d4082054519f2eaac39958edde50=
2860a7fc6
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2018-04-17 (Tue, 17 Apr 2018)

  Changed paths:
    M fpu/softfloat.c

  Log Message:
  -----------
  fpu: Bound increment for scalbn

Without bounding the increment, we can overflow exp either here
in scalbn_decomposed or when adding the bias in round_canonical.
This can result in e.g. underflowing to 0 instead of overflowing
to infinity.

The old softfloat code did bound the increment.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Alex Benn=C3=A9e <alex.bennee@linaro.org>
Tested-by: Alex Benn=C3=A9e <alex.bennee@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic