mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-22 01:21:53 -06:00
target-ppc: get rid of the HANDLE_NAN{1, 2, 3} macros
We can finally get rid of the ugly HANDLE_NAN{1,2,3} macros. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
2f93c23fe7
commit
89243b3b01
1 changed files with 0 additions and 21 deletions
|
@ -287,23 +287,6 @@ target_ulong helper_602_mfrom(target_ulong arg)
|
||||||
for (index = ARRAY_SIZE(r->element)-1; index >= 0; index--)
|
for (index = ARRAY_SIZE(r->element)-1; index >= 0; index--)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* If X is a NaN, store the corresponding QNaN into RESULT. Otherwise,
|
|
||||||
* execute the following block. */
|
|
||||||
#define DO_HANDLE_NAN(result, x) \
|
|
||||||
if (float32_is_any_nan(x)) { \
|
|
||||||
CPU_FloatU __f; \
|
|
||||||
__f.f = x; \
|
|
||||||
__f.l = __f.l | (1 << 22); /* Set QNaN bit. */ \
|
|
||||||
result = __f.f; \
|
|
||||||
} else
|
|
||||||
|
|
||||||
#define HANDLE_NAN1(result, x) \
|
|
||||||
DO_HANDLE_NAN(result, x)
|
|
||||||
#define HANDLE_NAN2(result, x, y) \
|
|
||||||
DO_HANDLE_NAN(result, x) DO_HANDLE_NAN(result, y)
|
|
||||||
#define HANDLE_NAN3(result, x, y, z) \
|
|
||||||
DO_HANDLE_NAN(result, x) DO_HANDLE_NAN(result, y) DO_HANDLE_NAN(result, z)
|
|
||||||
|
|
||||||
/* Saturating arithmetic helpers. */
|
/* Saturating arithmetic helpers. */
|
||||||
#define SATCVT(from, to, from_type, to_type, min, max) \
|
#define SATCVT(from, to, from_type, to_type, min, max) \
|
||||||
static inline to_type cvt##from##to(from_type x, int *sat) \
|
static inline to_type cvt##from##to(from_type x, int *sat) \
|
||||||
|
@ -1413,10 +1396,6 @@ VUPK(lsh, s32, s16, UPKLO)
|
||||||
#undef UPKHI
|
#undef UPKHI
|
||||||
#undef UPKLO
|
#undef UPKLO
|
||||||
|
|
||||||
#undef DO_HANDLE_NAN
|
|
||||||
#undef HANDLE_NAN1
|
|
||||||
#undef HANDLE_NAN2
|
|
||||||
#undef HANDLE_NAN3
|
|
||||||
#undef VECTOR_FOR_INORDER_I
|
#undef VECTOR_FOR_INORDER_I
|
||||||
#undef HI_IDX
|
#undef HI_IDX
|
||||||
#undef LO_IDX
|
#undef LO_IDX
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue