diff options
author | David S. Miller <davem@davemloft.net> | 2008-10-23 01:09:59 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-10-23 01:09:59 -0400 |
commit | 60b8267338aafde5315fc65ff385f3d4d75eccfe (patch) | |
tree | 7e6e42c232a23b2e92ef2bedc9bd3a30b31ab92e | |
parent | 930cc144a043ff95e56b6888fa51c618b33f89e7 (diff) |
math-emu: Fix thinko in _FP_DIV
In commit 48d6c64311ddb6417b901639530ccbc47bdc7635 ("math-emu: Add
support for reporting exact invalid exception") code was added to
set the new FP_EX_INVALID_{IDI,ZDZ} exception flag bits.
However there is a missing break statement for the
_FP_CLS_COMBINE(FP_CLS_INF,FP_CLS_INF) switch case, the
code just falls into _FP_CLS_COMBINE(FP_CLS_ZERO,FP_CLS_ZERO)
which then proceeds to overwrite all of the settings.
Fix by adding the missing break.
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | include/math-emu/op-common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/math-emu/op-common.h b/include/math-emu/op-common.h index bc50aa0d6d73..f456534dcaf9 100644 --- a/include/math-emu/op-common.h +++ b/include/math-emu/op-common.h | |||
@@ -503,6 +503,8 @@ do { \ | |||
503 | R##_c = FP_CLS_NAN; \ | 503 | R##_c = FP_CLS_NAN; \ |
504 | _FP_FRAC_SET_##wc(R, _FP_NANFRAC_##fs); \ | 504 | _FP_FRAC_SET_##wc(R, _FP_NANFRAC_##fs); \ |
505 | FP_SET_EXCEPTION(FP_EX_INVALID | FP_EX_INVALID_IDI);\ | 505 | FP_SET_EXCEPTION(FP_EX_INVALID | FP_EX_INVALID_IDI);\ |
506 | break; \ | ||
507 | \ | ||
506 | case _FP_CLS_COMBINE(FP_CLS_ZERO,FP_CLS_ZERO): \ | 508 | case _FP_CLS_COMBINE(FP_CLS_ZERO,FP_CLS_ZERO): \ |
507 | R##_s = _FP_NANSIGN_##fs; \ | 509 | R##_s = _FP_NANSIGN_##fs; \ |
508 | R##_c = FP_CLS_NAN; \ | 510 | R##_c = FP_CLS_NAN; \ |