From 22dac3110718ed92672d22f0438034c7e1b77dfd Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 3 Jul 2009 07:43:44 +0000 Subject: Tidy. git-svn-id: http://svn.drobilla.net/resp/tuplr@175 ad02d1e2-f140-0410-9f75-f8b11f17cedd --- src/tlsf.c | 10 +++------- src/tlsf.h | 7 +++---- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/src/tlsf.c b/src/tlsf.c index b912800..97a1410 100644 --- a/src/tlsf.c +++ b/src/tlsf.c @@ -1,6 +1,9 @@ /* Two Levels Segregate Fit memory allocator (TLSF) * Version 2.4.4 * + * Modified for Tuplr by David Robillard. + * Original TLSF code available at http://rtportal.upv.es/rtmalloc/ + * * Written by Miguel Masmano Tello * * Thanks to Ismael Ripoll for his suggestions and reviews @@ -14,10 +17,6 @@ * Released under the terms of the GNU Lesser General Public License Version 2.1 */ -/* This version of TLSF has been modified for Tuplr by David Robillard. - * The original code is available at http://rtportal.upv.es/rtmalloc/ - */ - //#define USE_SBRK 1 #define USE_MMAP 1 //#define TLSF_STATISTICS 1 @@ -251,7 +250,6 @@ MAPPING_INSERT(size_t _r, int *_fl, int *_sl) } } - static inline bhdr_t* FIND_SUITABLE_BLOCK(tlsf_t * _tlsf, int *_fl, int *_sl) { @@ -271,7 +269,6 @@ FIND_SUITABLE_BLOCK(tlsf_t * _tlsf, int *_fl, int *_sl) return _b; } - #define EXTRACT_BLOCK_HDR(_b, _tlsf, _fl, _sl) do { \ _tlsf -> matrix [_fl] [_sl] = _b -> ptr.free_ptr.next; \ if (_tlsf -> matrix[_fl][_sl]) \ @@ -285,7 +282,6 @@ FIND_SUITABLE_BLOCK(tlsf_t * _tlsf, int *_fl, int *_sl) _b -> ptr.free_ptr.next = NULL; \ } while (0) - #define EXTRACT_BLOCK(_b, _tlsf, _fl, _sl) do { \ if (_b -> ptr.free_ptr.next) \ _b -> ptr.free_ptr.next -> ptr.free_ptr.prev = _b -> ptr.free_ptr.prev; \ diff --git a/src/tlsf.h b/src/tlsf.h index 24cca9d..35d5f97 100644 --- a/src/tlsf.h +++ b/src/tlsf.h @@ -1,6 +1,9 @@ /* Two Levels Segregate Fit memory allocator (TLSF) * Version 2.4.4 * + * Modified for Tuplr by David Robillard. + * Original TLSF code available at http://rtportal.upv.es/rtmalloc/ + * * Written by Miguel Masmano Tello * * Thanks to Ismael Ripoll for his suggestions and reviews @@ -14,10 +17,6 @@ * Released under the terms of the GNU Lesser General Public License Version 2.1 */ -/* This version of TLSF has been modified for Tuplr by David Robillard, - * and is not API compatible with TLSF. See http://rtportal.upv.es/rtmalloc/ - */ - #ifndef _TLSF_H_ #define _TLSF_H_ -- cgit v1.2.1