Parent Directory | Revision Log | 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 | } | } |
|
webmaster@linux.gr | ViewVC Help |
Powered by ViewVC 1.1.26 |