diff options
author | Markos Chandras | 2015-08-13 09:56:34 +0200 |
---|---|---|
committer | Ralf Baechle | 2015-09-03 12:08:14 +0200 |
commit | 38db37ba069f9d801ef56b820cfc7c247a7ffc02 (patch) | |
tree | 9a053440a3afabd7f7f19bcc65a9cd9d0735f028 /arch/mips/math-emu/ieee754.h | |
parent | 400bd2e41393a783e0532321fdb369d2cc15ea26 (diff) |
MIPS: math-emu: Add support for the MIPS R6 CLASS FPU instruction
MIPS R6 introduced the following instruction:
Stores in fd a bit mask reflecting the floating-point class of the
floating point scalar value fs.
CLASS.fmt: FPR[fd] = class(FPR[fs])
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/10959/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/math-emu/ieee754.h')
-rw-r--r-- | arch/mips/math-emu/ieee754.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/math-emu/ieee754.h b/arch/mips/math-emu/ieee754.h index 8c780190a059..3b833eac48f5 100644 --- a/arch/mips/math-emu/ieee754.h +++ b/arch/mips/math-emu/ieee754.h @@ -79,6 +79,7 @@ union ieee754sp ieee754sp_maddf(union ieee754sp z, union ieee754sp x, union ieee754sp y); union ieee754sp ieee754sp_msubf(union ieee754sp z, union ieee754sp x, union ieee754sp y); +int ieee754sp_2008class(union ieee754sp x); /* * double precision (often aka double) @@ -108,6 +109,7 @@ union ieee754dp ieee754dp_maddf(union ieee754dp z, union ieee754dp x, union ieee754dp y); union ieee754dp ieee754dp_msubf(union ieee754dp z, union ieee754dp x, union ieee754dp y); +int ieee754dp_2008class(union ieee754dp x); /* 5 types of floating point number |