/ SwapWord() */ / Swap a 2, 4 or 8 byte word. */ /
| 56 | /* Swap a 2, 4 or 8 byte word. */ |
| 57 | /************************************************************************/ |
| 58 | static void SwapWord( int length, void * wordP ) |
| 59 | { |
| 60 | int i; |
| 61 | uchar temp; |
| 62 | |
| 63 | for( i=0; i < length/2; i++ ) { |
| 64 | temp = ((uchar *) wordP)[i]; |
| 65 | ((uchar *)wordP)[i] = ((uchar *) wordP)[length-i-1]; |
| 66 | ((uchar *) wordP)[length-i-1] = temp; |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | /************************************************************************/ |
| 71 | /* SfRealloc() */ |
no outgoing calls
no test coverage detected