math-emu: Fix thinko in _FP_DIV
authorDavid S. Miller <davem@davemloft.net>
Thu, 23 Oct 2008 05:09:59 +0000 (22:09 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Oct 2008 05:09:59 +0000 (22:09 -0700)
commitaca3eb6f7dcbd082207cd260927ac45be5e24147
tree7e6e42c232a23b2e92ef2bedc9bd3a30b31ab92e
parent027acf860e90213d1cb7d0fd7403e7131d0dfb7b
math-emu: Fix thinko in _FP_DIV

In commit 42c2c182816ca757bc033d69a10541db37986e2b ("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>
include/math-emu/op-common.h