Skip to content

Commit

Permalink
MIPS: Restore signalling NaN behaviour for abs.[sd]
Browse files Browse the repository at this point in the history
Atsushi Nemoto <[email protected]> spotted that this had been incorrectly
removed in a previous patch

Signed-off-by: Chris Dearman <[email protected]>
To: [email protected]
Patchwork: http://patchwork.linux-mips.org/patch/1213/
Tested-by: Atsushi Nemoto <[email protected]>
Signed-off-by: Ralf Baechle <[email protected]>
  • Loading branch information
chrisdearman authored and ralfbaechle committed Jul 5, 2010
1 parent 4085467 commit e48682d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/mips/math-emu/dp_simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

Expand Down
1 change: 1 addition & 0 deletions arch/mips/math-emu/sp_simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ ieee754sp ieee754sp_abs(ieee754sp x)
SPSIGN(x) = 0;

if (xc == IEEE754_CLASS_SNAN) {
SETCX(IEEE754_INVALID_OPERATION);
return ieee754sp_nanxcpt(ieee754sp_indef(), "abs");
}

Expand Down

0 comments on commit e48682d

Please sign in to comment.