Lines Matching refs:memory
103 void *memory = allocateRaw(bytes, alignment); in allocate() local
105 if(memory) in allocate()
107 memset(memory, 0, bytes); in allocate()
110 return memory; in allocate()
113 void deallocate(void *memory) in deallocate() argument
116 free(memory); in deallocate()
118 if(memory) in deallocate()
120 unsigned char *aligned = (unsigned char*)memory; in deallocate()
128 void clear(uint16_t *memory, uint16_t element, size_t count) in clear() argument
131 __stosw(memory, element, count); in clear()
133 __asm__("rep stosw" : : "D"(memory), "a"(element), "c"(count)); in clear()
137 memory[i] = element; in clear()
142 void clear(uint32_t *memory, uint32_t element, size_t count) in clear() argument
145 __stosd((unsigned long*)memory, element, count); in clear()
147 __asm__("rep stosl" : : "D"(memory), "a"(element), "c"(count)); in clear()
151 memory[i] = element; in clear()