Lines Matching refs:memory
92 void *memory = allocateRaw(bytes, alignment); in allocate() local
94 if(memory) in allocate()
96 memset(memory, 0, bytes); in allocate()
99 return memory; in allocate()
102 void deallocate(void *memory) in deallocate() argument
104 if(memory) in deallocate()
106 unsigned char *aligned = (unsigned char*)memory; in deallocate()
113 void clear(uint16_t *memory, uint16_t element, size_t count) in clear() argument
116 __stosw(memory, element, count); in clear()
118 __asm__ __volatile__("rep stosw" : "+D"(memory), "+c"(count) : "a"(element) : "memory"); in clear()
122 memory[i] = element; in clear()
127 void clear(uint32_t *memory, uint32_t element, size_t count) in clear() argument
130 __stosd((unsigned long*)memory, element, count); in clear()
132 __asm__ __volatile__("rep stosl" : "+D"(memory), "+c"(count) : "a"(element) : "memory"); in clear()
136 memory[i] = element; in clear()