| 10 | |
| 11 | #ifdef WORDS_BIGENDIAN |
| 12 | void byteSwap(uint32_t * buf, unsigned words) |
| 13 | { |
| 14 | uint8_t *p = (uint8_t *) buf; |
| 15 | |
| 16 | do { |
| 17 | *buf++ = (uint32_t) ((unsigned) p[3] << 8 | p[2]) << 16 | |
| 18 | ((unsigned) p[1] << 8 | p[0]); |
| 19 | p += 4; |
| 20 | } while (--words); |
| 21 | } |
| 22 | #else |
| 23 | #define byteSwap(buf,words) |
| 24 | #endif |
no outgoing calls
no test coverage detected
searching dependent graphs…