aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/math-emu/ieee754.h
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@linux-mips.org>2015-04-03 18:25:48 -0400
committerRalf Baechle <ralf@linux-mips.org>2015-04-07 19:09:42 -0400
commit42fa24242182771394ae93361914b7da4099a60d (patch)
tree9d2e54c1bf3f9af1b872f87af7fe1fe4217ae610 /arch/mips/math-emu/ieee754.h
parentbd267a53055c1a0fb3a8ad7fa74ae91ece13dcfb (diff)
MIPS: math-emu: Remove dead comparison helpers
None of the comparison helpers in ieee754.h is used, remove them. Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/9691/ 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.h65
1 files changed, 0 insertions, 65 deletions
diff --git a/arch/mips/math-emu/ieee754.h b/arch/mips/math-emu/ieee754.h
index 22d803d8feea..918334465212 100644
--- a/arch/mips/math-emu/ieee754.h
+++ b/arch/mips/math-emu/ieee754.h
@@ -126,71 +126,6 @@ enum {
126#define IEEE754_CGT 0x04 126#define IEEE754_CGT 0x04
127#define IEEE754_CUN 0x08 127#define IEEE754_CUN 0x08
128 128
129/* "normal" comparisons
130*/
131static inline int ieee754sp_eq(union ieee754sp x, union ieee754sp y)
132{
133 return ieee754sp_cmp(x, y, IEEE754_CEQ, 0);
134}
135
136static inline int ieee754sp_ne(union ieee754sp x, union ieee754sp y)
137{
138 return ieee754sp_cmp(x, y,
139 IEEE754_CLT | IEEE754_CGT | IEEE754_CUN, 0);
140}
141
142static inline int ieee754sp_lt(union ieee754sp x, union ieee754sp y)
143{
144 return ieee754sp_cmp(x, y, IEEE754_CLT, 0);
145}
146
147static inline int ieee754sp_le(union ieee754sp x, union ieee754sp y)
148{
149 return ieee754sp_cmp(x, y, IEEE754_CLT | IEEE754_CEQ, 0);
150}
151
152static inline int ieee754sp_gt(union ieee754sp x, union ieee754sp y)
153{
154 return ieee754sp_cmp(x, y, IEEE754_CGT, 0);
155}
156
157
158static inline int ieee754sp_ge(union ieee754sp x, union ieee754sp y)
159{
160 return ieee754sp_cmp(x, y, IEEE754_CGT | IEEE754_CEQ, 0);
161}
162
163static inline int ieee754dp_eq(union ieee754dp x, union ieee754dp y)
164{
165 return ieee754dp_cmp(x, y, IEEE754_CEQ, 0);
166}
167
168static inline int ieee754dp_ne(union ieee754dp x, union ieee754dp y)
169{
170 return ieee754dp_cmp(x, y,
171 IEEE754_CLT | IEEE754_CGT | IEEE754_CUN, 0);
172}
173
174static inline int ieee754dp_lt(union ieee754dp x, union ieee754dp y)
175{
176 return ieee754dp_cmp(x, y, IEEE754_CLT, 0);
177}
178
179static inline int ieee754dp_le(union ieee754dp x, union ieee754dp y)
180{
181 return ieee754dp_cmp(x, y, IEEE754_CLT | IEEE754_CEQ, 0);
182}
183
184static inline int ieee754dp_gt(union ieee754dp x, union ieee754dp y)
185{
186 return ieee754dp_cmp(x, y, IEEE754_CGT, 0);
187}
188
189static inline int ieee754dp_ge(union ieee754dp x, union ieee754dp y)
190{
191 return ieee754dp_cmp(x, y, IEEE754_CGT | IEEE754_CEQ, 0);
192}
193
194/* 129/*
195 * The control status register 130 * The control status register
196 */ 131 */