diff options
author | Aleksandar Markovic <aleksandar.markovic@mips.com> | 2017-11-02 14:14:01 +0300 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2017-12-12 19:20:19 +0300 |
commit | 999eae9bf61d379b22f460b31f76b4a03f40bb22 (patch) | |
tree | 774c62ee8de884ad42f4f8fe85ea91e499c72384 /arch/mips/math-emu/ieee754dp.h | |
parent | ddae82d09a7ea7e374edfe29ca5600ecc7941316 (diff) | |
download | linux-999eae9bf61d379b22f460b31f76b4a03f40bb22.tar.xz |
MIPS: math-emu: Avoid definition duplication for macro DPXMULT()
Avoid duplicate definition of macro DPXMULT(). Move its definition
to a header.
Signed-off-by: Aleksandar Markovic <aleksandar.markovic@mips.com>
Cc: Douglas Leung <douglas.leung@mips.com>
Cc: Goran Ferenc <goran.ferenc@mips.com>
Cc: James Hogan <james.hogan@mips.com>
Cc: Miodrag Dinic <miodrag.dinic@mips.com>
Cc: Paul Burton <paul.burton@mips.com>
Cc: Petar Jovanovic <petar.jovanovic@mips.com>
Cc: Raghu Gandham <raghu.gandham@mips.com>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/17584/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/math-emu/ieee754dp.h')
-rw-r--r-- | arch/mips/math-emu/ieee754dp.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/mips/math-emu/ieee754dp.h b/arch/mips/math-emu/ieee754dp.h index 9ba023004eb6..a56707b75282 100644 --- a/arch/mips/math-emu/ieee754dp.h +++ b/arch/mips/math-emu/ieee754dp.h @@ -55,6 +55,9 @@ static inline int ieee754dp_finite(union ieee754dp x) #define XDPSRS1(v) \ (((v) >> 1) | ((v) & 1)) +/* 32bit * 32bit => 64bit unsigned integer multiplication */ +#define DPXMULT(x, y) ((u64)(x) * (u64)y) + /* convert denormal to normalized with extended exponent */ #define DPDNORMx(m,e) \ while ((m >> DP_FBITS) == 0) { m <<= 1; e--; } |