]> git.proxmox.com Git - mirror_qemu.git/commit - fpu/softfloat.c
softfloat: Define operations for bfloat16
authorLIU Zhiwei <zhiwei_liu@c-sky.com>
Thu, 13 Aug 2020 07:14:19 +0000 (15:14 +0800)
committerRichard Henderson <richard.henderson@linaro.org>
Fri, 28 Aug 2020 17:48:07 +0000 (10:48 -0700)
commit8282310d8535cc2a8431c516e907da79f92df6eb
tree770b25f08c3f2ba057fdccb9ce496bf94b1c5d1e
parenta03e924cf8a22888060fc0de4d91de053cd5cde4
softfloat: Define operations for bfloat16

This patch implements operations for bfloat16 except conversion and some misc
operations. We also add FloatFmt and pack/unpack interfaces for bfloat16.
As they are both static fields, we can't make a sperate patch for them.

Signed-off-by: LIU Zhiwei <zhiwei_liu@c-sky.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20200813071421.2509-2-zhiwei_liu@c-sky.com>
[rth: Use FloatRelation for comparison operations.]
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
fpu/softfloat.c
include/fpu/softfloat-types.h
include/fpu/softfloat.h