* Swap upper and lower byte of all shorts in the array. * @param buf Array with shorts. * @param len Number of short values in the array. */
| 94 | * @param len Number of short values in the array. |
| 95 | */ |
| 96 | static void swap_shorts(short *buf, int len) |
| 97 | { |
| 98 | int i; |
| 99 | |
| 100 | /* Flip bytes in each short! */ |
| 101 | for (i = 0; i < len; i++) { |
| 102 | *buf = ((*buf & 0xFF) <<8) | ((*buf &0xFF00) >>8); |
| 103 | buf++; |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | |
| 108 | /** |
nothing calls this directly
no outgoing calls
no test coverage detected