#define MAX_ALLOC_FNS 32 // includes the builtin ones
// First six filled in, rest should be zeroed. argc/argv-style vector.
-static UInt n_alloc_fns = 8;
+static UInt n_alloc_fns = 9;
static Char* alloc_fns[MAX_ALLOC_FNS] = {
"malloc",
"operator new(unsigned)",
"calloc",
"realloc",
"my_malloc", // from vg_libpthread.c
+ "memalign",
};
return new_block( m*size, VG_(clo_alignment), /*is_zeroed*/True );
}
+void *SK_(memalign)( Int align, Int n )
+{
+ return new_block( n, align, False );
+}
+
void SK_(free) ( void* p )
{
die_block( p, /*custom_free*/False );