Home | History | Annotate | Download | only in runtime
      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 runtimememclr(void*, uintptr)
     10 TEXT runtimememclr(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 	RET
     21