diff options
author | Harald Koerfgen <hkoerfg@web.de> | 2001-01-13 16:15:24 +0000 |
---|---|---|
committer | Harald Koerfgen <hkoerfg@web.de> | 2001-01-13 16:15:24 +0000 |
commit | eaa46cff6b2fcc3fff83b35d296dd337f1f98fea (patch) | |
tree | f1ceb3fa37c824724b49ec8a26b8ff02ee39c3ab /arch/mips | |
parent | 08a66f4cc016bc023bafb606b4057d18a91ad859 (diff) |
o Kernel sources shouldn't include standard headers
(me, backport from linux-vr)
o Fix typos in sp_flong.c and sp_fint.c
(Hiroshi Kawashima, backport from linux-vr)
Diffstat (limited to 'arch/mips')
37 files changed, 8 insertions, 263 deletions
diff --git a/arch/mips/math-emu/dp_add.c b/arch/mips/math-emu/dp_add.c index 0c6ad8b24..5a3158bbb 100644 --- a/arch/mips/math-emu/dp_add.c +++ b/arch/mips/math-emu/dp_add.c @@ -26,13 +26,6 @@ */ -#include <limits.h> -#ifdef __KERNEL__ -#define assert(expr) ((void)0) -#else -#include <assert.h> -#endif -#include <stdarg.h> #include "ieee754dp.h" ieee754dp ieee754dp_add(ieee754dp x, ieee754dp y) diff --git a/arch/mips/math-emu/dp_cmp.c b/arch/mips/math-emu/dp_cmp.c index 83cbda357..34ec4a856 100644 --- a/arch/mips/math-emu/dp_cmp.c +++ b/arch/mips/math-emu/dp_cmp.c @@ -25,13 +25,6 @@ */ -#include <limits.h> -#ifdef __KERNEL__ -#define assert(expr) ((void)0) -#else -#include <assert.h> -#endif -#include <stdarg.h> #include "ieee754dp.h" int ieee754dp_cmp(ieee754dp x, ieee754dp y, int cmp) diff --git a/arch/mips/math-emu/dp_div.c b/arch/mips/math-emu/dp_div.c index 86d4ca1d7..fea2a0c13 100644 --- a/arch/mips/math-emu/dp_div.c +++ b/arch/mips/math-emu/dp_div.c @@ -25,13 +25,6 @@ */ -#include <limits.h> -#ifdef __KERNEL__ -#define assert(expr) ((void)0) -#else -#include <assert.h> -#endif -#include <stdarg.h> #include "ieee754dp.h" ieee754dp ieee754dp_div(ieee754dp x, ieee754dp y) diff --git a/arch/mips/math-emu/dp_fint.c b/arch/mips/math-emu/dp_fint.c index e393d1f37..6f7e8611b 100644 --- a/arch/mips/math-emu/dp_fint.c +++ b/arch/mips/math-emu/dp_fint.c @@ -25,13 +25,6 @@ */ -#include <limits.h> -#ifdef __KERNEL__ -#define assert(expr) ((void)0) -#else -#include <assert.h> -#endif -#include <stdarg.h> #include "ieee754dp.h" ieee754dp ieee754dp_fint(int x) diff --git a/arch/mips/math-emu/dp_flong.c b/arch/mips/math-emu/dp_flong.c index dc0ae5e77..7abf5ee30 100644 --- a/arch/mips/math-emu/dp_flong.c +++ b/arch/mips/math-emu/dp_flong.c @@ -25,13 +25,6 @@ */ -#include <limits.h> -#ifdef __KERNEL__ -#define assert(expr) ((void)0) -#else -#include <assert.h> -#endif -#include <stdarg.h> #include "ieee754dp.h" ieee754dp ieee754dp_flong(long long x) diff --git a/arch/mips/math-emu/dp_frexp.c b/arch/mips/math-emu/dp_frexp.c index 6139e3668..db2ef8543 100644 --- a/arch/mips/math-emu/dp_frexp.c +++ b/arch/mips/math-emu/dp_frexp.c @@ -25,13 +25,6 @@ */ -#include <limits.h> -#ifdef __KERNEL__ -#define assert(expr) ((void)0) -#else -#include <assert.h> -#endif -#include <stdarg.h> #include "ieee754dp.h" /* close to ieeep754dp_logb diff --git a/arch/mips/math-emu/dp_fsp.c b/arch/mips/math-emu/dp_fsp.c index 0a03458bb..7749e11d4 100644 --- a/arch/mips/math-emu/dp_fsp.c +++ b/arch/mips/math-emu/dp_fsp.c @@ -25,13 +25,6 @@ */ -#include <limits.h> -#ifdef __KERNEL__ -#define assert(expr) ((void)0) -#else -#include <assert.h> -#endif -#include <stdarg.h> #include "ieee754dp.h" ieee754dp ieee754dp_fsp(ieee754sp x) diff --git a/arch/mips/math-emu/dp_logb.c b/arch/mips/math-emu/dp_logb.c index cd0ad950a..22aeb2115 100644 --- a/arch/mips/math-emu/dp_logb.c +++ b/arch/mips/math-emu/dp_logb.c @@ -25,13 +25,6 @@ */ -#include <limits.h> -#ifdef __KERNEL__ -#define assert(expr) ((void)0) -#else -#include <assert.h> -#endif -#include <stdarg.h> #include "ieee754dp.h" ieee754dp ieee754dp_logb(ieee754dp x) diff --git a/arch/mips/math-emu/dp_modf.c b/arch/mips/math-emu/dp_modf.c index 74afa85c5..6bf0f2f14 100644 --- a/arch/mips/math-emu/dp_modf.c +++ b/arch/mips/math-emu/dp_modf.c @@ -25,13 +25,6 @@ */ -#include <limits.h> -#ifdef __KERNEL__ -#define assert(expr) ((void)0) -#else -#include <assert.h> -#endif -#include <stdarg.h> #include "ieee754dp.h" /* modf function is always exact for a finite number diff --git a/arch/mips/math-emu/dp_mul.c b/arch/mips/math-emu/dp_mul.c index 70be81b10..9ec5d4060 100644 --- a/arch/mips/math-emu/dp_mul.c +++ b/arch/mips/math-emu/dp_mul.c @@ -25,13 +25,6 @@ */ -#include <limits.h> -#ifdef __KERNEL__ -#define assert(expr) ((void)0) -#else -#include <assert.h> -#endif -#include <stdarg.h> #include "ieee754dp.h" ieee754dp ieee754dp_mul(ieee754dp x, ieee754dp y) diff --git a/arch/mips/math-emu/dp_scalb.c b/arch/mips/math-emu/dp_scalb.c index 210f6d501..bb0146183 100644 --- a/arch/mips/math-emu/dp_scalb.c +++ b/arch/mips/math-emu/dp_scalb.c @@ -25,13 +25,6 @@ */ -#include <limits.h> -#ifdef __KERNEL__ -#define assert(expr) ((void)0) -#else -#include <assert.h> -#endif -#include <stdarg.h> #include "ieee754dp.h" ieee754dp ieee754dp_scalb(ieee754dp x, int n) diff --git a/arch/mips/math-emu/dp_simple.c b/arch/mips/math-emu/dp_simple.c index f13845007..f57eee221 100644 --- a/arch/mips/math-emu/dp_simple.c +++ b/arch/mips/math-emu/dp_simple.c @@ -25,13 +25,6 @@ */ -#include <limits.h> -#ifdef __KERNEL__ -#define assert(expr) ((void)0) -#else -#include <assert.h> -#endif -#include <stdarg.h> #include "ieee754dp.h" int ieee754dp_finite(ieee754dp x) diff --git a/arch/mips/math-emu/dp_sqrt.c b/arch/mips/math-emu/dp_sqrt.c index bd8f9c8ba..1f9fa9cb8 100644 --- a/arch/mips/math-emu/dp_sqrt.c +++ b/arch/mips/math-emu/dp_sqrt.c @@ -25,13 +25,6 @@ */ -#include <limits.h> -#ifdef __KERNEL__ -#define assert(expr) ((void)0) -#else -#include <assert.h> -#endif -#include <stdarg.h> #include "ieee754dp.h" static const struct ieee754dp_konst knan = { diff --git a/arch/mips/math-emu/dp_sub.c b/arch/mips/math-emu/dp_sub.c index f98761ef3..198e56098 100644 --- a/arch/mips/math-emu/dp_sub.c +++ b/arch/mips/math-emu/dp_sub.c @@ -25,13 +25,6 @@ */ -#include <limits.h> -#ifdef __KERNEL__ -#define assert(expr) ((void)0) -#else -#include <assert.h> -#endif -#include <stdarg.h> #include "ieee754dp.h" ieee754dp ieee754dp_sub(ieee754dp x, ieee754dp y) diff --git a/arch/mips/math-emu/dp_tint.c b/arch/mips/math-emu/dp_tint.c index 6ce86a33c..c8a151b26 100644 --- a/arch/mips/math-emu/dp_tint.c +++ b/arch/mips/math-emu/dp_tint.c @@ -25,13 +25,7 @@ */ -#include <limits.h> -#ifdef __KERNEL__ -#define assert(expr) ((void)0) -#else -#include <assert.h> -#endif -#include <stdarg.h> +#include <linux/kernel.h> #include "ieee754dp.h" int ieee754dp_tint(ieee754dp x) diff --git a/arch/mips/math-emu/dp_tlong.c b/arch/mips/math-emu/dp_tlong.c index f941c4dd4..cc8cf0ff9 100644 --- a/arch/mips/math-emu/dp_tlong.c +++ b/arch/mips/math-emu/dp_tlong.c @@ -25,13 +25,6 @@ */ -#include <limits.h> -#ifdef __KERNEL__ -#define assert(expr) ((void)0) -#else -#include <assert.h> -#endif -#include <stdarg.h> #include "ieee754dp.h" long long ieee754dp_tlong(ieee754dp x) diff --git a/arch/mips/math-emu/ieee754.c b/arch/mips/math-emu/ieee754.c index d9d75e40a..5e86e40c6 100644 --- a/arch/mips/math-emu/ieee754.c +++ b/arch/mips/math-emu/ieee754.c @@ -30,13 +30,6 @@ */ -#include <limits.h> -#ifdef __KERNEL__ -#define assert(expr) ((void)0) -#else -#include <assert.h> -#include <varargs.h> -#endif #include "ieee754int.h" #define DP_EBIAS 1023 diff --git a/arch/mips/math-emu/ieee754dp.c b/arch/mips/math-emu/ieee754dp.c index 58790d072..0943d56ec 100644 --- a/arch/mips/math-emu/ieee754dp.c +++ b/arch/mips/math-emu/ieee754dp.c @@ -25,13 +25,6 @@ */ -#include <limits.h> -#ifdef __KERNEL__ -#define assert(expr) ((void)0) -#else -#include <assert.h> -#endif -#include <stdarg.h> #include "ieee754dp.h" int ieee754dp_class(ieee754dp x) diff --git a/arch/mips/math-emu/ieee754dp.h b/arch/mips/math-emu/ieee754dp.h index da7b4c568..8ab3e0148 100644 --- a/arch/mips/math-emu/ieee754dp.h +++ b/arch/mips/math-emu/ieee754dp.h @@ -28,6 +28,8 @@ #include "ieee754int.h" +#define assert(expr) ((void)0) + /* 3bit extended double precision sticky right shift */ #define XDPSRS(v,rs) \ ((rs > (DP_MBITS+3))?1:((v) >> (rs)) | ((v) << (64-(rs)) != 0)) diff --git a/arch/mips/math-emu/ieee754sp.c b/arch/mips/math-emu/ieee754sp.c index 691a0ec87..511ec8de5 100644 --- a/arch/mips/math-emu/ieee754sp.c +++ b/arch/mips/math-emu/ieee754sp.c @@ -25,14 +25,6 @@ */ -#include <limits.h> -#ifdef __KERNEL__ -#define assert(expr) ((void)0) -#else -#include <assert.h> -#endif -#include <stdarg.h> - #include "ieee754sp.h" int ieee754sp_class(ieee754sp x) diff --git a/arch/mips/math-emu/ieee754sp.h b/arch/mips/math-emu/ieee754sp.h index 2ff769dcf..b41b2a830 100644 --- a/arch/mips/math-emu/ieee754sp.h +++ b/arch/mips/math-emu/ieee754sp.h @@ -28,6 +28,8 @@ #include "ieee754int.h" +#define assert(expr) ((void)0) + /* 3bit extended single precision sticky right shift */ #define SPXSRSXn(rs) \ (xe += rs, \ diff --git a/arch/mips/math-emu/sp_add.c b/arch/mips/math-emu/sp_add.c index bdcbda8e9..61a050bf0 100644 --- a/arch/mips/math-emu/sp_add.c +++ b/arch/mips/math-emu/sp_add.c @@ -25,14 +25,6 @@ */ -#include <limits.h> -#ifdef __KERNEL__ -#define assert(expr) ((void)0) -#else -#include <assert.h> -#endif -#include <stdarg.h> - #include "ieee754sp.h" ieee754sp ieee754sp_add(ieee754sp x, ieee754sp y) diff --git a/arch/mips/math-emu/sp_cmp.c b/arch/mips/math-emu/sp_cmp.c index ae7c8247e..d8abc9c68 100644 --- a/arch/mips/math-emu/sp_cmp.c +++ b/arch/mips/math-emu/sp_cmp.c @@ -25,14 +25,6 @@ */ -#include <limits.h> -#ifdef __KERNEL__ -#define assert(expr) ((void)0) -#else -#include <assert.h> -#endif -#include <stdarg.h> - #include "ieee754sp.h" int ieee754sp_cmp(ieee754sp x, ieee754sp y, int cmp) diff --git a/arch/mips/math-emu/sp_div.c b/arch/mips/math-emu/sp_div.c index 187f14fd3..14a87a550 100644 --- a/arch/mips/math-emu/sp_div.c +++ b/arch/mips/math-emu/sp_div.c @@ -25,14 +25,6 @@ */ -#include <limits.h> -#ifdef __KERNEL__ -#define assert(expr) ((void)0) -#else -#include <assert.h> -#endif -#include <stdarg.h> - #include "ieee754sp.h" ieee754sp ieee754sp_div(ieee754sp x, ieee754sp y) diff --git a/arch/mips/math-emu/sp_fdp.c b/arch/mips/math-emu/sp_fdp.c index e24f3cee7..a7ce2f0e0 100644 --- a/arch/mips/math-emu/sp_fdp.c +++ b/arch/mips/math-emu/sp_fdp.c @@ -25,14 +25,6 @@ */ -#include <limits.h> -#ifdef __KERNEL__ -#define assert(expr) ((void)0) -#else -#include <assert.h> -#endif -#include <stdarg.h> - #include "ieee754sp.h" ieee754sp ieee754sp_fdp(ieee754dp x) diff --git a/arch/mips/math-emu/sp_fint.c b/arch/mips/math-emu/sp_fint.c index d5dc5afb3..747fd8673 100644 --- a/arch/mips/math-emu/sp_fint.c +++ b/arch/mips/math-emu/sp_fint.c @@ -25,14 +25,6 @@ */ -#include <limits.h> -#ifdef __KERNEL__ -#define assert(expr) ((void)0) -#else -#include <assert.h> -#endif -#include <stdarg.h> - #include "ieee754sp.h" ieee754sp ieee754sp_fint(int x) @@ -43,7 +35,7 @@ ieee754sp ieee754sp_fint(int x) if (x == 0) return ieee754sp_zero(0); - if (x == 1 | x == -1) + if (x == 1 || x == -1) return ieee754sp_one(x < 0); if (x == 10 || x == -10) return ieee754sp_ten(x < 0); diff --git a/arch/mips/math-emu/sp_flong.c b/arch/mips/math-emu/sp_flong.c index 7b3b7c4df..ea1ea25e7 100644 --- a/arch/mips/math-emu/sp_flong.c +++ b/arch/mips/math-emu/sp_flong.c @@ -25,14 +25,6 @@ */ -#include <limits.h> -#ifdef __KERNEL__ -#define assert(expr) ((void)0) -#else -#include <assert.h> -#endif -#include <stdarg.h> - #include "ieee754sp.h" ieee754sp ieee754sp_flong(long long x) @@ -43,7 +35,7 @@ ieee754sp ieee754sp_flong(long long x) if (x == 0) return ieee754sp_zero(0); - if (x == 1 | x == -1) + if (x == 1 || x == -1) return ieee754sp_one(x < 0); if (x == 10 || x == -10) return ieee754sp_ten(x < 0); diff --git a/arch/mips/math-emu/sp_frexp.c b/arch/mips/math-emu/sp_frexp.c index cf8af4a50..968fe30cf 100644 --- a/arch/mips/math-emu/sp_frexp.c +++ b/arch/mips/math-emu/sp_frexp.c @@ -25,14 +25,6 @@ */ -#include <limits.h> -#ifdef __KERNEL__ -#define assert(expr) ((void)0) -#else -#include <assert.h> -#endif -#include <stdarg.h> - #include "ieee754sp.h" /* close to ieeep754sp_logb diff --git a/arch/mips/math-emu/sp_logb.c b/arch/mips/math-emu/sp_logb.c index 6d9f5cc42..453f966dd 100644 --- a/arch/mips/math-emu/sp_logb.c +++ b/arch/mips/math-emu/sp_logb.c @@ -25,14 +25,6 @@ */ -#include <limits.h> -#ifdef __KERNEL__ -#define assert(expr) ((void)0) -#else -#include <assert.h> -#endif -#include <stdarg.h> - #include "ieee754sp.h" ieee754sp ieee754sp_logb(ieee754sp x) diff --git a/arch/mips/math-emu/sp_modf.c b/arch/mips/math-emu/sp_modf.c index 8129c8a65..69d692148 100644 --- a/arch/mips/math-emu/sp_modf.c +++ b/arch/mips/math-emu/sp_modf.c @@ -25,14 +25,6 @@ */ -#include <limits.h> -#ifdef __KERNEL__ -#define assert(expr) ((void)0) -#else -#include <assert.h> -#endif -#include <stdarg.h> - #include "ieee754sp.h" /* modf function is always exact for a finite number diff --git a/arch/mips/math-emu/sp_mul.c b/arch/mips/math-emu/sp_mul.c index cfff13150..cecf18fd6 100644 --- a/arch/mips/math-emu/sp_mul.c +++ b/arch/mips/math-emu/sp_mul.c @@ -25,14 +25,6 @@ */ -#include <limits.h> -#ifdef __KERNEL__ -#define assert(expr) ((void)0) -#else -#include <assert.h> -#endif -#include <stdarg.h> - #include "ieee754sp.h" ieee754sp ieee754sp_mul(ieee754sp x, ieee754sp y) diff --git a/arch/mips/math-emu/sp_scalb.c b/arch/mips/math-emu/sp_scalb.c index 1e6cded64..65fdb51c5 100644 --- a/arch/mips/math-emu/sp_scalb.c +++ b/arch/mips/math-emu/sp_scalb.c @@ -25,14 +25,6 @@ */ -#include <limits.h> -#ifdef __KERNEL__ -#define assert(expr) ((void)0) -#else -#include <assert.h> -#endif -#include <stdarg.h> - #include "ieee754sp.h" ieee754sp ieee754sp_scalb(ieee754sp x, int n) diff --git a/arch/mips/math-emu/sp_simple.c b/arch/mips/math-emu/sp_simple.c index 392876b19..467e10654 100644 --- a/arch/mips/math-emu/sp_simple.c +++ b/arch/mips/math-emu/sp_simple.c @@ -25,14 +25,6 @@ */ -#include <limits.h> -#ifdef __KERNEL__ -#define assert(expr) ((void)0) -#else -#include <assert.h> -#endif -#include <stdarg.h> - #include "ieee754sp.h" int ieee754sp_finite(ieee754sp x) diff --git a/arch/mips/math-emu/sp_sqrt.c b/arch/mips/math-emu/sp_sqrt.c index 5bf25b520..d3eab4fb7 100644 --- a/arch/mips/math-emu/sp_sqrt.c +++ b/arch/mips/math-emu/sp_sqrt.c @@ -25,13 +25,6 @@ */ -#include <limits.h> -#ifdef __KERNEL__ -#define assert(expr) ((void)0) -#else -#include <assert.h> -#endif -#include <stdarg.h> #include "ieee754sp.h" static const struct ieee754sp_konst knan = { diff --git a/arch/mips/math-emu/sp_sub.c b/arch/mips/math-emu/sp_sub.c index 0372a85be..c28fc8935 100644 --- a/arch/mips/math-emu/sp_sub.c +++ b/arch/mips/math-emu/sp_sub.c @@ -25,14 +25,6 @@ */ -#include <limits.h> -#ifdef __KERNEL__ -#define assert(expr) ((void)0) -#else -#include <assert.h> -#endif -#include <stdarg.h> - #include "ieee754sp.h" ieee754sp ieee754sp_sub(ieee754sp x, ieee754sp y) diff --git a/arch/mips/math-emu/sp_tint.c b/arch/mips/math-emu/sp_tint.c index eeb26551e..8f3ed14c6 100644 --- a/arch/mips/math-emu/sp_tint.c +++ b/arch/mips/math-emu/sp_tint.c @@ -25,14 +25,7 @@ */ -#include <limits.h> -#ifdef __KERNEL__ -#define assert(expr) ((void)0) -#else -#include <assert.h> -#endif -#include <stdarg.h> - +#include <linux/kernel.h> #include "ieee754sp.h" int ieee754sp_tint(ieee754sp x) diff --git a/arch/mips/math-emu/sp_tlong.c b/arch/mips/math-emu/sp_tlong.c index 23a2abf4d..a7b0712e3 100644 --- a/arch/mips/math-emu/sp_tlong.c +++ b/arch/mips/math-emu/sp_tlong.c @@ -25,14 +25,6 @@ */ -#include <limits.h> -#ifdef __KERNEL__ -#define assert(expr) ((void)0) -#else -#include <assert.h> -#endif -#include <stdarg.h> - #include "ieee754sp.h" long long ieee754sp_tlong(ieee754sp x) |