fpu/softfloat: improve comments on ARM NaN propagation
authorAlex Bennée <alex.bennee@linaro.org>
Wed, 19 Jul 2017 10:49:42 +0000 (11:49 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Wed, 21 Feb 2018 10:20:37 +0000 (10:20 +0000)
Mention the pseudo-code fragment from which this is based.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
fpu/softfloat-specialize.h

index de2c5d570205d4ff341a03b0cfd7b7bd665cfdb3..4be0fb21bac011a368ccfde73c9d83f8270afb91 100644 (file)
@@ -445,9 +445,10 @@ static float32 commonNaNToFloat32(commonNaNT a, float_status *status)
 
 #if defined(TARGET_ARM)
 static int pickNaN(flag aIsQNaN, flag aIsSNaN, flag bIsQNaN, flag bIsSNaN,
-                    flag aIsLargerSignificand)
+                   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)