]> git.baikalelectronics.ru Git - kernel.git/commit
math-emu: Add support for reporting exact invalid exception
authorKumar Gala <galak@kernel.crashing.org>
Fri, 27 Jun 2008 14:39:00 +0000 (09:39 -0500)
committerKumar Gala <galak@kernel.crashing.org>
Tue, 16 Sep 2008 15:01:37 +0000 (10:01 -0500)
commit42c2c182816ca757bc033d69a10541db37986e2b
treedfdb08412813343a6ee3bb8b57d34b99ec818a27
parent33736f050e362646b3c1d4aa39b5b9affbad1b08
math-emu: Add support for reporting exact invalid exception

Some architectures (like powerpc) provide status information on the exact
type of invalid exception.  This is pretty straight forward as we already
report invalid exceptions via FP_SET_EXCEPTION.

We add new flags (FP_EX_INVALID_*) the architecture code can define if it
wants the exact invalid exception reported.

We had to split out the INF/INF and 0/0 cases for divide to allow reporting
the two invalid forms properly.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Acked-by: David S. Miller <davem@davemloft.net>
include/math-emu/op-common.h
include/math-emu/soft-fp.h