Comment 5 for bug 889053

Revision history for this message
Peter Maydell (pmaydell) wrote :

The attached patch is incorrect (using the softfloat _min/_max functions will give wrong answers for some special cases). The correct macros are
#define FPU_MIN(size, a, b) float ## size ## _lt(a, b, &env->sse_status) ? (a) : (b)
#define FPU_MAX(size, a, b) float ## size ## _lt(b, a, &env->sse_status) ? (a) : (b)

(see recent discussion on the qemu-devel list).