2021-03-01 07:42:35 +00:00
|
|
|
#include "libc/macros.h"
|
2020-06-15 14:18:57 +00:00
|
|
|
.text.unlikely
|
|
|
|
|
2023-06-06 06:35:31 +00:00
|
|
|
.ftrace1
|
2023-05-09 09:35:05 +00:00
|
|
|
edom:
|
2023-06-06 06:35:31 +00:00
|
|
|
.ftrace2
|
2023-05-09 09:35:05 +00:00
|
|
|
#ifdef __x86_64__
|
|
|
|
.leafprologue
|
2022-05-16 20:20:08 +00:00
|
|
|
mov EDOM(%rip),%ecx
|
2022-05-27 20:25:46 +00:00
|
|
|
jmp __errfun
|
2023-05-09 09:35:05 +00:00
|
|
|
#elif defined(__aarch64__)
|
|
|
|
adrp x1,EDOM
|
2023-05-19 02:05:08 +00:00
|
|
|
ldrsw x0,[x1,#:lo12:EDOM]
|
2023-05-09 09:35:05 +00:00
|
|
|
b __errfun
|
|
|
|
#else
|
|
|
|
#error "unsupported architecture"
|
|
|
|
#endif
|
2020-06-15 14:18:57 +00:00
|
|
|
.endfn edom,globl,hidden
|