target/sparc: Split out do_ms16b
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 2 May 2024 16:55:28 +0000 (09:55 -0700)
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Sun, 5 May 2024 20:02:48 +0000 (21:02 +0100)
commitd6f898cf85c92389182d22f0bcc3a11d7194fc94
treed24d3df2ed39cf55523f0ab44238cc2718d4f2d0
parentd3ef26afde77fbdedd5b30282134ff99d0fe5cc5
target/sparc: Split out do_ms16b

The unit operation for fmul8x16 and friends is described in the
manual as "MS16b".  Split that out for clarity.  Improve rounding
with an unconditional addition of 0.5 as a fixed-point integer.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20240502165528.244004-8-richard.henderson@linaro.org>
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
target/sparc/vis_helper.c