Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 388 for alignment (0.26 sec)

  1. src/cmd/compile/internal/ssa/_gen/MIPS.rules

    (Zero [1] ptr mem) => (MOVBstore ptr (MOVWconst [0]) mem)
    (Zero [2] {t} ptr mem) && t.Alignment()%2 == 0 =>
    	(MOVHstore ptr (MOVWconst [0]) mem)
    (Zero [2] ptr mem) =>
    	(MOVBstore [1] ptr (MOVWconst [0])
    		(MOVBstore [0] ptr (MOVWconst [0]) mem))
    (Zero [4] {t} ptr mem) && t.Alignment()%4 == 0 =>
    	(MOVWstore ptr (MOVWconst [0]) mem)
    (Zero [4] {t} ptr mem) && t.Alignment()%2 == 0 =>
    	(MOVHstore [2] ptr (MOVWconst [0])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 14:43:03 UTC 2023
    - 35.3K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types/size.go

    		panic("bad package prefix")
    	}
    	return p.Prefix == "sync/atomic" || p.Prefix == "internal/runtime/atomic"
    }
    
    // CalcSize calculates and stores the size, alignment, eq/hash algorithm,
    // and ptrBytes for t.
    // If CalcSizeDisabled is set, and the size/alignment
    // have not already been calculated, it calls Fatal.
    // This is used to prevent data races in the back end.
    func CalcSize(t *Type) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 15K bytes
    - Viewed (0)
  3. src/cmd/vendor/github.com/google/pprof/internal/elfexec/elfexec.go

    func parseNotes(reader io.Reader, alignment int, order binary.ByteOrder) ([]elfNote, error) {
    	r := bufio.NewReader(reader)
    
    	// padding returns the number of bytes required to pad the given size to an
    	// alignment boundary.
    	padding := func(size int) int {
    		return ((size + (alignment - 1)) &^ (alignment - 1)) - size
    	}
    
    	var notes []elfNote
    	for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  4. src/cmd/internal/obj/util.go

    // AlignmentPadding bytes to add to align code as requested.
    // Alignment is restricted to powers of 2 between 8 and 2048 inclusive.
    //
    // pc_: current offset in function, in bytes
    // p:  a PCALIGN or PCALIGNMAX prog
    // ctxt: the context, for current function
    // cursym: current function being assembled
    // returns number of bytes of padding needed,
    // updates minimum alignment for the function.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:44:14 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  5. src/go/printer/testdata/declarations.input

    	"bar"  // a comment
    )
    
    // comments + renames
    import (
           "unrenamed" // a comment
           renamed "renameMe"
           . "io" /* a comment */
           _ "io/ioutil" // a comment
           "io" // testing alignment
           . "os"
           // a comment
    )
    
    // a case that caused problems in the past (comment placement)
    import (
    	. "fmt"
    	"io"
    	"malloc"	// for the malloc count test only
    	"math"
    	"strings"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 13 22:24:31 UTC 2021
    - 16.5K bytes
    - Viewed (0)
  6. src/internal/syscall/windows/syscall_windows.go

    	FileAttributes uint32
    
    	// Pad out to 8-byte alignment.
    	//
    	// Without this padding, TestChmod fails due to an argument validation error
    	// in SetFileInformationByHandle on windows/386.
    	//
    	// https://learn.microsoft.com/en-us/cpp/build/reference/zp-struct-member-alignment?view=msvc-170
    	// says that “The C/C++ headers in the Windows SDK assume the platform's
    	// default alignment is used.” What we see here is padding rather than
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 22:55:25 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  7. src/cmd/internal/obj/ppc64/doc.go

    where better alignment (8 or 16 instead of 4) might be helpful. This directive
    exists in PPC64 assembler and is frequently used by PPC64 assembler writers.
    
    PCALIGN $16
    PCALIGN $8
    
    By default, functions in Go are aligned to 16 bytes, as is the case in all
    other compilers for PPC64. If there is a PCALIGN directive requesting alignment
    greater than 16, then the alignment of the containing function must be
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 21 16:47:45 UTC 2023
    - 11.3K bytes
    - Viewed (0)
  8. pkg/kubelet/cm/devicemanager/topology_hints_test.go

    		}
    
    		alignment := make(map[int]int)
    		if m.deviceHasTopologyAlignment(tc.resource) {
    			for d := range allocated {
    				if m.allDevices[tc.resource][d].Topology != nil {
    					alignment[int(m.allDevices[tc.resource][d].Topology.Nodes[0].ID)]++
    				}
    			}
    		}
    
    		if !reflect.DeepEqual(alignment, tc.expectedAlignment) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 27 13:02:15 UTC 2023
    - 47.5K bytes
    - Viewed (0)
  9. src/go/printer/testdata/declarations.golden

    	"bar"
    	"foo"	// a comment
    	"bar"	// a comment
    )
    
    // comments + renames
    import (
    	"unrenamed"	// a comment
    	renamed "renameMe"
    	. "io"		/* a comment */
    	_ "io/ioutil"	// a comment
    	"io"		// testing alignment
    	. "os"
    	// a comment
    )
    
    // a case that caused problems in the past (comment placement)
    import (
    	. "fmt"
    	"io"
    	"malloc"	// for the malloc count test only
    	"math"
    	"strings"
    	"testing"
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 13 22:24:31 UTC 2021
    - 16.2K bytes
    - Viewed (0)
  10. src/reflect/abi.go

    		a.fregs++
    	}
    	return true
    }
    
    // stackAssign reserves space for one value that is "size" bytes
    // large with alignment "alignment" to the stack.
    //
    // Should not be called directly; use addArg instead.
    func (a *abiSeq) stackAssign(size, alignment uintptr) {
    	a.stackBytes = align(a.stackBytes, alignment)
    	a.steps = append(a.steps, abiStep{
    		kind:   abiStepStack,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:08:32 UTC 2024
    - 15K bytes
    - Viewed (0)
Back to top