xorbytes_amd64.s 557 B

1234567891011121314151617181920
  1. // xorbytes_amd64.s - AMD64 SSE2 32 byte XOR.
  2. //
  3. // To the extent possible under law, Yawning Angel has waived all copyright
  4. // and related or neighboring rights to lioness, using the Creative
  5. // Commons "CC0" public domain dedication. See LICENSE or
  6. // <http://creativecommons.org/publicdomain/zero/1.0/> for full details.
  7. TEXT ·xorBytes32Amd64SSE2(SB),4,$0-24
  8. MOVQ dst+0(FP), AX
  9. MOVQ a+8(FP), BX
  10. MOVQ b+16(FP), CX
  11. MOVOU 0(BX), X0
  12. MOVOU 0(CX), X1
  13. MOVOU 16(BX), X2
  14. MOVOU 16(CX), X3
  15. PXOR X1, X0
  16. PXOR X3, X2
  17. MOVOU X0, 0(AX)
  18. MOVOU X2, 16(AX)
  19. RET