github.com/primecitizens/pcz/std@v0.2.1/runtime/duff_s390x.s (about) 1 // SPDX-License-Identifier: Apache-2.0 2 // Copyright 2023 The Prime Citizens 3 // 4 // Copyright 2019 The Go Authors. All rights reserved. 5 // Use of this source code is governed by a BSD-style 6 // license that can be found in the LICENSE file. 7 8 //go:build pcz && s390x 9 10 #include "textflag.h" 11 12 // s390x can copy/zero 1-256 bytes with a single instruction, 13 // so there's no need for these, except to satisfy the prototypes 14 // in stubs.go. 15 16 TEXT runtime·duffzero(SB),NOSPLIT|NOFRAME,$0-0 17 MOVD $0, 2(R0) 18 RET 19 20 TEXT runtime·duffcopy(SB),NOSPLIT|NOFRAME,$0-0 21 MOVD $0, 2(R0) 22 RET