/[mcrypt]/libmcrypt/lib/swap.c
ViewVC logotype

Diff of /libmcrypt/lib/swap.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by nmav, Mon May 22 13:07:52 2000 UTC revision 1.2 by nmav, Thu Oct 12 21:06:31 2000 UTC
# Line 75  word32 byteswap(word32 x) Line 75  word32 byteswap(word32 x)
75  #endif  #endif
76    
77  /* Byte swap a 16bit integer */  /* Byte swap a 16bit integer */
78  word16 byteswap_16(word16 x)  word16 byteswap16(word16 x)
79  {  {
80          return ( (rotl16(x, 8) & 0x00ff) | (rotr16(x, 8) & 0xff00) );          return ( (rotl16(x, 8) & 0x00ff) | (rotr16(x, 8) & 0xff00) );
81  }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26