From b5fdc7b411bdfee4807ad49364aee4f5e702a828 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Benn=C3=A9e?= Date: Thu, 8 Mar 2018 10:03:30 -0500 Subject: [PATCH] fpu/softfloat: improve comments on ARM NaN propagation Mention the pseudo-code fragment from which this is based. Backports commit 13894527f522caab4ec74334191ef29af975e521 from qemu --- qemu/fpu/softfloat-specialize.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qemu/fpu/softfloat-specialize.h b/qemu/fpu/softfloat-specialize.h index b4bc35ab..5e58d195 100644 --- a/qemu/fpu/softfloat-specialize.h +++ b/qemu/fpu/softfloat-specialize.h @@ -448,7 +448,8 @@ static float32 commonNaNToFloat32(commonNaNT a, float_status *status) static int pickNaN(flag aIsQNaN, flag aIsSNaN, flag bIsQNaN, flag bIsSNaN, flag aIsLargerSignificand) { - /* ARM mandated NaN propagation rules: take the first of: + /* ARM mandated NaN propagation rules (see FPProcessNaNs()), take + * the first of: * 1. A if it is signaling * 2. B if it is signaling * 3. A (quiet)