jbig2dec
Ralph Giles <[email protected]> Sat, 20 Jul 2002 09:09:11 -0700
| Newsgroups | gmane.comp.printing.ghostscript.jbig2dec.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/jbig2dec/jbig2dec
In directory usw-pr-cvs1:/tmp/cvs-serv13928
Modified Files:
sha1.c
Log Message:
document endian worry
Index: sha1.c
===================================================================
RCS file: /cvsroot/jbig2dec/jbig2dec/sha1.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- sha1.c 20 Jul 2002 16:07:34 -0000 1.2
+++ sha1.c 20 Jul 2002 16:09:08 -0000 1.3
@@ -100,6 +100,7 @@
/* 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
#define blk0(i) (block->l[i] = (rol(block->l[i],24)&0xFF00FF00) \
|(rol(block->l[i],8)&0x00FF00FF))