Removing xenia/malloc.*
Using standard memory functions now.
This commit is contained in:
@@ -95,7 +95,7 @@ namespace tables {
|
||||
static InstrType** instr_table_prep(InstrType* unprep, size_t unprep_count,
|
||||
int a, int b) {
|
||||
int prep_count = (int)pow(2.0, b - a + 1);
|
||||
InstrType** prep = (InstrType**)xe_calloc(prep_count * sizeof(void*));
|
||||
InstrType** prep = (InstrType**)calloc(prep_count, sizeof(void*));
|
||||
for (int n = 0; n < unprep_count; n++) {
|
||||
int ordinal = select_bits(unprep[n].opcode, a, b);
|
||||
prep[ordinal] = &unprep[n];
|
||||
@@ -107,7 +107,7 @@ static InstrType** instr_table_prep_63(InstrType* unprep, size_t unprep_count,
|
||||
int a, int b) {
|
||||
// Special handling for A format instructions.
|
||||
int prep_count = (int)pow(2.0, b - a + 1);
|
||||
InstrType** prep = (InstrType**)xe_calloc(prep_count * sizeof(void*));
|
||||
InstrType** prep = (InstrType**)calloc(prep_count, sizeof(void*));
|
||||
for (int n = 0; n < unprep_count; n++) {
|
||||
int ordinal = select_bits(unprep[n].opcode, a, b);
|
||||
if (unprep[n].format == kXEPPCInstrFormatA) {
|
||||
|
||||
Reference in New Issue
Block a user