diff options
Diffstat (limited to 'firmware/include')
| -rw-r--r-- | firmware/include/memory.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/firmware/include/memory.h b/firmware/include/memory.h index 559c6ed..75bcb98 100644 --- a/firmware/include/memory.h +++ b/firmware/include/memory.h @@ -24,4 +24,15 @@ void memset16(void *dst, int val, size_t len); +/** + * memswap128 + * + * Exchanges the contents of two buffers. + * For maximum efficiency, this function performs no aligning of addresses + * and buf1, buf2 and len should be 16 byte (128 bit) aligned. Not being at + * least longword aligned will fail on some architechtures. Any len mod 16 + * at the end is not swapped. + */ +void memswap128(void *buf1, void *buf2, size_t len); + #endif /* _MEMORY_H_ */ |