2 #include <msvcrt/stdlib.h>
8 register unsigned int as = s;
10 // alloca(0) should not return the stack pointer
15 if ( (s & 0xfffffffc) != 0 )
25 "subl %%edx, %%esp \n"
26 "movl %%esp, %%eax \n"
27 "addl $20, %%eax \n"//4 bytes + 16 bytes = arguments
38 void *_alloca(size_t s)
40 register unsigned int as = s;
42 // alloca(0) should not return the stack pointer
47 if ( (s & 0xfffffffc) != 0 )
57 "subl %%edx, %%esp \n"
58 "movl %%esp, %%eax \n"
59 "addl $20, %%eax \n"//4 bytes + 16 bytes = arguments