i386/math-emu/: misc cleanups
PATCH 1/1 i386/math-emu/: misc cleanups
This patch contains the following cleanups:
- make needlessly global code static
- #if 0 unused code
Signed-off-by Adrian Bunk <[email protected]>
---
arch/i386/math-emu/errors.c | 2 ++ arch/i386/math-emu/fpu_aux.c | 2 +- arch/i386/math-emu/fpu_proto.h | 2 -- arch/i386/math-emu/load_store.c | 2 +- arch/i386/math-emu/reg_constant.c | 10 ++++++---- arch/i386/math-emu/reg_constant.h | 6 ------ 6 files changed, 10 insertions(+), 14 deletions(-)
This patch was already sent on:
- 16 Jan 2005
arch/i386/math-emu/fpu_proto.h renamed from arch/i386/math-emu/fpu_proto.h.old +0 -2
@@ -2,7 +2,6 @@#define _FPU_PROTO_H/* errors.c */ -extern void Un_impl (void );extern void FPU_illegal (void );extern void FPU_printall (void ); asmlinkage void FPU_exception(int n);
@@ -41,7 +40,6 @@extern void fdivrp (void );extern void fdivp_ (void );/* fpu_aux.c */ -extern void fclex (void );extern void finit (void );extern void finit_ (void );extern void fstsw_ (void );
arch/i386/math-emu/errors.c renamed from arch/i386/math-emu/errors.c.old +2 -0
@@ -34,6 +34,7 @@/* */ +#if 0 void Un_impl (void ) {u_char byte1, FPU_modrm;
@@ -69,6 +70,7 @@ EXCEPTION(EX_Invalid); } +#endif /* 0 */ /*
arch/i386/math-emu/fpu_aux.c renamed from arch/i386/math-emu/fpu_aux.c.old +1 -1
@@ -21,7 +21,7 @@ { } -void fclex (void ) +static void fclex (void ) { partial_status &= ~(SW_Backward|SW_Summary|SW_Stack_Fault|SW_Precision| SW_Underflow|SW_Overflow|SW_Zero_Div|SW_Denorm_Op|
arch/i386/math-emu/load_store.c renamed from arch/i386/math-emu/load_store.c.old +1 -1
@@ -53,7 +53,7 @@14 ,0 ,94 ,10 ,2 ,10 ,2 ,8 }; -u_char const data_sizes_32[32 ] = { +static u_char const data_sizes_32[32 ] = {4 ,4 ,8 ,2 ,0 ,0 ,0 ,0 ,4 ,4 ,8 ,2 ,4 ,4 ,8 ,2 , 28, 0,108, 10, 2, 10, 0, 8,
arch/i386/math-emu/reg_constant.h renamed from arch/i386/math-emu/reg_constant.h.old +0 -6
@@ -12,16 +12,10 @@#include "fpu_emu.h" extern FPU_REG const CONST_1 ; -extern FPU_REG const CONST_2 ; -extern FPU_REG const CONST_HALF ; -extern FPU_REG const CONST_L2T ; -extern FPU_REG const CONST_L2E ;extern FPU_REG const CONST_PI ;extern FPU_REG const CONST_PI2 ;extern FPU_REG const CONST_PI2extra;extern FPU_REG const CONST_PI4 ; -extern FPU_REG const CONST_LG2 ; -extern FPU_REG const CONST_LN2 ;extern FPU_REG const CONST_Z ;extern FPU_REG const CONST_PINF ;extern FPU_REG const CONST_INF ;
arch/i386/math-emu/reg_constant.c renamed from arch/i386/math-emu/reg_constant.c.old +6 -4
@@ -21,15 +21,17 @@ ((EXTENDED_Ebias+(e)) | ((SIGN_##s != 0)*0x8000)) }FPU_REG const CONST_1 =MAKE_REG (POS ,0 ,0x00000000 ,0x80000000 ); +#if 0 FPU_REG const CONST_2 =MAKE_REG (POS ,1 ,0x00000000 ,0x80000000 );FPU_REG const CONST_HALF =MAKE_REG (POS ,-1 ,0x00000000 ,0x80000000 ); -FPU_REG const CONST_L2T =MAKE_REG (POS ,1 ,0xcd1b8afe ,0xd49a784b ); -FPU_REG const CONST_L2E =MAKE_REG (POS ,0 ,0x5c17f0bc ,0xb8aa3b29 ); +#endif /* 0 */ +static FPU_REG const CONST_L2T =MAKE_REG (POS ,1 ,0xcd1b8afe ,0xd49a784b ); +static FPU_REG const CONST_L2E =MAKE_REG (POS ,0 ,0x5c17f0bc ,0xb8aa3b29 );FPU_REG const CONST_PI =MAKE_REG (POS ,1 ,0x2168c235 ,0xc90fdaa2 );FPU_REG const CONST_PI2 =MAKE_REG (POS ,0 ,0x2168c235 ,0xc90fdaa2 );FPU_REG const CONST_PI4 =MAKE_REG (POS ,-1 ,0x2168c235 ,0xc90fdaa2 ); -FPU_REG const CONST_LG2 =MAKE_REG (POS ,-2 ,0xfbcff799 ,0x9a209a84 ); -FPU_REG const CONST_LN2 =MAKE_REG (POS ,-1 ,0xd1cf79ac ,0xb17217f7 ); +static FPU_REG const CONST_LG2 =MAKE_REG (POS ,-2 ,0xfbcff799 ,0x9a209a84 ); +static FPU_REG const CONST_LN2 =MAKE_REG (POS ,-1 ,0xd1cf79ac ,0xb17217f7 );/* Extra bits to take pi/2 to more than 128 bits precision. */ FPU_REG const CONST_PI2extra = MAKE_REG(NEG, -66,