xmrig/crypto/asm/cn_main_loop.S

55 lines
1.1 KiB
ArmAsm
Raw Normal View History

#ifdef __APPLE__
# define ALIGN(x) .align 6
#else
# define ALIGN(x) .align 64
#endif
2018-10-05 12:02:52 +00:00
.intel_syntax noprefix
#ifdef __APPLE__
# define FN_PREFIX(fn) _ ## fn
.text
#else
# define FN_PREFIX(fn) fn
.section .text
#endif
.global FN_PREFIX(cnv2_mainloop_ivybridge_asm)
.global FN_PREFIX(cnv2_mainloop_ryzen_asm)
.global FN_PREFIX(cnv2_mainloop_bulldozer_asm)
2018-10-05 12:02:52 +00:00
.global FN_PREFIX(cnv2_double_mainloop_sandybridge_asm)
ALIGN(64)
2018-10-05 12:02:52 +00:00
FN_PREFIX(cnv2_mainloop_ivybridge_asm):
sub rsp, 48
mov rcx, rdi
#include "cn2/cnv2_main_loop_ivybridge.inc"
2018-10-05 12:02:52 +00:00
add rsp, 48
ret 0
mov eax, 3735929054
2018-10-05 12:02:52 +00:00
ALIGN(64)
2018-10-05 12:02:52 +00:00
FN_PREFIX(cnv2_mainloop_ryzen_asm):
sub rsp, 48
mov rcx, rdi
#include "cn2/cnv2_main_loop_ryzen.inc"
add rsp, 48
ret 0
mov eax, 3735929054
ALIGN(64)
FN_PREFIX(cnv2_mainloop_bulldozer_asm):
sub rsp, 48
mov rcx, rdi
#include "cn2/cnv2_main_loop_bulldozer.inc"
2018-10-05 12:02:52 +00:00
add rsp, 48
ret 0
mov eax, 3735929054
2018-10-05 12:02:52 +00:00
ALIGN(64)
2018-10-05 12:02:52 +00:00
FN_PREFIX(cnv2_double_mainloop_sandybridge_asm):
sub rsp, 48
mov rcx, rdi
mov rdx, rsi
#include "cn2/cnv2_double_main_loop_sandybridge.inc"
2018-10-05 12:02:52 +00:00
add rsp, 48
ret 0
mov eax, 3735929054