From 7e3fa7e837aaf687996abdd8511f6bf32e2c9097 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Mon, 22 May 2006 12:32:35 +0000 Subject: Speedup the venerable mm.[ch] allocator with doubly linked lists and a separate list of free segments. --- src/mesa/main/mm.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/mesa/main/mm.h') diff --git a/src/mesa/main/mm.h b/src/mesa/main/mm.h index 9213b2ad34..26d59fff13 100644 --- a/src/mesa/main/mm.h +++ b/src/mesa/main/mm.h @@ -36,12 +36,12 @@ struct mem_block { - struct mem_block *next; - struct mem_block *heap; - int ofs,size; - int align; - unsigned int free:1; - unsigned int reserved:1; + struct mem_block *next, *prev; + struct mem_block *next_free, *prev_free; + struct mem_block *heap; + int ofs,size; + unsigned int free:1; + unsigned int reserved:1; }; -- cgit v1.2.3