sparc/math-emu: Move sparc from math-emu-old to math-emu
PATCH 7/8 sparc/math-emu: Move sparc from math-emu-old to math-emu
From: Joseph Myers <[email protected]>
This patch moves sparc from math-emu-old to math-emu, updating it for the API changes.
The following cleanup (that goes beyond mechanical conversion to new APIs) is included in this patch because of its close connection to the API changes:
* On SPARC, comparisons now use raw unpacking (this should not in fact change how the emulation behaves, just make it more efficient).
---
arch/sparc/include/asm/sfp-machine_32.h +3 -0
@@ -50,6 +50,7 @@#define _FP_NANSIGN_Q 0#define _FP_KEEPNANFRACP 1 +#define _FP_QNANNEGATEDP 0/* If one NaN is signaling and the other is not, * we choose that one, otherwise we choose X.
@@ -209,4 +210,6 @@ extern struct task_struct *last_task_used_math;#define FP_TRAPPING_EXCEPTIONS ((last_task_used_math->thread.fsr >> 23) & 0x1f)#endif +#define _FP_TININESS_AFTER_ROUNDING 0 +#endif
arch/sparc/include/asm/sfp-machine_64.h +3 -0
@@ -48,6 +48,7 @@#define _FP_NANSIGN_Q 0#define _FP_KEEPNANFRACP 1 +#define _FP_QNANNEGATEDP 0/* If one NaN is signaling and the other is not, * we choose that one, otherwise we choose X.
@@ -90,4 +91,6 @@#define FP_TRAPPING_EXCEPTIONS ((current_thread_info()->xfsr[0] >> 23) & 0x1f) +#define _FP_TININESS_AFTER_ROUNDING 0 +#endif
arch/sparc/math-emu/math_32.c +84 -68
235 lines not on this page · raw message
arch/sparc/math-emu/math_64.c +85 -63
251 lines not on this page · raw message
Signature · 2 lines
Joseph S. Myers [email protected]
From: Joseph Myers <[email protected]>
Date: Thu, 2 Jul 2015 15:54:34 +0000
Quoted 5 lines
From: Joseph Myers <[email protected]>
This patch moves sparc from math-emu-old to math-emu, updating it for the API changes.
Quoted 8 lines
The following cleanup (that goes beyond mechanical conversion to new APIs) is included in this patch because of its close connection to the API changes:
* On SPARC, comparisons now use raw unpacking (this should not in fact change how the emulation behaves, just make it more efficient).
Signed-off-by Joseph Myers <[email protected]>