squareHash.S 552 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. .intel_syntax noprefix
  2. #if defined(__APPLE__)
  3. .text
  4. #else
  5. .section .text
  6. #endif
  7. #if defined(__WIN32__) || defined(__APPLE__)
  8. #define DECL(x) _##x
  9. #else
  10. #define DECL(x) x
  11. #endif
  12. #include "configuration.h"
  13. .global DECL(squareHash)
  14. .global DECL(initBlock)
  15. DECL(squareHash):
  16. mov rcx, rdi
  17. #include "asm/squareHash.inc"
  18. DECL(initBlock):
  19. push rbx
  20. push rbp
  21. push r12
  22. push r13
  23. push r14
  24. push r15
  25. mov rdi, qword ptr [rdi]
  26. mov rbp, rsi
  27. mov r8, rdx
  28. mov rsi, rcx
  29. #include "asm/initBlock.inc"
  30. pop r15
  31. pop r14
  32. pop r13
  33. pop r12
  34. pop rbp
  35. pop rbx
  36. ret