]> git.proxmox.com Git - mirror_qemu.git/commit - fpu/softfloat.c
softfloat: Fix compilation failures with USE_SOFTFLOAT_STRUCT_TYPES
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 10 Feb 2011 13:59:34 +0000 (13:59 +0000)
committerAurelien Jarno <aurelien@aurel32.net>
Thu, 10 Feb 2011 19:16:43 +0000 (20:16 +0100)
commitd5138cf4a8f2415d2d568adfd3f65d3cc5a0b736
tree068f66d97323185ac4b9c7bdf00f90f7871401bc
parent2d981da77d7fb0c3ec83286bc617c4fc64765ac2
softfloat: Fix compilation failures with USE_SOFTFLOAT_STRUCT_TYPES

Make softfloat compile with USE_SOFTFLOAT_STRUCT_TYPES defined, by
adding and using new macros const_float16(), const_float32() and
const_float64() so you can use array initializers in an array of
float16/float32/float64 whether the types are bare or wrapped in the
structs.

[aurelien@aurel32.net: do the same for float16]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
fpu/softfloat.c
fpu/softfloat.h