Make TLSF always align to 8 bytes, see #15

This commit is contained in:
dcodeIO
2018-03-04 01:30:16 +01:00
parent f754b24819
commit 4257273d42
11 changed files with 2164 additions and 2156 deletions

View File

@ -1,8 +1,10 @@
///////////////////////// Emscripten Memory Allocator //////////////////////////
// Uses Emscripten's exported _malloc and _free implementations, i.e., when
// linking with Emscripten-compiled programs that already provide these.
// Differs from 'system' in that their names are prefixed with an underscore.
/**
* @file Emscripten Memory Allocator
*
* Uses Emscripten's exported _malloc and _free implementations, i.e., when linking with
* Emscripten-compiled programs that already provide these. Differs from 'system' in that their
* names are prefixed with an underscore.
*/
declare function _malloc(size: usize): usize;
declare function _free(ptr: usize): void;