mirror of
https://github.com/golang/go
synced 2024-11-20 03:04:40 -07:00
c007ce824d
Preparation was in CL 134570043. This CL contains only the effect of 'hg mv src/pkg/* src'. For more about the move, see golang.org/s/go14nopkg.
22 lines
399 B
ArmAsm
22 lines
399 B
ArmAsm
// Copyright 2014 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
#include "textflag.h"
|
|
|
|
// void runtime·memclr(void*, uintptr)
|
|
TEXT runtime·memclr(SB),NOSPLIT,$0-16
|
|
MOVQ ptr+0(FP), DI
|
|
MOVQ n+8(FP), CX
|
|
MOVQ CX, BX
|
|
ANDQ $7, BX
|
|
SHRQ $3, CX
|
|
MOVQ $0, AX
|
|
CLD
|
|
REP
|
|
STOSQ
|
|
MOVQ BX, CX
|
|
REP
|
|
STOSB
|
|
RET
|