Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 28 for Alignment (0.16 sec)

  1. src/cmd/cgo/gcc.go

    			unionWithPointer[t.Go] = true
    		}
    		t.EnumValues = nil
    		t.Typedef = ""
    		t.C.Set("%s "+dt.Qual, t1.C)
    		return t
    
    	case *dwarf.StructType:
    		// Convert to Go struct, being careful about alignment.
    		// Have to give it a name to simulate C "struct foo" references.
    		tag := dt.StructName
    		if dt.ByteSize < 0 && tag == "" { // opaque unnamed struct - should not be possible
    			break
    		}
    		if tag == "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 97K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types/type.go

    	// Cache of composite types, with this type being the element type.
    	cache struct {
    		ptr   *Type // *T, or nil
    		slice *Type // []T, or nil
    	}
    
    	kind  Kind  // kind of type
    	align uint8 // the required alignment of this type, in bytes (0 means Width and Align have not yet been computed)
    
    	intRegs, floatRegs uint8 // registers needed for ABIInternal
    
    	flags bitset8
    	alg   AlgKind // valid if Align > 0
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 49.5K bytes
    - Viewed (0)
  3. src/runtime/mbitmap.go

    	"runtime/internal/sys"
    	"unsafe"
    )
    
    const (
    	// A malloc header is functionally a single type pointer, but
    	// we need to use 8 here to ensure 8-byte alignment of allocations
    	// on 32-bit platforms. It's wasteful, but a lot of code relies on
    	// 8-byte alignment for 8-byte atomics.
    	mallocHeaderSize = 8
    
    	// The minimum object size that has a malloc header, exclusive.
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 60K bytes
    - Viewed (0)
  4. src/reflect/type.go

    // Two Type values are equal if they represent identical types.
    type Type interface {
    	// Methods applicable to all types.
    
    	// Align returns the alignment in bytes of a value of
    	// this type when allocated in memory.
    	Align() int
    
    	// FieldAlign returns the alignment in bytes of a value of
    	// this type when used as a field in a struct.
    	FieldAlign() int
    
    	// Method returns the i'th method in the type's method set.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 85.5K bytes
    - Viewed (0)
  5. src/runtime/asm_amd64.s

    // Called on a system stack, and there may be no g yet (during needm).
    TEXT ·asmcgocall_no_g(SB),NOSPLIT,$32-16
    	MOVQ	fn+0(FP), AX
    	MOVQ	arg+8(FP), BX
    	MOVQ	SP, DX
    	ANDQ	$~15, SP	// alignment
    	MOVQ	DX, 8(SP)
    	MOVQ	BX, DI		// DI = first argument in AMD64 ABI
    	MOVQ	BX, CX		// CX = first argument in Win64
    	CALL	AX
    	MOVQ	8(SP), DX
    	MOVQ	DX, SP
    	RET
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 11 20:38:24 UTC 2024
    - 60.4K bytes
    - Viewed (0)
  6. src/cmd/internal/obj/loong64/asm.go

    func pcAlignPadLength(ctxt *obj.Link, pc int64, alignedValue int64) int {
    	if !((alignedValue&(alignedValue-1) == 0) && 8 <= alignedValue && alignedValue <= 2048) {
    		ctxt.Diag("alignment value of an instruction must be a power of two and in the range [8, 2048], got %d\n", alignedValue)
    	}
    	return int(-pc & (alignedValue - 1))
    }
    
    var oprange [ALAST & obj.AMask][]Optab
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 02:04:54 UTC 2024
    - 61.8K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/test/integration/ratcheting_test.go

    		}
    		lines[i] = line[len(prefix):]
    	}
    	joined := string(bytes.Join(lines, []byte{'\n'}))
    
    	// Convert rest of tabs to spaces since yaml doesnt like yabs
    	// (assuming 2 space alignment)
    	return strings.ReplaceAll(joined, "\t", "  ")
    }
    
    type applyPatchOperation struct {
    	description string
    	gvr         schema.GroupVersionResource
    	name        string
    	patch       interface{}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 59.5K bytes
    - Viewed (0)
  8. src/cmd/internal/obj/riscv/obj.go

    			alignedValue := p.From.Offset
    			if (alignedValue&(alignedValue-1) != 0) || 4 > alignedValue || alignedValue > 2048 {
    				ctxt.Diag("alignment value of an instruction must be a power of two and in the range [4, 2048], got %d\n", alignedValue)
    			}
    			// Update the current text symbol alignment value.
    			if int32(alignedValue) > cursym.Func().Align {
    				cursym.Func().Align = int32(alignedValue)
    			}
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 07 03:32:27 UTC 2024
    - 77K bytes
    - Viewed (0)
  9. src/runtime/mgcscavenge.go

    // note that findScavengeCandidate searches backwards through the pallocData. As
    // a result, it will return the highest scavenge candidate in address order.
    //
    // min indicates a hard minimum size and alignment for runs of pages. That is,
    // findScavengeCandidate will not return a region smaller than min pages in size,
    // or that is min pages or greater in size but not aligned to min. min must be
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:48:45 UTC 2024
    - 52.3K bytes
    - Viewed (0)
  10. cmd/iam.go

    	inheritedPolicyType = "inherited-policy"
    )
    
    const (
    	maxSVCSessionPolicySize = 4096
    )
    
    // IAMSys - config system.
    type IAMSys struct {
    	// Need to keep them here to keep alignment - ref: https://golang.org/pkg/sync/atomic/#pkg-note-BUG
    	// metrics
    	LastRefreshTimeUnixNano         uint64
    	LastRefreshDurationMilliseconds uint64
    	TotalRefreshSuccesses           uint64
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 71.9K bytes
    - Viewed (0)
Back to top