Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/AnonR/anonr.TX.../lib/golang/src/runtime/cgo
File: abi_loong64.h
// Copyright 2022 The Go Authors. All rights reserved.
[0] Fix | Delete
// Use of this source code is governed by a BSD-style
[1] Fix | Delete
// license that can be found in the LICENSE file.
[2] Fix | Delete
[3] Fix | Delete
// Macros for transitioning from the host ABI to Go ABI0.
[4] Fix | Delete
//
[5] Fix | Delete
// These macros save and restore the callee-saved registers
[6] Fix | Delete
// from the stack, but they don't adjust stack pointer, so
[7] Fix | Delete
// the user should prepare stack space in advance.
[8] Fix | Delete
// SAVE_R22_TO_R31(offset) saves R22 ~ R31 to the stack space
[9] Fix | Delete
// of ((offset)+0*8)(R3) ~ ((offset)+9*8)(R3).
[10] Fix | Delete
//
[11] Fix | Delete
// SAVE_F24_TO_F31(offset) saves F24 ~ F31 to the stack space
[12] Fix | Delete
// of ((offset)+0*8)(R3) ~ ((offset)+7*8)(R3).
[13] Fix | Delete
//
[14] Fix | Delete
// Note: g is R22
[15] Fix | Delete
[16] Fix | Delete
#define SAVE_R22_TO_R31(offset) \
[17] Fix | Delete
MOVV g, ((offset)+(0*8))(R3) \
[18] Fix | Delete
MOVV R23, ((offset)+(1*8))(R3) \
[19] Fix | Delete
MOVV R24, ((offset)+(2*8))(R3) \
[20] Fix | Delete
MOVV R25, ((offset)+(3*8))(R3) \
[21] Fix | Delete
MOVV R26, ((offset)+(4*8))(R3) \
[22] Fix | Delete
MOVV R27, ((offset)+(5*8))(R3) \
[23] Fix | Delete
MOVV R28, ((offset)+(6*8))(R3) \
[24] Fix | Delete
MOVV R29, ((offset)+(7*8))(R3) \
[25] Fix | Delete
MOVV R30, ((offset)+(8*8))(R3) \
[26] Fix | Delete
MOVV R31, ((offset)+(9*8))(R3)
[27] Fix | Delete
[28] Fix | Delete
#define SAVE_F24_TO_F31(offset) \
[29] Fix | Delete
MOVD F24, ((offset)+(0*8))(R3) \
[30] Fix | Delete
MOVD F25, ((offset)+(1*8))(R3) \
[31] Fix | Delete
MOVD F26, ((offset)+(2*8))(R3) \
[32] Fix | Delete
MOVD F27, ((offset)+(3*8))(R3) \
[33] Fix | Delete
MOVD F28, ((offset)+(4*8))(R3) \
[34] Fix | Delete
MOVD F29, ((offset)+(5*8))(R3) \
[35] Fix | Delete
MOVD F30, ((offset)+(6*8))(R3) \
[36] Fix | Delete
MOVD F31, ((offset)+(7*8))(R3)
[37] Fix | Delete
[38] Fix | Delete
#define RESTORE_R22_TO_R31(offset) \
[39] Fix | Delete
MOVV ((offset)+(0*8))(R3), g \
[40] Fix | Delete
MOVV ((offset)+(1*8))(R3), R23 \
[41] Fix | Delete
MOVV ((offset)+(2*8))(R3), R24 \
[42] Fix | Delete
MOVV ((offset)+(3*8))(R3), R25 \
[43] Fix | Delete
MOVV ((offset)+(4*8))(R3), R26 \
[44] Fix | Delete
MOVV ((offset)+(5*8))(R3), R27 \
[45] Fix | Delete
MOVV ((offset)+(6*8))(R3), R28 \
[46] Fix | Delete
MOVV ((offset)+(7*8))(R3), R29 \
[47] Fix | Delete
MOVV ((offset)+(8*8))(R3), R30 \
[48] Fix | Delete
MOVV ((offset)+(9*8))(R3), R31
[49] Fix | Delete
[50] Fix | Delete
#define RESTORE_F24_TO_F31(offset) \
[51] Fix | Delete
MOVD ((offset)+(0*8))(R3), F24 \
[52] Fix | Delete
MOVD ((offset)+(1*8))(R3), F25 \
[53] Fix | Delete
MOVD ((offset)+(2*8))(R3), F26 \
[54] Fix | Delete
MOVD ((offset)+(3*8))(R3), F27 \
[55] Fix | Delete
MOVD ((offset)+(4*8))(R3), F28 \
[56] Fix | Delete
MOVD ((offset)+(5*8))(R3), F29 \
[57] Fix | Delete
MOVD ((offset)+(6*8))(R3), F30 \
[58] Fix | Delete
MOVD ((offset)+(7*8))(R3), F31
[59] Fix | Delete
[60] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function