Parent Directory
|
Revision Log
|
Patch
| revision 87 by nigel, Sat Feb 24 21:41:21 2007 UTC | revision 91 by nigel, Sat Feb 24 21:41:34 2007 UTC | |
|---|---|---|
| # | Line 62 Arguments: | Line 62 Arguments: |
| 62 | Returns: the flipped value | Returns: the flipped value |
| 63 | */ | */ |
| 64 | ||
| 65 | static long int | static unsigned long int |
| 66 | byteflip(long int value, int n) | byteflip(unsigned long int value, int n) |
| 67 | { | { |
| 68 | if (n == 2) return ((value & 0x00ff) << 8) | ((value & 0xff00) >> 8); | if (n == 2) return ((value & 0x00ff) << 8) | ((value & 0xff00) >> 8); |
| 69 | return ((value & 0x000000ff) << 24) | | return ((value & 0x000000ff) << 24) | |
|
||||||||
| webmaster@exim.org | ViewVC Help |
| Powered by ViewVC 1.1.12 |