geode/loader/dobby/external/xnucxx/LiteMemOpt.cc

23 lines
423 B
C++
Raw Normal View History

2022-07-30 12:24:03 -04:00
#include "xnucxx/LiteMemOpt.h"
#include <stdlib.h>
#include <string.h>
#if 1
void *_memcpy(void *dest, const void *src, int len) {
return memcpy(dest, src, len);
}
void *_memset(void *dest, int ch, int count) {
return memset(dest, ch, count);
}
#endif
void *LiteMemOpt::alloc(int size) {
void *result = malloc(size);
return result;
}
void LiteMemOpt::free(void *address, int size) {
return ::free(address);
}