Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 64 for alignof (0.23 sec)

  1. android/guava/src/com/google/common/primitives/UnsignedBytes.java

          static final int BYTE_ARRAY_BASE_OFFSET = theUnsafe.arrayBaseOffset(byte[].class);
    
          static {
            // fall back to the safer pure java implementation unless we're in
            // a 64-bit JVM with an 8-byte aligned field offset.
            if (!("64".equals(System.getProperty("sun.arch.data.model"))
                && (BYTE_ARRAY_BASE_OFFSET % 8) == 0
                // sanity check - this should never fail
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  2. src/internal/trace/testtrace/validation.go

    				e.Errorf("label for invalid thread %d", id)
    			}
    		}
    	case trace.EventStackSample:
    		// Not much to check here. It's basically a sched context and a stack.
    		// The sched context is also not guaranteed to align with other events.
    		// We already checked the stack above.
    	case trace.EventStateTransition:
    		// Validate state transitions.
    		//
    		// TODO(mknyszek): A lot of logic is duplicated between goroutines and procs.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  3. pkg/kube/util.go

    // We allow an additional 2x buffer, as it is still fairly cheap (6mb)
    const MaxRequestBodyBytes = int64(6 * 1024 * 1024)
    
    // HTTPConfigReader is reads an HTTP request, imposing size restrictions aligned with Kubernetes limits
    func HTTPConfigReader(req *http.Request) ([]byte, error) {
    	defer req.Body.Close()
    	lr := &io.LimitedReader{
    		R: req.Body,
    		N: MaxRequestBodyBytes + 1,
    	}
    	data, err := io.ReadAll(lr)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 05:10:23 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  4. src/cmd/link/internal/ld/deadcode.go

    	case abi.Struct: // reflect.structType
    		off += 4 * arch.PtrSize
    	case abi.Pointer: // reflect.ptrType
    		off += arch.PtrSize
    	case abi.Func: // reflect.funcType
    		off += arch.PtrSize // 4 bytes, pointer aligned
    	case abi.Slice: // reflect.sliceType
    		off += arch.PtrSize
    	case abi.Array: // reflect.arrayType
    		off += 3 * arch.PtrSize
    	case abi.Chan: // reflect.chanType
    		off += 2 * arch.PtrSize
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 14:52:41 UTC 2024
    - 19K bytes
    - Viewed (0)
  5. src/internal/poll/fd_unix.go

    // even on 64-bit systems.
    // The same is true of socket implementations on many systems.
    // See golang.org/issue/7812 and golang.org/issue/16266.
    // Use 1GB instead of, say, 2GB-1, to keep subsequent reads aligned.
    const maxRW = 1 << 30
    
    // Read implements io.Reader.
    func (fd *FD) Read(p []byte) (int, error) {
    	if err := fd.readLock(); err != nil {
    		return 0, err
    	}
    	defer fd.readUnlock()
    	if len(p) == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 04:09:44 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  6. src/runtime/race_ppc64le.s

    // Third, in long-term it will allow to remove cyclic runtime/race dependency on cmd/go.
    
    // A brief recap of the ppc64le calling convention.
    // Arguments are passed in R3, R4, R5 ...
    // SP must be 16-byte aligned.
    
    // Note that for ppc64x, LLVM follows the standard ABI and
    // expects arguments in registers, so these functions move
    // the arguments from storage to the registers expected
    // by the ABI.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:37:29 UTC 2024
    - 17K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/block.go

    	// Fatal if not BranchUnknown and len(Succs) > 2.
    	Likely BranchPrediction
    
    	// After flagalloc, records whether flags are live at the end of the block.
    	FlagsLiveAtEnd bool
    
    	// A block that would be good to align (according to the optimizer's guesses)
    	Hotness Hotness
    
    	// Subsequent blocks, if any. The number and order depend on the block kind.
    	Succs []Edge
    
    	// Inverse of successors.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:44:14 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  8. src/syscall/syscall_linux_test.go

    		strconv.FormatUint(uint64(uid), 10)
    	if got != want {
    		if filesystemIsNoSUID(tmpBinary) {
    			t.Skip("skipping test when temp dir is mounted nosuid")
    		}
    		// formatted so the values are aligned for easier comparison
    		t.Errorf("expected %s,\ngot      %s", want, got)
    	}
    }
    
    // filesystemIsNoSUID reports whether the filesystem for the given
    // path is mounted nosuid.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 23K bytes
    - Viewed (0)
  9. src/crypto/aes/asm_ppc64x.s

    	LVX	(PTR), ESPERM
    	ADD	$0x10, PTR
    #else
    	MOVD	$·rcon+0x10(SB), PTR // PTR points to rcon addr (skipping permute vector)
    #endif
    
    	// Get key from memory and write aligned into VR
    	P8_LXVB16X(INP, R0, IN0)
    	ADD	$0x10, INP, INP
    	MOVD	$0x20, TEMP
    
    	CMPW	ROUNDS, $12
    	LVX	(PTR)(R0), RCON    // lvx   4,0,6      Load first 16 bytes into RCON
    	LVX	(PTR)(TEMP), MASK
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 18:05:32 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  10. src/runtime/runtime1.go

    	for i := int32(0); i < n; i++ {
    		envs[i] = gostring(argv_index(argv, argc+1+i))
    	}
    }
    
    func environ() []string {
    	return envs
    }
    
    // TODO: These should be locals in testAtomic64, but we don't 8-byte
    // align stack variables on 386.
    var test_z64, test_x64 uint64
    
    func testAtomic64() {
    	test_z64 = 42
    	test_x64 = 0
    	if atomic.Cas64(&test_z64, test_x64, 1) {
    		throw("cas64 failed")
    	}
    	if test_x64 != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 19.3K bytes
    - Viewed (0)
Back to top