blob: 3640005f7f5741943b27a5828a3d56bb5e1de2a2 [file] [log] [blame]
swissChili8cfb7c42021-04-18 21:17:58 -07001#pragma once
2
swissChilif3e7f182021-04-20 13:57:22 -07003#include <dasm_proto.h>
swissChili53472e82021-05-08 16:06:32 -07004#include <stddef.h>
5#include <stdint.h>
swissChili8cfb7c42021-04-18 21:17:58 -07006
7/* Platform specific definitions */
8
9// Must return an address aligned to 8 bytes
swissChili53472e82021-05-08 16:06:32 -070010void *malloc_aligned(size_t size);
11void *realloc_aligned(void *addr, size_t size);
12void free_aligned(void *addr);
swissChilif3e7f182021-04-20 13:57:22 -070013
swissChili53472e82021-05-08 16:06:32 -070014void *link(dasm_State **Dst);
swissChilie9fec8b2021-06-22 13:59:33 -070015
16#define THREAD_LOCAL