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)
commit08133ed792b734189f733a827e142dc358063d1d
tree068f66d97323185ac4b9c7bdf00f90f7871401bc
parent6094b06f2716d9b997913012497b9104600ec695
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