Update of /cvsroot/bitcollider/bitprint
In directory usw-pr-cvs1:/tmp/cvs-serv13553
Modified Files:
bitprint.c
Log Message:
A couple more minor tweaks with regards to the endianess. Should work ok now.
Index: bitprint.c
===================================================================
RCS file: /cvsroot/bitcollider/bitprint/bitprint.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** bitprint.c 2001/12/05 22:44:07 1.6
--- bitprint.c 2001/12/05 23:02:45 1.7
***************
*** 30,34 ****
#define SIZEOF_LONG 4
! //#error Please define the endianness of the platform that will run this code.
/* Notes for non-windows users:
If you are using autoconf, then add the following lines to your
--- 30,34 ----
#define SIZEOF_LONG 4
! #error Please define the endianness of the platform that will run this code.
/* Notes for non-windows users:
If you are using autoconf, then add the following lines to your
***************
*** 119,122 ****
--- 119,123 ----
static void tt_digest(TT_CONTEXT *ctx, unsigned char *hash);
static void tt_copy(TT_CONTEXT *dest, TT_CONTEXT *src);
+ static void tt_endian(byte *s);
/* =================================================================== */
***************
*** 704,708 ****
byte *node = ctx->top - NODESIZE;
tiger((word64*)node,(word64)NODESIZE,(word64*)ctx->top); // combine two nodes
! #if USE_BIG_ENDIAN
tt_endian((byte *)ctx->top);
#endif
--- 705,709 ----
byte *node = ctx->top - NODESIZE;
tiger((word64*)node,(word64)NODESIZE,(word64*)ctx->top); // combine two nodes
! #if BIG_ENDIAN
tt_endian((byte *)ctx->top);
#endif
***************
*** 716,720 ****
tiger((word64*)block,(word64)ctx->index,(word64*)ctx->top);
! #if USE_BIG_ENDIAN
tt_endian((byte *)ctx->top);
#endif
--- 717,721 ----
tiger((word64*)block,(word64)ctx->index,(word64*)ctx->top);
! #if BIG_ENDIAN
tt_endian((byte *)ctx->top);
#endif
|