jbig2dec

Ralph Giles <[email protected]> Sat, 20 Jul 2002 09:19:35 -0700
Newsgroups gmane.comp.printing.ghostscript.jbig2dec.cvs
Message-ID <[email protected]>
Update of /cvsroot/jbig2dec/jbig2dec
In directory usw-pr-cvs1:/tmp/cvs-serv15955

Modified Files:
	sha1.c 
Log Message:
minor rearrange

Index: sha1.c
===================================================================
RCS file: /cvsroot/jbig2dec/jbig2dec/sha1.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- sha1.c	20 Jul 2002 16:09:08 -0000	1.3
+++ sha1.c	20 Jul 2002 16:19:33 -0000	1.4
@@ -101,11 +101,11 @@
 /* blk0() and blk() perform the initial expand. */
 /* I got the idea of expanding during the round function from SSLeay */
 /* FIXME: can we do this in an endian-proof way? */
-#ifndef WORDS_BIGENDIAN
+#ifdef WORDS_BIGENDIAN
+#define blk0(i) block->l[i]
+#else
 #define blk0(i) (block->l[i] = (rol(block->l[i],24)&0xFF00FF00) \
     |(rol(block->l[i],8)&0x00FF00FF))
-#else
-#define blk0(i) block->l[i]
 #endif
 #define blk(i) (block->l[i&15] = rol(block->l[(i+13)&15]^block->l[(i+8)&15] \
     ^block->l[(i+2)&15]^block->l[i&15],1))