qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] 4be8ee: fpu/softfloat.c: Remove pointless shi


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] 4be8ee: fpu/softfloat.c: Remove pointless shift of always-...
Date: Mon, 01 Oct 2012 13:30:10 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 4be8eeacb9f2b01ad98747ad88e54a7feabc664c
      
https://github.com/qemu/qemu/commit/4be8eeacb9f2b01ad98747ad88e54a7feabc664c
  Author: Peter Maydell <address@hidden>
  Date:   2012-10-01 (Mon, 01 Oct 2012)

  Changed paths:
    M fpu/softfloat.c

  Log Message:
  -----------
  fpu/softfloat.c: Remove pointless shift of always-zero value

In float16_to_float32, when returning an infinity, just pass zero
as the mantissa argument to packFloat32(), rather than shifting
a value which we know must be zero.

Signed-off-by: Peter Maydell <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>
Signed-off-by: Aurelien Jarno <address@hidden>


  Commit: e744c06fca438dc08271e626034e632a270c91c8
      
https://github.com/qemu/qemu/commit/e744c06fca438dc08271e626034e632a270c91c8
  Author: Peter Maydell <address@hidden>
  Date:   2012-10-01 (Mon, 01 Oct 2012)

  Changed paths:
    M fpu/softfloat.c

  Log Message:
  -----------
  fpu/softfloat.c: Return correctly signed values from uint64_to_float32

The uint64_to_float32() conversion function was incorrectly always
returning numbers with the sign bit set (ie negative numbers). Correct
this so we return positive numbers instead.

Signed-off-by: Peter Maydell <address@hidden>
Signed-off-by: Aurelien Jarno <address@hidden>


Compare: https://github.com/qemu/qemu/compare/0f41dc182c7e...e744c06fca43

reply via email to

[Prev in Thread] Current Thread [Next in Thread]