| 1899 | */ |
| 1900 | |
| 1901 | static void |
| 1902 | cups_swap(unsigned char *buf, /* I - Buffer to swap */ |
| 1903 | size_t bytes) /* I - Number of bytes to swap */ |
| 1904 | { |
| 1905 | unsigned char even, odd; /* Temporary variables */ |
| 1906 | |
| 1907 | |
| 1908 | bytes /= 2; |
| 1909 | |
| 1910 | while (bytes > 0) |
| 1911 | { |
| 1912 | even = buf[0]; |
| 1913 | odd = buf[1]; |
| 1914 | buf[0] = odd; |
| 1915 | buf[1] = even; |
| 1916 | |
| 1917 | buf += 2; |
| 1918 | bytes --; |
| 1919 | } |
| 1920 | } |
| 1921 | |
| 1922 | |
| 1923 | /* |
no outgoing calls
no test coverage detected