aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordavem <davem>2001-12-24 01:02:59 +0000
committerdavem <davem>2001-12-24 01:02:59 +0000
commit676c30ca2b915356b54279198b6004b08cbf8ba4 (patch)
tree6ba9f8eeb4c8469989f525aa63a76f7ef0dfb475
parent5b15431c54ce9a6d8c7bc733c5835fd4d62d3b11 (diff)
downloadnetdev-vger-cvs-676c30ca2b915356b54279198b6004b08cbf8ba4.tar.gz
Add multiple inclusion protection.
-rw-r--r--include/math-emu/double.h6
-rw-r--r--include/math-emu/extended.h6
-rw-r--r--include/math-emu/op-1.h5
-rw-r--r--include/math-emu/op-2.h4
-rw-r--r--include/math-emu/op-4.h4
-rw-r--r--include/math-emu/op-8.h4
-rw-r--r--include/math-emu/op-common.h4
-rw-r--r--include/math-emu/quad.h5
-rw-r--r--include/math-emu/single.h5
-rw-r--r--include/math-emu/soft-fp.h6
10 files changed, 46 insertions, 3 deletions
diff --git a/include/math-emu/double.h b/include/math-emu/double.h
index 04c4c0f45..655ccf1c4 100644
--- a/include/math-emu/double.h
+++ b/include/math-emu/double.h
@@ -22,6 +22,9 @@
not, write to the Free Software Foundation, Inc.,
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+#ifndef __MATH_EMU_DOUBLE_H__
+#define __MATH_EMU_DOUBLE_H__
+
#if _FP_W_TYPE_SIZE < 32
#error "Here's a nickel kid. Go buy yourself a real computer."
#endif
@@ -197,3 +200,6 @@ union _FP_UNION_D
#define _FP_FRAC_HIGH_RAW_D(X) _FP_FRAC_HIGH_1(X)
#endif /* W_TYPE_SIZE < 64 */
+
+
+#endif /* __MATH_EMU_DOUBLE_H__ */
diff --git a/include/math-emu/extended.h b/include/math-emu/extended.h
index ae73cecb3..84770fceb 100644
--- a/include/math-emu/extended.h
+++ b/include/math-emu/extended.h
@@ -19,6 +19,10 @@
not, write to the Free Software Foundation, Inc.,
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+
+#ifndef __MATH_EMU_EXTENDED_H__
+#define __MATH_EMU_EXTENDED_H__
+
#if _FP_W_TYPE_SIZE < 32
#error "Here's a nickel, kid. Go buy yourself a real computer."
#endif
@@ -388,3 +392,5 @@ union _FP_UNION_E
#define _FP_FRAC_HIGH_RAW_E(X) (X##_f0)
#endif /* not _FP_W_TYPE_SIZE < 64 */
+
+#endif /* __MATH_EMU_EXTENDED_H__ */
diff --git a/include/math-emu/op-1.h b/include/math-emu/op-1.h
index 53e0fce1b..38c0561b7 100644
--- a/include/math-emu/op-1.h
+++ b/include/math-emu/op-1.h
@@ -22,6 +22,9 @@
not, write to the Free Software Foundation, Inc.,
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+#ifndef __MATH_EMU_OP_1_H__
+#define __MATH_EMU_OP_1_H__
+
#define _FP_FRAC_DECL_1(X) _FP_W_TYPE X##_f
#define _FP_FRAC_COPY_1(D,S) (D##_f = S##_f)
#define _FP_FRAC_SET_1(X,I) (X##_f = I)
@@ -295,3 +298,5 @@
else \
D##_f <<= _FP_WFRACBITS_##dfs - _FP_WFRACBITS_##sfs; \
} while (0)
+
+#endif /* __MATH_EMU_OP_1_H__ */
diff --git a/include/math-emu/op-2.h b/include/math-emu/op-2.h
index e639d534e..81416782b 100644
--- a/include/math-emu/op-2.h
+++ b/include/math-emu/op-2.h
@@ -22,6 +22,9 @@
not, write to the Free Software Foundation, Inc.,
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+#ifndef __MATH_EMU_OP_2_H__
+#define __MATH_EMU_OP_2_H__
+
#define _FP_FRAC_DECL_2(X) _FP_W_TYPE X##_f0, X##_f1
#define _FP_FRAC_COPY_2(D,S) (D##_f0 = S##_f0, D##_f1 = S##_f1)
#define _FP_FRAC_SET_2(X,I) __FP_FRAC_SET_2(X, I)
@@ -606,3 +609,4 @@
_FP_FRAC_SLL_2(D, (_FP_WFRACBITS_##dfs - _FP_WFRACBITS_##sfs)); \
} while (0)
+#endif
diff --git a/include/math-emu/op-4.h b/include/math-emu/op-4.h
index f5235f5d9..2aa135632 100644
--- a/include/math-emu/op-4.h
+++ b/include/math-emu/op-4.h
@@ -22,6 +22,9 @@
not, write to the Free Software Foundation, Inc.,
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+#ifndef __MATH_EMU_OP_4_H__
+#define __MATH_EMU_OP_4_H__
+
#define _FP_FRAC_DECL_4(X) _FP_W_TYPE X##_f[4]
#define _FP_FRAC_COPY_4(D,S) \
(D##_f[0] = S##_f[0], D##_f[1] = S##_f[1], \
@@ -659,3 +662,4 @@
_FP_FRAC_SLL_4(D, (_FP_WFRACBITS_##dfs - _FP_WFRACBITS_##sfs)); \
} while (0)
+#endif
diff --git a/include/math-emu/op-8.h b/include/math-emu/op-8.h
index a9d7dbf59..8b8c05eb8 100644
--- a/include/math-emu/op-8.h
+++ b/include/math-emu/op-8.h
@@ -21,6 +21,9 @@
not, write to the Free Software Foundation, Inc.,
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+#ifndef __MATH_EMU_OP_8_H__
+#define __MATH_EMU_OP_8_H__
+
/* We need just a few things from here for op-4, if we ever need some
other macros, they can be added. */
#define _FP_FRAC_DECL_8(X) _FP_W_TYPE X##_f[8]
@@ -101,3 +104,4 @@
X##_f[0] |= (_s != 0); \
} while (0)
+#endif
diff --git a/include/math-emu/op-common.h b/include/math-emu/op-common.h
index e03e40e65..dd37d4494 100644
--- a/include/math-emu/op-common.h
+++ b/include/math-emu/op-common.h
@@ -21,6 +21,9 @@
not, write to the Free Software Foundation, Inc.,
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+#ifndef __MATH_EMU_OP_COMMON_H__
+#define __MATH_EMU_OP_COMMON_H__
+
#define _FP_DECL(wc, X) \
_FP_I_TYPE X##_c, X##_s, X##_e; \
_FP_FRAC_DECL_##wc(X)
@@ -846,3 +849,4 @@ do { \
q = n / d, r = n % d; \
} while (0)
+#endif /* __MATH_EMU_OP_COMMON_H__ */
diff --git a/include/math-emu/quad.h b/include/math-emu/quad.h
index 23b20c3e6..616113626 100644
--- a/include/math-emu/quad.h
+++ b/include/math-emu/quad.h
@@ -22,6 +22,9 @@
not, write to the Free Software Foundation, Inc.,
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+#ifndef __MATH_EMU_QUAD_H__
+#define __MATH_EMU_QUAD_H__
+
#if _FP_W_TYPE_SIZE < 32
#error "Here's a nickel, kid. Go buy yourself a real computer."
#endif
@@ -201,3 +204,5 @@ union _FP_UNION_Q
#define _FP_FRAC_HIGH_RAW_Q(X) _FP_FRAC_HIGH_2(X)
#endif /* not _FP_W_TYPE_SIZE < 64 */
+
+#endif /* __MATH_EMU_QUAD_H__ */
diff --git a/include/math-emu/single.h b/include/math-emu/single.h
index ea12cb8b0..87f90b0f9 100644
--- a/include/math-emu/single.h
+++ b/include/math-emu/single.h
@@ -22,6 +22,9 @@
not, write to the Free Software Foundation, Inc.,
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+#ifndef __MATH_EMU_SINGLE_H__
+#define __MATH_EMU_SINGLE_H__
+
#if _FP_W_TYPE_SIZE < 32
#error "Here's a nickel kid. Go buy yourself a real computer."
#endif
@@ -109,3 +112,5 @@ union _FP_UNION_S
#define _FP_FRAC_HIGH_S(X) _FP_FRAC_HIGH_1(X)
#define _FP_FRAC_HIGH_RAW_S(X) _FP_FRAC_HIGH_1(X)
+
+#endif /* __MATH_EMU_SINGLE_H__ */
diff --git a/include/math-emu/soft-fp.h b/include/math-emu/soft-fp.h
index 1d1345134..ca977531a 100644
--- a/include/math-emu/soft-fp.h
+++ b/include/math-emu/soft-fp.h
@@ -21,8 +21,8 @@
not, write to the Free Software Foundation, Inc.,
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
-#ifndef SOFT_FP_H
-#define SOFT_FP_H
+#ifndef __MATH_EMU_SOFT_FP_H__
+#define __MATH_EMU_SOFT_FP_H__
#include <asm/sfp-machine.h>
@@ -178,4 +178,4 @@ typedef USItype UHWtype;
#include <stdlib/longlong.h>
#endif
-#endif
+#endif /* __MATH_EMU_SOFT_FP_H__ */