Pedantic polish to rc4-ia64.pl.

This commit is contained in:
Andy Polyakov 2005-07-20 11:47:47 +00:00
parent b3f56e8b38
commit 2802ec65c2

View File

@ -231,7 +231,7 @@ sub emit_body {
___ ___
if (($p & 0xf) == 0) { if (($p & 0xf) == 0) {
$c.="#ifdef RC4_BIG_ENDIAN\n"; $c.="#ifdef HOST_IS_BIG_ENDIAN\n";
&I(\$c,"shr.u OutWord[%u] = OutWord[%u], 32;;", &I(\$c,"shr.u OutWord[%u] = OutWord[%u], 32;;",
$iw1 % $NOutWord, $iw1 % $NOutWord); $iw1 % $NOutWord, $iw1 % $NOutWord);
$c.="#endif\n"; $c.="#endif\n";
@ -392,7 +392,7 @@ $code=<<___;
/* Define a macro for the bit number of the n-th byte: */ /* Define a macro for the bit number of the n-th byte: */
#if defined(_HPUX_SOURCE) || defined(B_ENDIAN) #if defined(_HPUX_SOURCE) || defined(B_ENDIAN)
# define RC4_BIG_ENDIAN # define HOST_IS_BIG_ENDIAN
# define BYTE_POS(n) (56 - (8 * (n))) # define BYTE_POS(n) (56 - (8 * (n)))
#else #else
# define BYTE_POS(n) (8 * (n)) # define BYTE_POS(n) (8 * (n))