Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 22 for Alignment (0.2 sec)

  1. src/syscall/sockcmsg_unix.go

    //go:build unix
    
    // Socket control messages
    
    package syscall
    
    import (
    	"unsafe"
    )
    
    // CmsgLen returns the value to store in the Len field of the [Cmsghdr]
    // structure, taking into account any necessary alignment.
    func CmsgLen(datalen int) int {
    	return cmsgAlignOf(SizeofCmsghdr) + datalen
    }
    
    // CmsgSpace returns the number of bytes an ancillary element with
    // payload of the passed data length occupies.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  2. src/internal/runtime/atomic/atomic_mipsx.go

    	pad   [cpu.CacheLinePadSize - 4]byte
    }
    
    //go:noescape
    func spinLock(state *uint32)
    
    //go:noescape
    func spinUnlock(state *uint32)
    
    //go:nosplit
    func lockAndCheck(addr *uint64) {
    	// ensure 8-byte alignment
    	if uintptr(unsafe.Pointer(addr))&7 != 0 {
    		panicUnaligned()
    	}
    	// force dereference before taking lock
    	_ = *addr
    
    	spinLock(&lock.state)
    }
    
    //go:nosplit
    func unlock() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 20:08:37 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/export_test.go

    func init() {
    	// TODO(mdempsky): Push into types.InitUniverse or typecheck.InitUniverse.
    	types.PtrSize = 8
    	types.RegSize = 8
    	types.MaxWidth = 1 << 50
    
    	base.Ctxt = &obj.Link{Arch: &obj.LinkArch{Arch: &sys.Arch{Alignment: 1, CanMergeLoads: true}}}
    	typecheck.InitUniverse()
    	testTypes.SetTypPtrs()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 21:19:39 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  4. src/runtime/sys_windows_amd64.s

    TEXT runtime·asmstdcall_trampoline<ABIInternal>(SB),NOSPLIT,$0
    	MOVQ	AX, CX
    	JMP	runtime·asmstdcall(SB)
    
    // void runtime·asmstdcall(void *c);
    TEXT runtime·asmstdcall(SB),NOSPLIT,$16
    	MOVQ	SP, AX
    	ANDQ	$~15, SP	// alignment as per Windows requirement
    	MOVQ	AX, 8(SP)
    	MOVQ	CX, 0(SP)	// asmcgocall will put first argument into CX.
    
    	MOVQ	libcall_fn(CX), AX
    	MOVQ	libcall_args(CX), SI
    	MOVQ	libcall_n(CX), CX
    
    	// SetLastError(0).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 19 07:24:08 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  5. README.md

    That said, if you have questions, reach out to us
    [one way or another][communication].
    
    [announcement]: https://cncf.io/news/announcement/2015/07/new-cloud-native-computing-foundation-drive-alignment-among-container
    [Borg]: https://research.google.com/pubs/pub43438.html
    [CNCF]: https://www.cncf.io/about
    [communication]: https://git.k8s.io/community/communication
    [community repository]: https://git.k8s.io/community
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:51 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/unsafeptr/unsafeptr.go

    	case *ast.BinaryExpr:
    		// "It is valid both to add and to subtract offsets from a
    		// pointer in this way. It is also valid to use &^ to round
    		// pointers, usually for alignment."
    		switch x.Op {
    		case token.ADD, token.SUB, token.AND_NOT:
    			// TODO(mdempsky): Match compiler
    			// semantics. ADD allows a pointer on either
    			// side; SUB and AND_NOT don't care about RHS.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  7. src/runtime/cgo/gcc_libinit.c

    // cgo uses -Werror. See #65290.
    #pragma GCC diagnostic ignored "-Wpragmas"
    #pragma GCC diagnostic ignored "-Wunknown-warning-option"
    #pragma GCC diagnostic ignored "-Watomic-alignment"
    
    #include <pthread.h>
    #include <errno.h>
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h> // strerror
    #include <time.h>
    #include "libcgo.h"
    #include "libcgo_unix.h"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 01:07:18 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/mod_tidy_compat_incompatible.txt

    
    # There are two ways for the module author to bring the two into alignment.
    # One is to *explicitly* 'exclude' the version that is already *implicitly*
    # pruned out under 1.17.
    
    go mod edit -exclude=example.com/retract/incompatible@v2.0.0+incompatible
    go list -f $MODFMT -deps ./...
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  9. src/syscall/route_bsd.go

    		// access to routing facilities.
    		salign = 8
    	} else if runtime.GOOS == "freebsd" {
    		// In the case of kern.supported_archs="amd64 i386",
    		// we need to know the underlying kernel's
    		// architecture because the alignment for routing
    		// facilities are set at the build time of the kernel.
    		if freebsdConfArch == "amd64" {
    			salign = 8
    		}
    	}
    	if salen == 0 {
    		return salign
    	}
    	return (salen + salign - 1) & ^(salign - 1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  10. src/internal/runtime/atomic/atomic_test.go

    	// instead of failing silently.
    
    	if unsafe.Sizeof(int(0)) != 4 {
    		t.Skip("test only runs on 32-bit systems")
    	}
    
    	x := make([]uint32, 4)
    	u := unsafe.Pointer(uintptr(unsafe.Pointer(&x[0])) | 4) // force alignment to 4
    
    	up64 := (*uint64)(u) // misaligned
    	p64 := (*int64)(u)   // misaligned
    
    	shouldPanic(t, "Load64", func() { atomic.Load64(up64) })
    	shouldPanic(t, "Loadint64", func() { atomic.Loadint64(p64) })
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.5K bytes
    - Viewed (0)
Back to top