def METHOD_NAME(self, name, N, M, acc=False):
    assert type(N) is int
    assert type(M) is int
    assert M % 16 == 0
    self.install_amx_allocator()
    self.glob += [f"int8_t *{name};", ""]
    malloc = "amx_acc_malloc" if acc else "amx_malloc"
    self.body += [f"{name} = (int8_t*)((uint64_t){malloc}({N}*{M}/16));", ""]