ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

slang_mem.c File Reference
#include "main/context.h"
#include "main/macros.h"
#include "slang_mem.h"

Go to the source code of this file.

Data Structures

struct  slang_mempool

Defines

#define GRANULARITY   8
#define ROUND_UP(B)   ( ((B) + (GRANULARITY - 1)) & ~(GRANULARITY - 1) )
#define USE_MALLOC_FREE   0

Functions

slang_mempool * _slang_new_mempool (GLuint initialSize)
void _slang_delete_mempool (slang_mempool *pool)
void_slang_alloc (GLuint bytes)
void_slang_realloc (void *oldBuffer, GLuint oldSize, GLuint newSize)
char_slang_strdup (const char *s)
void _slang_free (void *addr)

Detailed Description

Memory manager for GLSL compiler. The general idea is to do all allocations out of a large pool then just free the pool when done compiling to avoid intricate malloc/free tracking and memory leaks.

Author:
Brian Paul

Definition in file slang_mem.c.


Generated on Fri May 25 2012 04:57:57 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.