summaryrefslogtreecommitdiffstats
path: root/sys/gnu/i386
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1995-12-14 09:55:16 +0000
committerphk <phk@FreeBSD.org>1995-12-14 09:55:16 +0000
commit9cb413a93c0c68c45292e4086ffc7cc2f6d36d3e (patch)
tree9887f4bf5939f3591e9b3a4f6e1865f9a1f810d8 /sys/gnu/i386
parent63ec2c0ae9b44c5394bae5d6ee7fea5be9659585 (diff)
downloadFreeBSD-src-9cb413a93c0c68c45292e4086ffc7cc2f6d36d3e.zip
FreeBSD-src-9cb413a93c0c68c45292e4086ffc7cc2f6d36d3e.tar.gz
Another mega commit to staticize things.
Diffstat (limited to 'sys/gnu/i386')
-rw-r--r--sys/gnu/i386/fpemul/fpu_aux.c7
-rw-r--r--sys/gnu/i386/fpemul/fpu_proto.h4
-rw-r--r--sys/gnu/i386/fpemul/poly_atan.c5
-rw-r--r--sys/gnu/i386/fpemul/reg_constant.c10
4 files changed, 10 insertions, 16 deletions
diff --git a/sys/gnu/i386/fpemul/fpu_aux.c b/sys/gnu/i386/fpemul/fpu_aux.c
index 629e45a..ce64a08 100644
--- a/sys/gnu/i386/fpemul/fpu_aux.c
+++ b/sys/gnu/i386/fpemul/fpu_aux.c
@@ -56,7 +56,7 @@
* W. Metzenthen June 1994.
*
*
- * $Id: fpu_aux.c,v 1.2 1994/04/29 21:16:19 gclarkii Exp $
+ * $Id: fpu_aux.c,v 1.3 1994/06/10 07:44:17 rich Exp $
*
*/
@@ -72,8 +72,7 @@
#include "status_w.h"
-
-void
+static void
fclex(void)
{
status_word &= ~(SW_Backward | SW_Summary | SW_Stack_Fault | SW_Precision |
@@ -135,7 +134,7 @@ fnop(void)
{
}
-FUNC fp_nop_table[] = {
+static FUNC fp_nop_table[] = {
fnop, Un_impl, Un_impl, Un_impl, Un_impl, Un_impl, Un_impl, Un_impl
};
diff --git a/sys/gnu/i386/fpemul/fpu_proto.h b/sys/gnu/i386/fpemul/fpu_proto.h
index c15c913..a6e9c02 100644
--- a/sys/gnu/i386/fpemul/fpu_proto.h
+++ b/sys/gnu/i386/fpemul/fpu_proto.h
@@ -1,6 +1,6 @@
/*
*
- * $Id: fpu_proto.h,v 1.2 1994/04/29 21:16:23 gclarkii Exp $
+ * $Id: fpu_proto.h,v 1.3 1995/03/16 18:11:11 bde Exp $
*
*/
@@ -41,7 +41,6 @@ extern void fsubp_(void);
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);
@@ -70,7 +69,6 @@ extern void load_store_instr(char type);
extern int poly_2xm1(FPU_REG * arg, FPU_REG * result);
/* poly_atan.c */
extern void poly_atan(FPU_REG * arg);
-extern void poly_add_1(FPU_REG * src);
/* poly_l2.c */
extern void poly_l2(FPU_REG * arg, FPU_REG * result);
extern int poly_l2p1(FPU_REG * arg, FPU_REG * result);
diff --git a/sys/gnu/i386/fpemul/poly_atan.c b/sys/gnu/i386/fpemul/poly_atan.c
index 179049f..4c16c88 100644
--- a/sys/gnu/i386/fpemul/poly_atan.c
+++ b/sys/gnu/i386/fpemul/poly_atan.c
@@ -56,7 +56,7 @@
* W. Metzenthen June 1994.
*
*
- * $Id: poly_atan.c,v 1.3 1994/04/29 21:23:26 gclarkii Exp $
+ * $Id: poly_atan.c,v 1.4 1994/06/10 07:44:34 rich Exp $
*
*/
@@ -92,6 +92,7 @@ static unsigned denomterm[2] =
{0xfc4bd208, 0xea2e6612};
+static void poly_add_1(FPU_REG * src);
/*--- poly_atan() -----------------------------------------------------------+
| |
@@ -227,7 +228,7 @@ poly_atan(FPU_REG * arg)
i.e. have an exponent (not checked) of EXP_BIAS-1 but need not
be normalized.
This function adds 1.0 to the (assumed positive) argument. */
-void
+static void
poly_add_1(FPU_REG * src)
{
/* Rounding in a consistent direction produces better results
diff --git a/sys/gnu/i386/fpemul/reg_constant.c b/sys/gnu/i386/fpemul/reg_constant.c
index f334273..e617b36 100644
--- a/sys/gnu/i386/fpemul/reg_constant.c
+++ b/sys/gnu/i386/fpemul/reg_constant.c
@@ -76,13 +76,9 @@
FPU_REG CONST_1 = {SIGN_POS, TW_Valid, EXP_BIAS,
0x00000000, 0x80000000};
-FPU_REG CONST_2 = {SIGN_POS, TW_Valid, EXP_BIAS + 1,
-0x00000000, 0x80000000};
-FPU_REG CONST_HALF = {SIGN_POS, TW_Valid, EXP_BIAS - 1,
-0x00000000, 0x80000000};
-FPU_REG CONST_L2T = {SIGN_POS, TW_Valid, EXP_BIAS + 1,
+static FPU_REG CONST_L2T = {SIGN_POS, TW_Valid, EXP_BIAS + 1,
0xcd1b8afe, 0xd49a784b};
-FPU_REG CONST_L2E = {SIGN_POS, TW_Valid, EXP_BIAS,
+static FPU_REG CONST_L2E = {SIGN_POS, TW_Valid, EXP_BIAS,
0x5c17f0bc, 0xb8aa3b29};
FPU_REG CONST_PI = {SIGN_POS, TW_Valid, EXP_BIAS + 1,
0x2168c235, 0xc90fdaa2};
@@ -90,7 +86,7 @@ FPU_REG CONST_PI2 = {SIGN_POS, TW_Valid, EXP_BIAS,
0x2168c235, 0xc90fdaa2};
FPU_REG CONST_PI4 = {SIGN_POS, TW_Valid, EXP_BIAS - 1,
0x2168c235, 0xc90fdaa2};
-FPU_REG CONST_LG2 = {SIGN_POS, TW_Valid, EXP_BIAS - 2,
+static FPU_REG CONST_LG2 = {SIGN_POS, TW_Valid, EXP_BIAS - 2,
0xfbcff799, 0x9a209a84};
FPU_REG CONST_LN2 = {SIGN_POS, TW_Valid, EXP_BIAS - 1,
0xd1cf79ac, 0xb17217f7};
OpenPOWER on IntegriCloud