]> git.proxmox.com Git - qemu.git/commit - fpu/softfloat.c
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)
commit274f1b041e0d550750cc6992092ad0197b2c5320
tree122064602cf7e564f761314b4fa903ae39c83adf
parent79c18be7dfe660ab48f9f535e6cabd38c9f1d73b
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