2019-02-04 16:07:00 +00:00
|
|
|
.intel_syntax noprefix
|
|
|
|
#if defined(__APPLE__)
|
|
|
|
.text
|
|
|
|
#else
|
|
|
|
.section .text
|
|
|
|
#endif
|
|
|
|
#if defined(__WIN32__) || defined(__APPLE__)
|
|
|
|
#define DECL(x) _##x
|
|
|
|
#else
|
|
|
|
#define DECL(x) x
|
|
|
|
#endif
|
|
|
|
|
2019-03-16 23:57:48 +00:00
|
|
|
#include "configuration.h"
|
|
|
|
|
2019-02-04 16:07:00 +00:00
|
|
|
.global DECL(squareHash)
|
2019-03-16 23:57:48 +00:00
|
|
|
.global DECL(initBlock)
|
2019-02-04 16:07:00 +00:00
|
|
|
|
|
|
|
DECL(squareHash):
|
2019-02-18 07:44:28 +00:00
|
|
|
mov rcx, rdi
|
2019-02-04 16:07:00 +00:00
|
|
|
#include "asm/squareHash.inc"
|
2019-03-16 23:57:48 +00:00
|
|
|
|
|
|
|
DECL(initBlock):
|
|
|
|
push rbx
|
|
|
|
push rbp
|
|
|
|
push r12
|
|
|
|
push r13
|
|
|
|
push r14
|
|
|
|
push r15
|
|
|
|
mov rdi, qword ptr [rdi]
|
|
|
|
mov rbp, rsi
|
|
|
|
mov r8, rdx
|
|
|
|
mov rsi, rcx
|
2019-03-19 23:36:12 +00:00
|
|
|
#define squareHash DECL(squareHash)
|
2019-03-16 23:57:48 +00:00
|
|
|
#include "asm/initBlock.inc"
|
|
|
|
pop r15
|
|
|
|
pop r14
|
|
|
|
pop r13
|
|
|
|
pop r12
|
|
|
|
pop rbp
|
|
|
|
pop rbx
|
|
|
|
ret
|