github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/internal/abi/abi_amd64.go (about)

     1  // Copyright 2020 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  package abi
     6  
     7  const (
     8  
     9  	// RAX, RBX, RCX, RDI, RSI, R8, R9, R10, R11.
    10  	IntArgRegs = 9
    11  
    12  	// X0 -> X14.
    13  	FloatArgRegs = 15
    14  
    15  	// We use SSE2 registers which support 64-bit float operations.
    16  	EffectiveFloatRegSize = 8
    17  )