mirror of
https://github.com/zeldaret/tww.git
synced 2026-09-12 12:25:18 -04:00
MSL_C OK, add MWCC GC v1.3
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user