2019-03-04 06:31:25 +00:00
|
|
|
#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)
|
2019-03-04 06:31:25 +00:00
|
|
|
.global FN_PREFIX(cnv2_mainloop_bulldozer_asm)
|
2018-10-05 12:02:52 +00:00
|
|
|
.global FN_PREFIX(cnv2_double_mainloop_sandybridge_asm)
|
|
|
|
|
2019-03-04 06:31:25 +00:00
|
|
|
ALIGN(64)
|
2018-10-05 12:02:52 +00:00
|
|
|
FN_PREFIX(cnv2_mainloop_ivybridge_asm):
|
|
|
|
sub rsp, 48
|
|
|
|
mov rcx, rdi
|
2019-03-04 06:31:25 +00:00
|
|
|
#include "cn2/cnv2_main_loop_ivybridge.inc"
|
2018-10-05 12:02:52 +00:00
|
|
|
add rsp, 48
|
|
|
|
ret 0
|
2019-03-04 06:31:25 +00:00
|
|
|
mov eax, 3735929054
|
2018-10-05 12:02:52 +00:00
|
|
|
|
2019-03-04 06:31:25 +00:00
|
|
|
ALIGN(64)
|
2018-10-05 12:02:52 +00:00
|
|
|
FN_PREFIX(cnv2_mainloop_ryzen_asm):
|
|
|
|
sub rsp, 48
|
|
|
|
mov rcx, rdi
|
2019-03-04 06:31:25 +00:00
|
|
|
#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
|
2019-03-04 06:31:25 +00:00
|
|
|
mov eax, 3735929054
|
2018-10-05 12:02:52 +00:00
|
|
|
|
2019-03-04 06:31:25 +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
|
2019-03-04 06:31:25 +00:00
|
|
|
#include "cn2/cnv2_double_main_loop_sandybridge.inc"
|
2018-10-05 12:02:52 +00:00
|
|
|
add rsp, 48
|
|
|
|
ret 0
|
2019-03-04 06:31:25 +00:00
|
|
|
mov eax, 3735929054
|