Lines Matching defs:ptr
59 void *ptr;
61 ptr = (void *) (((int)spxGlobalHeapPtr + BLOCK_MASK) & ~BLOCK_MASK); //Start on 8 boundary
63 spxGlobalHeapPtr = (char *)((int)ptr + size); // Update pointer to next free location
74 fprintf (stderr, "Persist Allocated %d chars at %x, %d remaining\n", size, ptr, ((int)spxGlobalHeapEnd - (int)spxGlobalHeapPtr));
76 memset(ptr, 0, size);
77 return ptr;
83 void *ptr;
85 ptr = (void *) (((int)spxGlobalScratchPtr + BLOCK_MASK) & ~BLOCK_MASK); //Start on 8 boundary
87 spxGlobalScratchPtr = (char *)((int)ptr + size); // Update pointer to next free location
98 fprintf (stderr, "Scratch Allocated %d chars at %x, %d remaining\n", size, ptr, ((int)spxGlobalScratchEnd - (int)spxGlobalScratchPtr));
100 memset(ptr, 0, size);
101 return ptr;
105 static inline void *speex_realloc (void *ptr, int size)
114 static inline void speex_free (void *ptr)
121 static inline void speex_free_scratch (void *ptr)