1
0
mirror of https://github.com/chai2010/advanced-go-programming-book.git synced 2025-05-24 04:22:22 +00:00
2018-12-16 12:37:35 +08:00

12 lines
339 B
ArmAsm

// Copyright © 2017 ChaiShushan <chaishushan{AT}gmail.com>.
// License: https://creativecommons.org/licenses/by-nc-sa/4.0/
TEXT ·SumVec+0(SB), $0
MOVQ vec1+0(FP), BX // Move the first vector into BX
MOVQ vec2+24(FP), CX // Move the second vector into BX
MOVUPS (BX), X0
MOVUPS (CX), X1
ADDPS X0, X1
MOVUPS X1, result+48(FP)
RET