374,9 → 374,9 |
|
diff = (unsigned long)((((unsigned long)mem/4)+1)*4-(unsigned long)mem); |
|
*(unsigned long *)(mem+diff) = diff; |
*(unsigned long *)(mem+diff) = (diff | 0x80000000); |
|
return ((void *)((unsigned long)(mem+diff+4) | 0x80000000)); |
return (mem+diff+4); |
|
} |
|
384,8 → 384,8 |
|
if (addr == NULL) return; |
|
if (((unsigned long)(addr) & 0x80000000) == 0x80000000) { |
free(addr-*(unsigned long *)(addr-4)-4); |
if ((*(unsigned long *)(addr-4) & 0x80000000) == 0x80000000) { |
free(addr-(*(unsigned long *)(addr-4) & 0x7FFFFFFF)-4); |
return; |
} |
|