rockbox/firmware/test/memory/memory.h
Alan Korr 223884c4e5 There is two part in this module :
* memory-page :
    It is a page allocator using bins. Each bin is a list (or a splay tree)
    of the same power-of-2 pages. If no page left in a bin, it tries to
    allocate a large page to split into two pages. Page size are :
    512 B, 1 KB, 2 KB, 4 KB, 8 KB, 16 KB, 32 KB, 64 KB, 128 KB,
    256 KB, 512 KB, 1 MB and 2 MB. Alignment of a page is the same
    value than for its size.

* memory-slab :
    using slab for smaller blocks, but much simpler than Linux' slab.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@106 a1c6a512-1295-4272-9138-f99709370657
2002-04-16 18:37:44 +00:00

27 lines
1.1 KiB
C

/***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
* \/ \/ \/ \/ \/
* $Id$
*
* Copyright (C) 2002 by Alan Korr
*
* All files in this archive are subject to the GNU General Public License.
* See the file COPYING in the source tree root for full license agreement.
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
* KIND, either express or implied.
*
****************************************************************************/
#ifndef __LIBRARY_MEMORY_H__
# define __LIBRARY_MEMORY_H__
# include <memory/config.h>
# include <memory/defines.h>
# include <memory/types.h>
# include <memory/return_values.h>
# include <memory/inlines.h>
# include <memory/functions.h>
#endif