diff options
author | Andrew Mahone <andrew.mahone@gmail.com> | 2009-01-13 13:48:26 +0000 |
---|---|---|
committer | Andrew Mahone <andrew.mahone@gmail.com> | 2009-01-13 13:48:26 +0000 |
commit | 2fbf09752d385af861279af195d68f920859202d (patch) | |
tree | 98bf09ebc24217d122b61c2a079337b793c35d9b /firmware/general.c | |
parent | c0d9084d6a5182460da0472a4e88d6d078adb86e (diff) | |
download | rockbox-2fbf09752d385af861279af195d68f920859202d.tar.gz rockbox-2fbf09752d385af861279af195d68f920859202d.tar.bz2 rockbox-2fbf09752d385af861279af195d68f920859202d.zip |
remove align_buffer from firmare/general.c, replacing with ALIGN_BUFFER macro, and replace all uses of it (only resize.c in core, and pictureflow and mpegplayer plugins), remove it from plugin_api,
and remove wrapper for it from plugin.h
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19758 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/general.c')
-rw-r--r-- | firmware/general.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/firmware/general.c b/firmware/general.c index 1c2abe1256..ff6594086e 100644 --- a/firmware/general.c +++ b/firmware/general.c @@ -78,23 +78,3 @@ int make_list_from_caps32(unsigned long src_mask, return count; } /* make_list_from_caps32 */ - -/* Align a buffer and size to a size boundary while remaining within - * the original boundaries */ -size_t align_buffer(void **start, size_t size, size_t align) -{ - void *newstart = *start; - void *newend = newstart + size; - - /* Align the end down and the start up */ - newend = (void *)ALIGN_DOWN((intptr_t)newend, align); - newstart = (void *)ALIGN_UP((intptr_t)newstart, align); - - /* Hmmm - too small for this */ - if (newend <= newstart) - return 0; - - /* Return adjusted pointer and size */ - *start = newstart; - return newend - newstart; -} |