softfloat: Add float*_min() and float*_max() functions
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 11 Mar 2011 08:12:25 +0000 (08:12 +0000)
committerAurelien Jarno <aurelien@aurel32.net>
Sun, 3 Apr 2011 15:19:38 +0000 (17:19 +0200)
commitb348a8b1380e40fa88b0757baa7d1eb539a0e5ef
tree122064602cf7e564f761314b4fa903ae39c83adf
parent9b234d39f0c0a52bbd05f6322bd3378bc44c4526
softfloat: Add float*_min() and float*_max() functions

Add min and max operations to softfloat. This allows us to implement
propagation of NaNs and handling of negative zero correctly (unlike
the approach of having target helper routines return one of the operands
based on the result of a comparison op).

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
fpu/softfloat.c
fpu/softfloat.h