MSL_C OK, add MWCC GC v1.3

This commit is contained in:
LagoLunatic
2024-07-07 09:33:21 -04:00
parent 7d98e136a3
commit fcbfe1e299
4 changed files with 10 additions and 27 deletions
@@ -322,21 +322,5 @@ static inline void __pool_free(__mem_pool* pool, void* ptr) {
}
void free(void* ptr) {
//__pool_free(get_malloc_pool(), ptr);
__mem_pool_obj* pool_obj;
unsigned long size;
if (ptr == 0) {
return;
}
pool_obj = (__mem_pool_obj*)get_malloc_pool();
size = __msize_inline(ptr);
if (size <= 68) {
deallocate_from_fixed_pools(pool_obj, ptr, size);
} else {
deallocate_from_var_pools(pool_obj, ptr);
}
__pool_free(get_malloc_pool(), ptr);
}
@@ -168,8 +168,6 @@ void __timesdec(decimal* result, const decimal* x, const decimal* y) {
accumulator += *jp * *kp;
}
// TODO: It's reusing the result of the modulo for the division, but for a match we need to disable this
// optimization and do the divide separately somehow.
*--ip = (unsigned char)(accumulator % 10);
accumulator /= 10;
}