Handle backslashes within #include, #error, #warning
[tinycc/kirr.git] / alloca86.S
blobc8f0c25260ac0202686b541d6d29a735f12671df
1 /* ---------------------------------------------- */
2 /* alloca86.S */
4 .globl _alloca
6 _alloca:
7     pop     %edx
8     pop     %eax
9     add     $3,%eax
10     and     $-4,%eax
11     jz      p3
12 p1:
13     cmp     $4096,%eax
14     jle     p2
15     sub     $4096,%esp
16     sub     $4096,%eax
17     test    %eax,(%esp)
18     jmp p1
19 p2:
20     sub     %eax,%esp
21     mov     %esp,%eax
22 p3:
23     push    %edx
24     push    %edx
25     ret
27 /* ---------------------------------------------- */