From e1dd10ddfb49bfdd05fa8997bc097df93a9c9466 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Mon, 19 Mar 2007 22:04:17 +0000 Subject: SWCODEC: Get rid of extra swap buffer and get back 512K of RAM or 100K if the players RAM is <= 1MB. Make any needed changes to things to stabilize and facilitate this including removing flattening out initialization. Comment some things heavily. Fix a few logfs I didn't want to see the compiler complaining about. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12843 a1c6a512-1295-4272-9138-f99709370657 --- firmware/include/memory.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'firmware/include') 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_ */ -- cgit v1.1