summaryrefslogtreecommitdiff
path: root/src/util/utilbitmap.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-09-16 22:21:21 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-09-16 22:21:21 -0700
commit098ab294deed98371ee362fadafcf2e510e0cc50 (patch)
tree8ac9b280165a108d762f5de995782d172b7dbf75 /src/util/utilbitmap.c
parent211368b8d04ed13ba520de2dd49a875cb1d663a7 (diff)
Strip trailing whitespace
Performed with: find * -type f | xargs perl -i -p -e 's{[ \t]+$}{}' git diff -w & git diff -b show no diffs from this change Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/util/utilbitmap.c')
-rw-r--r--src/util/utilbitmap.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/util/utilbitmap.c b/src/util/utilbitmap.c
index 5feb2d1..ec726b8 100644
--- a/src/util/utilbitmap.c
+++ b/src/util/utilbitmap.c
@@ -106,7 +106,7 @@ FourByteSwap(unsigned char *buf, int nbytes)
{
unsigned char c;
- for (; nbytes > 0; nbytes -= 4, buf += 4)
+ for (; nbytes > 0; nbytes -= 4, buf += 4)
{
c = buf[0];
buf[0] = buf[3];
@@ -122,8 +122,8 @@ FourByteSwap(unsigned char *buf, int nbytes)
*/
int
-RepadBitmap (char *pSrc, char *pDst,
- unsigned int srcPad, unsigned int dstPad,
+RepadBitmap (char *pSrc, char *pDst,
+ unsigned int srcPad, unsigned int dstPad,
int width, int height)
{
int srcWidthBytes,dstWidthBytes;
@@ -131,33 +131,33 @@ RepadBitmap (char *pSrc, char *pDst,
char *pTmpSrc,*pTmpDst;
switch (srcPad) {
- case 1:
+ case 1:
srcWidthBytes = (width+7)>>3;
break;
case 2:
srcWidthBytes = ((width+15)>>4)<<1;
break;
- case 4:
+ case 4:
srcWidthBytes = ((width+31)>>5)<<2;
break;
- case 8:
- srcWidthBytes = ((width+63)>>6)<<3;
+ case 8:
+ srcWidthBytes = ((width+63)>>6)<<3;
break;
default:
return 0;
}
switch (dstPad) {
- case 1:
+ case 1:
dstWidthBytes = (width+7)>>3;
break;
case 2:
dstWidthBytes = ((width+15)>>4)<<1;
break;
- case 4:
+ case 4:
dstWidthBytes = ((width+31)>>5)<<2;
break;
- case 8:
- dstWidthBytes = ((width+63)>>6)<<3;
+ case 8:
+ dstWidthBytes = ((width+63)>>6)<<3;
break;
default:
return 0;