MIPS: Whitespace cleanup.
Having received another series of whitespace patches I decided to do this once and for all rather than dealing with this kind of patches trickling in forever. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
@@ -169,7 +169,7 @@ static int isBranchInstr(mips_instruction * i)
|
||||
|
||||
/*
|
||||
* In the Linux kernel, we support selection of FPR format on the
|
||||
* basis of the Status.FR bit. If an FPU is not present, the FR bit
|
||||
* basis of the Status.FR bit. If an FPU is not present, the FR bit
|
||||
* is hardwired to zero, which would imply a 32-bit FPU even for
|
||||
* 64-bit CPUs so we rather look at TIF_32BIT_REGS.
|
||||
* FPU emu is slow and bulky and optimizing this function offers fairly
|
||||
@@ -234,7 +234,7 @@ static int cop1Emulate(struct pt_regs *xcp, struct mips_fpu_struct *ctx,
|
||||
if (xcp->cp0_cause & CAUSEF_BD) {
|
||||
/*
|
||||
* The instruction to be emulated is in a branch delay slot
|
||||
* which means that we have to emulate the branch instruction
|
||||
* which means that we have to emulate the branch instruction
|
||||
* BEFORE we do the cop1 instruction.
|
||||
*
|
||||
* This branch could be a COP1 branch, but in that case we
|
||||
@@ -1335,8 +1335,8 @@ int fpu_emulator_cop1Handler(struct pt_regs *xcp, struct mips_fpu_struct *ctx,
|
||||
else {
|
||||
/*
|
||||
* The 'ieee754_csr' is an alias of
|
||||
* ctx->fcr31. No need to copy ctx->fcr31 to
|
||||
* ieee754_csr. But ieee754_csr.rm is ieee
|
||||
* ctx->fcr31. No need to copy ctx->fcr31 to
|
||||
* ieee754_csr. But ieee754_csr.rm is ieee
|
||||
* library modes. (not mips rounding mode)
|
||||
*/
|
||||
/* convert to ieee library modes */
|
||||
|
@@ -153,7 +153,7 @@ ieee754dp ieee754dp_add(ieee754dp x, ieee754dp y)
|
||||
xe = xe;
|
||||
xs = xs;
|
||||
|
||||
if (xm >> (DP_MBITS + 1 + 3)) { /* carry out */
|
||||
if (xm >> (DP_MBITS + 1 + 3)) { /* carry out */
|
||||
xm = XDPSRS1(xm);
|
||||
xe++;
|
||||
}
|
||||
|
@@ -87,7 +87,7 @@ ieee754dp ieee754dp_sqrt(ieee754dp x)
|
||||
if (xe > 512) { /* x > 2**-512? */
|
||||
xe -= 512; /* x = x / 2**512 */
|
||||
scalx += 256;
|
||||
} else if (xe < -512) { /* x < 2**-512? */
|
||||
} else if (xe < -512) { /* x < 2**-512? */
|
||||
xe += 512; /* x = x * 2**512 */
|
||||
scalx -= 256;
|
||||
}
|
||||
@@ -108,13 +108,13 @@ ieee754dp ieee754dp_sqrt(ieee754dp x)
|
||||
y.bits &= 0xffffffff00000000LL;
|
||||
|
||||
/* triple to almost 56 sig. bits: y ~= sqrt(x) to within 1 ulp */
|
||||
/* t=y*y; z=t; pt[n0]+=0x00100000; t+=z; z=(x-z)*y; */
|
||||
/* t=y*y; z=t; pt[n0]+=0x00100000; t+=z; z=(x-z)*y; */
|
||||
z = t = ieee754dp_mul(y, y);
|
||||
t.parts.bexp += 0x001;
|
||||
t = ieee754dp_add(t, z);
|
||||
z = ieee754dp_mul(ieee754dp_sub(x, z), y);
|
||||
|
||||
/* t=z/(t+x) ; pt[n0]+=0x00100000; y+=t; */
|
||||
/* t=z/(t+x) ; pt[n0]+=0x00100000; y+=t; */
|
||||
t = ieee754dp_div(z, ieee754dp_add(t, x));
|
||||
t.parts.bexp += 0x001;
|
||||
y = ieee754dp_add(y, t);
|
||||
|
@@ -158,7 +158,7 @@ ieee754dp ieee754dp_sub(ieee754dp x, ieee754dp y)
|
||||
xe = xe;
|
||||
xs = xs;
|
||||
|
||||
if (xm >> (DP_MBITS + 1 + 3)) { /* carry out */
|
||||
if (xm >> (DP_MBITS + 1 + 3)) { /* carry out */
|
||||
xm = XDPSRS1(xm); /* shift preserving sticky */
|
||||
xe++;
|
||||
}
|
||||
|
@@ -56,21 +56,21 @@
|
||||
#endif
|
||||
|
||||
const struct ieee754dp_konst __ieee754dp_spcvals[] = {
|
||||
DPSTR(0, DP_EMIN - 1 + DP_EBIAS, 0, 0), /* + zero */
|
||||
DPSTR(1, DP_EMIN - 1 + DP_EBIAS, 0, 0), /* - zero */
|
||||
DPSTR(0, DP_EMIN - 1 + DP_EBIAS, 0, 0), /* + zero */
|
||||
DPSTR(1, DP_EMIN - 1 + DP_EBIAS, 0, 0), /* - zero */
|
||||
DPSTR(0, DP_EBIAS, 0, 0), /* + 1.0 */
|
||||
DPSTR(1, DP_EBIAS, 0, 0), /* - 1.0 */
|
||||
DPSTR(0, 3 + DP_EBIAS, 0x40000, 0), /* + 10.0 */
|
||||
DPSTR(1, 3 + DP_EBIAS, 0x40000, 0), /* - 10.0 */
|
||||
DPSTR(0, DP_EMAX + 1 + DP_EBIAS, 0, 0), /* + infinity */
|
||||
DPSTR(1, DP_EMAX + 1 + DP_EBIAS, 0, 0), /* - infinity */
|
||||
DPSTR(0, DP_EMAX + 1 + DP_EBIAS, 0, 0), /* + infinity */
|
||||
DPSTR(1, DP_EMAX + 1 + DP_EBIAS, 0, 0), /* - infinity */
|
||||
DPSTR(0, DP_EMAX+1+DP_EBIAS, 0x7FFFF, 0xFFFFFFFF), /* + indef quiet Nan */
|
||||
DPSTR(0, DP_EMAX + DP_EBIAS, 0xFFFFF, 0xFFFFFFFF), /* + max */
|
||||
DPSTR(1, DP_EMAX + DP_EBIAS, 0xFFFFF, 0xFFFFFFFF), /* - max */
|
||||
DPSTR(0, DP_EMIN + DP_EBIAS, 0, 0), /* + min normal */
|
||||
DPSTR(1, DP_EMIN + DP_EBIAS, 0, 0), /* - min normal */
|
||||
DPSTR(0, DP_EMIN - 1 + DP_EBIAS, 0, 1), /* + min denormal */
|
||||
DPSTR(1, DP_EMIN - 1 + DP_EBIAS, 0, 1), /* - min denormal */
|
||||
DPSTR(0, DP_EMIN - 1 + DP_EBIAS, 0, 1), /* + min denormal */
|
||||
DPSTR(1, DP_EMIN - 1 + DP_EBIAS, 0, 1), /* - min denormal */
|
||||
DPSTR(0, 31 + DP_EBIAS, 0, 0), /* + 1.0e31 */
|
||||
DPSTR(0, 63 + DP_EBIAS, 0, 0), /* + 1.0e63 */
|
||||
};
|
||||
@@ -84,9 +84,9 @@ const struct ieee754sp_konst __ieee754sp_spcvals[] = {
|
||||
SPSTR(1, 3 + SP_EBIAS, 0x200000), /* - 10.0 */
|
||||
SPSTR(0, SP_EMAX + 1 + SP_EBIAS, 0), /* + infinity */
|
||||
SPSTR(1, SP_EMAX + 1 + SP_EBIAS, 0), /* - infinity */
|
||||
SPSTR(0, SP_EMAX+1+SP_EBIAS, 0x3FFFFF), /* + indef quiet Nan */
|
||||
SPSTR(0, SP_EMAX + SP_EBIAS, 0x7FFFFF), /* + max normal */
|
||||
SPSTR(1, SP_EMAX + SP_EBIAS, 0x7FFFFF), /* - max normal */
|
||||
SPSTR(0, SP_EMAX+1+SP_EBIAS, 0x3FFFFF), /* + indef quiet Nan */
|
||||
SPSTR(0, SP_EMAX + SP_EBIAS, 0x7FFFFF), /* + max normal */
|
||||
SPSTR(1, SP_EMAX + SP_EBIAS, 0x7FFFFF), /* - max normal */
|
||||
SPSTR(0, SP_EMIN + SP_EBIAS, 0), /* + min normal */
|
||||
SPSTR(1, SP_EMIN + SP_EBIAS, 0), /* - min normal */
|
||||
SPSTR(0, SP_EMIN - 1 + SP_EBIAS, 1), /* + min denormal */
|
||||
|
@@ -116,7 +116,7 @@ static u64 get_rounding(int sn, u64 xm)
|
||||
xm += 0x8;
|
||||
break;
|
||||
case IEEE754_RD: /* toward -Infinity */
|
||||
if (sn) /* ?? */
|
||||
if (sn) /* ?? */
|
||||
xm += 0x8;
|
||||
break;
|
||||
}
|
||||
|
@@ -56,7 +56,7 @@
|
||||
|
||||
#define CLPAIR(x, y) ((x)*6+(y))
|
||||
|
||||
#define CLEARCX \
|
||||
#define CLEARCX \
|
||||
(ieee754_csr.cx = 0)
|
||||
|
||||
#define SETCX(x) \
|
||||
|
@@ -117,7 +117,7 @@ static unsigned get_rounding(int sn, unsigned xm)
|
||||
xm += 0x8;
|
||||
break;
|
||||
case IEEE754_RD: /* toward -Infinity */
|
||||
if (sn) /* ?? */
|
||||
if (sn) /* ?? */
|
||||
xm += 0x8;
|
||||
break;
|
||||
}
|
||||
|
@@ -25,7 +25,7 @@
|
||||
* Added preprocessor hacks to map to Linux kernel diagnostics.
|
||||
*
|
||||
* Kevin D. Kissell, kevink@mips.com and Carsten Langgaard, carstenl@mips.com
|
||||
* Copyright (C) 2000 MIPS Technologies, Inc. All rights reserved.
|
||||
* Copyright (C) 2000 MIPS Technologies, Inc. All rights reserved.
|
||||
*************************************************************************/
|
||||
|
||||
#include <linux/kernel.h>
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Kevin D. Kissell, kevink@mips and Carsten Langgaard, carstenl@mips.com
|
||||
* Copyright (C) 2000 MIPS Technologies, Inc. All rights reserved.
|
||||
* Copyright (C) 2000 MIPS Technologies, Inc. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can distribute it and/or modify it
|
||||
* under the terms of the GNU General Public License (Version 2) as
|
||||
|
@@ -148,7 +148,7 @@ ieee754sp ieee754sp_add(ieee754sp x, ieee754sp y)
|
||||
xe = xe;
|
||||
xs = xs;
|
||||
|
||||
if (xm >> (SP_MBITS + 1 + 3)) { /* carry out */
|
||||
if (xm >> (SP_MBITS + 1 + 3)) { /* carry out */
|
||||
SPXSRSX1();
|
||||
}
|
||||
} else {
|
||||
|
@@ -131,7 +131,7 @@ ieee754sp ieee754sp_mul(ieee754sp x, ieee754sp y)
|
||||
hrm = hxm * hym; /* 16 * 16 => 32 */
|
||||
|
||||
{
|
||||
unsigned t = lxm * hym; /* 16 * 16 => 32 */
|
||||
unsigned t = lxm * hym; /* 16 * 16 => 32 */
|
||||
{
|
||||
unsigned at = lrm + (t << 16);
|
||||
hrm += at < lrm;
|
||||
@@ -141,7 +141,7 @@ ieee754sp ieee754sp_mul(ieee754sp x, ieee754sp y)
|
||||
}
|
||||
|
||||
{
|
||||
unsigned t = hxm * lym; /* 16 * 16 => 32 */
|
||||
unsigned t = hxm * lym; /* 16 * 16 => 32 */
|
||||
{
|
||||
unsigned at = lrm + (t << 16);
|
||||
hrm += at < lrm;
|
||||
|
@@ -153,7 +153,7 @@ ieee754sp ieee754sp_sub(ieee754sp x, ieee754sp y)
|
||||
xe = xe;
|
||||
xs = xs;
|
||||
|
||||
if (xm >> (SP_MBITS + 1 + 3)) { /* carry out */
|
||||
if (xm >> (SP_MBITS + 1 + 3)) { /* carry out */
|
||||
SPXSRSX1(); /* shift preserving sticky */
|
||||
}
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user