mirror of
https://github.com/xmrig/xmrig.git
synced 2025-01-23 03:05:09 +00:00
38 lines
740 B
ArmAsm
38 lines
740 B
ArmAsm
|
#define ALIGN .align
|
||
|
.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_double_mainloop_sandybridge_asm)
|
||
|
|
||
|
ALIGN 16
|
||
|
FN_PREFIX(cnv2_mainloop_ivybridge_asm):
|
||
|
sub rsp, 48
|
||
|
mov rcx, rdi
|
||
|
#include "cnv2_main_loop_ivybridge.inc"
|
||
|
add rsp, 48
|
||
|
ret 0
|
||
|
|
||
|
ALIGN 16
|
||
|
FN_PREFIX(cnv2_mainloop_ryzen_asm):
|
||
|
sub rsp, 48
|
||
|
mov rcx, rdi
|
||
|
#include "cnv2_main_loop_ryzen.inc"
|
||
|
add rsp, 48
|
||
|
ret 0
|
||
|
|
||
|
ALIGN 16
|
||
|
FN_PREFIX(cnv2_double_mainloop_sandybridge_asm):
|
||
|
sub rsp, 48
|
||
|
mov rcx, rdi
|
||
|
mov rdx, rsi
|
||
|
#include "cnv2_double_main_loop_sandybridge.inc"
|
||
|
add rsp, 48
|
||
|
ret 0
|