diff options
-rw-r--r-- | src/tlsf.c | 10 | ||||
-rw-r--r-- | src/tlsf.h | 7 |
2 files changed, 6 insertions, 11 deletions
@@ -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 <mimastel@doctor.upv.es> * * 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; \ @@ -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 <mimastel@doctor.upv.es> * * 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_ |