Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 286 for aligned2 (0.29 sec)

  1. src/runtime/memclr_loong64.s

    TEXT runtime·memclrNoHeapPointers<ABIInternal>(SB),NOSPLIT,$0-16
    	ADDV	R4, R5, R6
    
    	// if less than 8 bytes, do one byte at a time
    	SGTU	$8, R5, R8
    	BNE	R8, out
    
    	// do one byte at a time until 8-aligned
    	AND	$7, R4, R8
    	BEQ	R8, words
    	MOVB	R0, (R4)
    	ADDV	$1, R4
    	JMP	-4(PC)
    
    words:
    	// do 8 bytes at a time if there is room
    	ADDV	$-7, R6, R5
    
    	PCALIGN	$16
    	SGTU	R5, R4, R8
    	BEQ	R8, out
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 15:04:25 UTC 2024
    - 766 bytes
    - Viewed (0)
  2. staging/src/k8s.io/cli-runtime/pkg/printers/tabwriter.go

    	tabwriterWidth    = 4
    	tabwriterPadding  = 3
    	tabwriterPadChar  = ' '
    	tabwriterFlags    = tabwriter.RememberWidths
    )
    
    // GetNewTabWriter returns a tabwriter that translates tabbed columns in input into properly aligned text.
    func GetNewTabWriter(output io.Writer) *tabwriter.Writer {
    	return tabwriter.NewWriter(output, tabwriterMinWidth, tabwriterWidth, tabwriterPadding, tabwriterPadChar, tabwriterFlags)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 23 06:45:08 UTC 2019
    - 1.1K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/sys/unix/sockcmsg_unix_other.go

    	case "aix":
    		// There is no alignment on AIX.
    		salign = 1
    	case "darwin", "ios", "illumos", "solaris":
    		// NOTE: It seems like 64-bit Darwin, Illumos and Solaris
    		// kernels still require 32-bit aligned access to network
    		// subsystem.
    		if SizeofPtr == 8 {
    			salign = 4
    		}
    	case "netbsd", "openbsd":
    		// NetBSD and OpenBSD armv7 require 64-bit alignment.
    		if runtime.GOARCH == "arm" {
    			salign = 8
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  4. src/runtime/malloc_test.go

    	// nothing else allocates from it.
    	runtime.Acquirem()
    
    	// Make 1-byte allocations until we get a fresh tiny slot.
    	aligned := false
    	for i := 0; i < 16; i++ {
    		x := runtime.Escape(new(byte))
    		if uintptr(unsafe.Pointer(x))&0xf == 0xf {
    			aligned = true
    			break
    		}
    	}
    	if !aligned {
    		runtime.Releasem()
    		t.Fatal("unable to get a fresh tiny slot")
    	}
    
    	// Create a 4-byte object so that the current
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:29 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  5. test/fixedbugs/issue44739.go

    // issue 44739: cmd/compile: incorrect offset in MOVD
    // load/store on ppc64/ppc64le causes assembler error.
    
    // Test other 8 byte loads and stores where the
    // compile time offset is not aligned to 8, as
    // well as cases where the offset is not known
    // until link time (e.g. gostrings).
    
    package main
    
    import (
    	"fmt"
    )
    
    type T struct {
    	x [4]byte
    	y [8]byte
    }
    
    var st T
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 10 19:33:23 UTC 2021
    - 1.1K bytes
    - Viewed (0)
  6. test/fixedbugs/issue24799.go

    package main
    
    import (
            "fmt"
    )
    
    type Level string
    
    // The following are all go.strings. A link time error can
    // occur if an 8 byte load is used to load a go.string that is
    // not aligned to 4 bytes due to the type of relocation that
    // is generated for the instruction. A fix was made to avoid
    // generating an instruction with DS relocation for go.strings
    // since their alignment is not known until link time. 
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 20 16:16:47 UTC 2018
    - 1.4K bytes
    - Viewed (0)
  7. src/math/big/example_rat_test.go

    	for i := 1; i <= 15; i++ {
    		r := recur(0, int64(i))
    
    		// Print r both as a fraction and as a floating-point number.
    		// Since big.Rat implements fmt.Formatter, we can use %-13s to
    		// get a left-aligned string representation of the fraction.
    		fmt.Printf("%-13s = %s\n", r, r.FloatString(8))
    	}
    
    	// Output:
    	// 2/1           = 2.00000000
    	// 3/1           = 3.00000000
    	// 8/3           = 2.66666667
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  8. src/go/types/gcsizes.go

    	case *Struct:
    		if len(t.fields) == 0 && _IsSyncAtomicAlign64(T) {
    			// Special case: sync/atomic.align64 is an
    			// empty struct we recognize as a signal that
    			// the struct it contains must be
    			// 64-bit-aligned.
    			//
    			// This logic is equivalent to the logic in
    			// cmd/compile/internal/types/size.go:calcStructOffset
    			return 8
    		}
    
    		// spec: "For a variable x of struct type: unsafe.Alignof(x)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  9. src/runtime/mem_linux.go

    		// The Linux implementation requires that the address
    		// addr be page-aligned, and allows length to be zero.
    		throw("unaligned sysNoHugePageOS")
    	}
    	madvise(v, n, _MADV_NOHUGEPAGE)
    }
    
    func sysHugePageCollapseOS(v unsafe.Pointer, n uintptr) {
    	if uintptr(v)&(physPageSize-1) != 0 {
    		// The Linux implementation requires that the address
    		// addr be page-aligned, and allows length to be zero.
    		throw("unaligned sysHugePageCollapseOS")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 5K bytes
    - Viewed (0)
  10. src/internal/bytealg/compare_loong64.s

    entry:
    	ADDV	R4, R14, R12	// R6 start of a, R14 end of a
    	BEQ	R4, R12, samebytes // length is 0
    
    	SRLV	$4, R14		// R14 is number of chunks
    	BEQ	R0, R14, byte_loop
    
    	// make sure both a and b are aligned.
    	OR	R4, R6, R15
    	AND	$7, R15
    	BNE	R0, R15, byte_loop
    
    	PCALIGN	$16
    chunk16_loop:
    	BEQ	R0, R14, byte_loop
    	MOVV	(R4), R8
    	MOVV	(R6), R9
    	BNE	R8, R9, byte_loop
    	MOVV	8(R4), R16
    	MOVV	8(R6), R17
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 15:04:25 UTC 2024
    - 1.7K bytes
    - Viewed (0)
Back to top