github.com/primecitizens/pcz/std@v0.2.1/core/mem/move_wasm.s (about)

     1  // SPDX-License-Identifier: Apache-2.0
     2  // Copyright 2023 The Prime Citizens
     3  //
     4  // Copyright 2018 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 && wasm
     9  
    10  #include "textflag.h"
    11  
    12  // See memmove Go doc for important implementation constraints.
    13  
    14  // func Move(to, from unsafe.Pointer, n uintptr)
    15  TEXT ·Move(SB), NOSPLIT, $0-24
    16  	MOVD to+0(FP), R0
    17  	MOVD from+8(FP), R1
    18  	MOVD n+16(FP), R2
    19  
    20  	Get R0
    21  	I32WrapI64
    22  	Get R1
    23  	I32WrapI64
    24  	Get R2
    25  	I32WrapI64
    26  	MemoryCopy
    27  	RET