/* $OpenBSD: alloca.S,v 1.1 2004/01/28 01:44:45 mickey Exp $ */ /* $NetBSD: alloca.S,v 1.1 2001/06/19 00:25:02 fvdl Exp $ */ #include ENTRY(alloca) popq %rdx movq %rsp,%rcx addq $15,%rdi /* round up to 16 bytes */ andq $~15,%rdi subq %rdi,%rsp movq %rsp,%rax jmp *%rdx