aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/math-emu/dp_add.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2014-04-18 18:36:32 -0400
committerRalf Baechle <ralf@linux-mips.org>2014-05-21 05:12:57 -0400
commit9e8bad1f9c0370b2635175b34d6151b90a53da5c (patch)
tree0971254e7d21761a5dec3f946e2f65c9fd43e844 /arch/mips/math-emu/dp_add.c
parentbee1653593b39ac85b45a057bb8c22dc1489cf6a (diff)
MIPS: math-emu: Turn macros into functions where possible.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/math-emu/dp_add.c')
-rw-r--r--arch/mips/math-emu/dp_add.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/mips/math-emu/dp_add.c b/arch/mips/math-emu/dp_add.c
index b5aac129e9f1..7daaafcfeb78 100644
--- a/arch/mips/math-emu/dp_add.c
+++ b/arch/mips/math-emu/dp_add.c
@@ -35,7 +35,7 @@ union ieee754dp ieee754dp_add(union ieee754dp x, union ieee754dp y)
35 EXPLODEXDP; 35 EXPLODEXDP;
36 EXPLODEYDP; 36 EXPLODEYDP;
37 37
38 CLEARCX; 38 ieee754_clearcx();
39 39
40 FLUSHXDP; 40 FLUSHXDP;
41 FLUSHYDP; 41 FLUSHYDP;
@@ -52,7 +52,7 @@ union ieee754dp ieee754dp_add(union ieee754dp x, union ieee754dp y)
52 case CLPAIR(IEEE754_CLASS_SNAN, IEEE754_CLASS_NORM): 52 case CLPAIR(IEEE754_CLASS_SNAN, IEEE754_CLASS_NORM):
53 case CLPAIR(IEEE754_CLASS_SNAN, IEEE754_CLASS_DNORM): 53 case CLPAIR(IEEE754_CLASS_SNAN, IEEE754_CLASS_DNORM):
54 case CLPAIR(IEEE754_CLASS_SNAN, IEEE754_CLASS_INF): 54 case CLPAIR(IEEE754_CLASS_SNAN, IEEE754_CLASS_INF):
55 SETCX(IEEE754_INVALID_OPERATION); 55 ieee754_setcx(IEEE754_INVALID_OPERATION);
56 return ieee754dp_nanxcpt(ieee754dp_indef(), "add", x, y); 56 return ieee754dp_nanxcpt(ieee754dp_indef(), "add", x, y);
57 57
58 case CLPAIR(IEEE754_CLASS_ZERO, IEEE754_CLASS_QNAN): 58 case CLPAIR(IEEE754_CLASS_ZERO, IEEE754_CLASS_QNAN):
@@ -75,7 +75,7 @@ union ieee754dp ieee754dp_add(union ieee754dp x, union ieee754dp y)
75 case CLPAIR(IEEE754_CLASS_INF, IEEE754_CLASS_INF): 75 case CLPAIR(IEEE754_CLASS_INF, IEEE754_CLASS_INF):
76 if (xs == ys) 76 if (xs == ys)
77 return x; 77 return x;
78 SETCX(IEEE754_INVALID_OPERATION); 78 ieee754_setcx(IEEE754_INVALID_OPERATION);
79 return ieee754dp_xcpt(ieee754dp_indef(), "add", x, y); 79 return ieee754dp_xcpt(ieee754dp_indef(), "add", x, y);
80 80
81 case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_INF): 81 case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_INF):