From: Adrian Bunk <bunk@stusta.de>
To: linux-kernel@vger.kernel.org
Subject: [2.6 patch] i386/math-emu/: misc cleanups
Date: Sun, 16 Jan 2005 09:07:35 +0100 [thread overview]
Message-ID: <20050116080735.GG4274@stusta.de> (raw)
The patch below contains the following cleanups:
- make needlessly global code static
- #if 0 unused code
diffstat output:
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(-)
Signed-off-by: Adrian Bunk <bunk@stusta.de>
--- linux-2.6.11-rc1-mm1-full/arch/i386/math-emu/fpu_proto.h.old 2005-01-16 05:43:39.000000000 +0100
+++ linux-2.6.11-rc1-mm1-full/arch/i386/math-emu/fpu_proto.h 2005-01-16 05:44:22.000000000 +0100
@@ -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);
--- linux-2.6.11-rc1-mm1-full/arch/i386/math-emu/errors.c.old 2005-01-16 05:43:53.000000000 +0100
+++ linux-2.6.11-rc1-mm1-full/arch/i386/math-emu/errors.c 2005-01-16 05:44:07.000000000 +0100
@@ -34,6 +34,7 @@
/* */
+#if 0
void Un_impl(void)
{
u_char byte1, FPU_modrm;
@@ -69,6 +70,7 @@
EXCEPTION(EX_Invalid);
}
+#endif /* 0 */
/*
--- linux-2.6.11-rc1-mm1-full/arch/i386/math-emu/fpu_aux.c.old 2005-01-16 05:44:30.000000000 +0100
+++ linux-2.6.11-rc1-mm1-full/arch/i386/math-emu/fpu_aux.c 2005-01-16 05:44:35.000000000 +0100
@@ -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|
--- linux-2.6.11-rc1-mm1-full/arch/i386/math-emu/load_store.c.old 2005-01-16 05:44:50.000000000 +0100
+++ linux-2.6.11-rc1-mm1-full/arch/i386/math-emu/load_store.c 2005-01-16 05:45:08.000000000 +0100
@@ -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,
--- linux-2.6.11-rc1-mm1-full/arch/i386/math-emu/reg_constant.h.old 2005-01-16 05:45:27.000000000 +0100
+++ linux-2.6.11-rc1-mm1-full/arch/i386/math-emu/reg_constant.h 2005-01-16 05:47:03.000000000 +0100
@@ -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;
--- linux-2.6.11-rc1-mm1-full/arch/i386/math-emu/reg_constant.c.old 2005-01-16 05:45:41.000000000 +0100
+++ linux-2.6.11-rc1-mm1-full/arch/i386/math-emu/reg_constant.c 2005-01-16 05:47:20.000000000 +0100
@@ -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,
next reply other threads:[~2005-01-16 8:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-16 8:07 Adrian Bunk [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-01-31 23:42 [2.6 patch] i386/math-emu/: misc cleanups Adrian Bunk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050116080735.GG4274@stusta.de \
--to=bunk@stusta.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.