diff options
Diffstat (limited to 'arch/mips/math-emu/ieee754dp.c')
-rw-r--r-- | arch/mips/math-emu/ieee754dp.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/arch/mips/math-emu/ieee754dp.c b/arch/mips/math-emu/ieee754dp.c index 068f45a415fc..9723a518e5ad 100644 --- a/arch/mips/math-emu/ieee754dp.c +++ b/arch/mips/math-emu/ieee754dp.c | |||
@@ -49,14 +49,9 @@ union ieee754dp __cold ieee754dp_nanxcpt(union ieee754dp r) | |||
49 | if (!ieee754dp_issnan(r)) /* QNAN does not cause invalid op !! */ | 49 | if (!ieee754dp_issnan(r)) /* QNAN does not cause invalid op !! */ |
50 | return r; | 50 | return r; |
51 | 51 | ||
52 | if (!ieee754_setandtestcx(IEEE754_INVALID_OPERATION)) { | 52 | /* If not enabled convert to a quiet NaN. */ |
53 | /* not enabled convert to a quiet NaN */ | 53 | if (!ieee754_setandtestcx(IEEE754_INVALID_OPERATION)) |
54 | DPMANT(r) &= (~DP_MBIT(DP_FBITS-1)); | 54 | return ieee754dp_indef(); |
55 | if (ieee754dp_isnan(r)) | ||
56 | return r; | ||
57 | else | ||
58 | return ieee754dp_indef(); | ||
59 | } | ||
60 | 55 | ||
61 | return r; | 56 | return r; |
62 | } | 57 | } |