2026-08-02 00:18:00 +02:00
|
|
|
// Copyright (c) 2026 Petr Balvín <opensource@petrbalvin.org> (https://petrbalvin.org)
|
|
|
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
|
|
|
|
|
|
#include "textflag.h"
|
|
|
|
|
|
|
|
|
|
// func add(a, b int64) int64
|
|
|
|
|
TEXT ·add(SB), NOSPLIT, $0-24
|
2026-09-17 20:33:18 +02:00
|
|
|
MOV a+0(FP), X10
|
|
|
|
|
MOV b+8(FP), X11
|
|
|
|
|
ADD X11, X10, X10
|
|
|
|
|
MOV X10, ret+16(FP)
|
|
|
|
|
RET
|