diff options
author | 2015-05-27 13:47:22 +0200 | |
---|---|---|
committer | 2015-05-27 23:18:44 +0200 | |
commit | cef370aa13953c3bcfa185c818c76812c34f13fc (patch) | |
tree | 6ecc90526c03f1e2411328ac2e3d635f9b952922 /src/emu/netlist/plib/palloc.c | |
parent | e9fe1e74c46f40379bcdc472b97c4aef4d3a91e6 (diff) |
Moved all files in src/emu/netlist starting with p into plib folder.
This is a first step to ease synchronisation with a stand alone, e.g.
outside mame, netlist implementation. More signed/unsigned cleanups and
started work on generic truthtable devices. (nw)
Diffstat (limited to 'src/emu/netlist/plib/palloc.c')
-rw-r--r-- | src/emu/netlist/plib/palloc.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/emu/netlist/plib/palloc.c b/src/emu/netlist/plib/palloc.c new file mode 100644 index 00000000000..5f9dbc5fee7 --- /dev/null +++ b/src/emu/netlist/plib/palloc.c @@ -0,0 +1,23 @@ +// license:GPL-2.0+ +// copyright-holders:Couriersud +/* + * palloc.c + * + */ + +#include "pconfig.h" + +#if (PSTANDALONE) +#include <stdlib.h> +#include <xmmintrin.h> + +void *palloc_raw(const size_t size) +{ + return _mm_malloc(size, 64); +} + +void pfree_raw(void *p) +{ + _mm_free(p); +} +#endif |