Removing xenia/malloc.*

Using standard memory functions now.
This commit is contained in:
Ben Vanik
2014-08-20 22:22:47 -07:00
parent 609d7c755f
commit cecf83b7b7
36 changed files with 266 additions and 481 deletions

View File

@@ -348,7 +348,7 @@ uint64_t Memory::HeapAlloc(uint64_t base_address, size_t size, uint32_t flags,
}
if (result) {
if (flags & MEMORY_FLAG_ZERO) {
xe_zero_struct(Translate(result), size);
memset(Translate(result), 0, size);
}
}
return result;
@@ -377,7 +377,7 @@ uint64_t Memory::HeapAlloc(uint64_t base_address, size_t size, uint32_t flags,
}
if (flags & MEMORY_FLAG_ZERO) {
xe_zero_struct(pv, size);
memset(pv, 0, size);
}
return base_address;