]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - arch/mips/math-emu/dp_simple.c
MIPS: Restore signalling NaN behaviour for abs.[sd]
[net-next-2.6.git] / arch / mips / math-emu / dp_simple.c
index d9ae1dbabda700f2cf20b642476a62efb5199b26..b90974246e5b1a1f044b95e672f673d22ac99fc8 100644 (file)
@@ -78,6 +78,7 @@ ieee754dp ieee754dp_abs(ieee754dp x)
        DPSIGN(x) = 0;
 
        if (xc == IEEE754_CLASS_SNAN) {
+               SETCX(IEEE754_INVALID_OPERATION);
                return ieee754dp_nanxcpt(ieee754dp_indef(), "abs");
        }