diff options
| author | Michael Sevakis <jethead71@rockbox.org> | 2007-03-19 22:04:17 +0000 |
|---|---|---|
| committer | Michael Sevakis <jethead71@rockbox.org> | 2007-03-19 22:04:17 +0000 |
| commit | e1dd10ddfb49bfdd05fa8997bc097df93a9c9466 (patch) | |
| tree | 0c530ecb1ab68eb335edf595829bf7786e6a683e /firmware/include/memory.h | |
| parent | fbf52ae8fe04f27368392b71a3572dc2bb00788f (diff) | |
| download | rockbox-e1dd10ddfb49bfdd05fa8997bc097df93a9c9466.zip rockbox-e1dd10ddfb49bfdd05fa8997bc097df93a9c9466.tar.gz rockbox-e1dd10ddfb49bfdd05fa8997bc097df93a9c9466.tar.bz2 rockbox-e1dd10ddfb49bfdd05fa8997bc097df93a9c9466.tar.xz | |
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
Diffstat (limited to 'firmware/include/memory.h')
| -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_ */ |