github.com/tcnksm/go@v0.0.0-20141208075154-439b32936367/src/runtime/memclr_ppc64x.s (about) 1 // Copyright 2014 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 // +build ppc64 ppc64le 6 7 #include "textflag.h" 8 9 // void runtime·memclr(void*, uintptr) 10 TEXT runtime·memclr(SB),NOSPLIT,$0-16 11 MOVD ptr+0(FP), R3 12 MOVD n+8(FP), R4 13 CMP R4, $0 14 BEQ done 15 SUB $1, R3 16 MOVD R4, CTR 17 MOVBU R0, 1(R3) 18 BC 25, 0, -1(PC) // bdnz+ $-4 19 done: 20 RETURN