cosmopolitan/libc/sysv/errfuns/enomem.S

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
307 B
ArmAsm
Raw Normal View History

#include "libc/macros.internal.h"
2020-06-15 07:18:57 -07:00
.text.unlikely
.ftrace1
enomem:
.ftrace2
#ifdef __x86_64__
.leafprologue
2022-05-16 13:20:08 -07:00
mov ENOMEM(%rip),%ecx
jmp __errfun
#elif defined(__aarch64__)
adrp x1,ENOMEM
ldrsw x0,[x1,#:lo12:ENOMEM]
b __errfun
#else
#error "unsupported architecture"
#endif
2020-06-15 07:18:57 -07:00
.endfn enomem,globl,hidden