Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 136 for aligned (0.14 sec)

  1. src/cmd/compile/internal/walk/order.go

    		// Unsafe cast through memory.
    		// We'll need to do a load with type kt. Create a temporary of type kt to
    		// ensure sufficient alignment. nt may be under-aligned.
    		if uint8(kt.Alignment()) < uint8(nt.Alignment()) {
    			base.Fatalf("mapKeyTemp: key type is not sufficiently aligned, kt=%v nt=%v", kt, nt)
    		}
    		tmp := o.newTemp(kt, true)
    		// *(*nt)(&tmp) = n
    		var e ir.Node = typecheck.NodAddr(tmp)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 02:00:33 UTC 2024
    - 42.7K bytes
    - Viewed (0)
  2. src/cmd/internal/obj/objfile.go

    			// These are just bytes, or varints.
    			align = 1
    		case strings.HasPrefix(name, "gclocals·"):
    			// It has 32-bit fields.
    			align = 4
    		default:
    			switch {
    			case w.ctxt.Arch.PtrSize == 8 && s.Size%8 == 0:
    				align = 8
    			case s.Size%4 == 0:
    				align = 4
    			case s.Size%2 == 0:
    				align = 2
    			default:
    				align = 1
    			}
    		}
    	}
    	if s.Size > cutoff {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 24K bytes
    - Viewed (0)
  3. src/go/types/infer.go

    		defer func() {
    			assert(inferred == nil || len(inferred) == len(tparams) && !containsNil(inferred))
    		}()
    	}
    
    	if traceInference {
    		check.dump("== infer : %s%s ➞ %s", tparams, params, targs) // aligned with rename print below
    		defer func() {
    			check.dump("=> %s ➞ %s\n", tparams, inferred)
    		}()
    	}
    
    	// There must be at least one type parameter, and no more type arguments than type parameters.
    	n := len(tparams)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 13:54:20 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  4. src/cmd/go/internal/load/test.go

    		// but not RawImports (because they were not in the source code).
    		// We insert TestImports, imports, and rawTestImports at the start of
    		// these lists to preserve the alignment.
    		// Note that p.Internal.Imports may not be aligned with p.Imports/p.Internal.RawImports,
    		// but we insert at the beginning there too just for consistency.
    		ptest.Imports = str.StringList(p.TestImports, p.Imports)
    		ptest.Internal.Imports = append(imports, p.Internal.Imports...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 14:01:23 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/infer.go

    		defer func() {
    			assert(inferred == nil || len(inferred) == len(tparams) && !containsNil(inferred))
    		}()
    	}
    
    	if traceInference {
    		check.dump("== infer : %s%s ➞ %s", tparams, params, targs) // aligned with rename print below
    		defer func() {
    			check.dump("=> %s ➞ %s\n", tparams, inferred)
    		}()
    	}
    
    	// There must be at least one type parameter, and no more type arguments than type parameters.
    	n := len(tparams)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 13:54:20 UTC 2024
    - 26.4K bytes
    - Viewed (0)
  6. src/archive/tar/reader.go

    	if len(sparseMap) > 0 {
    		paxHdrs[paxGNUSparseMap] = strings.Join(sparseMap, ",")
    	}
    	return paxHdrs, nil
    }
    
    // readHeader reads the next block header and assumes that the underlying reader
    // is already aligned to a block boundary. It returns the raw block of the
    // header in case further processing is required.
    //
    // The err will be set to io.EOF only when one of the following occurs:
    //   - Exactly 0 bytes are read and EOF is hit.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 01:59:14 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  7. src/cmd/internal/obj/link.go

    // for declaring its arch-specific opcodes.
    // Within this subspace, the first arch-specific opcode should be
    // at offset A_ARCHSPECIFIC.
    //
    // Subspaces are aligned to a power of two so opcodes can be masked
    // with AMask and used as compact array indices.
    const (
    	ABase386 = (1 + iota) << 11
    	ABaseARM
    	ABaseAMD64
    	ABasePPC64
    	ABaseARM64
    	ABaseMIPS
    	ABaseLoong64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  8. src/runtime/asm_loong64.s

    	MOVV	(g_sched+gobuf_ctxt)(g), R19
    	BEQ	R19, 2(PC)
    	JAL	runtime·abort(SB)
    	RET
    
    // func asmcgocall(fn, arg unsafe.Pointer) int32
    // Call fn(arg) on the scheduler stack,
    // aligned appropriately for the gcc ABI.
    // See cgocall.go for more details.
    TEXT ·asmcgocall(SB),NOSPLIT,$0-20
    	MOVV	fn+0(FP), R25
    	MOVV	arg+8(FP), R4
    
    	MOVV	R3, R12	// save original stack pointer
    	MOVV	g, R13
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 15:04:25 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  9. src/cmd/vendor/github.com/google/pprof/internal/report/source.go

    			break
    		}
    	}
    	return column
    }
    
    // rightPad pads the input with spaces on the right-hand-side to make it have
    // at least width n. It treats tabs as enough spaces that lead to the next
    // 8-aligned tab-stop.
    func rightPad(s string, n int) string {
    	var str strings.Builder
    
    	// Convert tabs to spaces as we go so padding works regardless of what prefix
    	// is placed before the result.
    	column := 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 31.3K bytes
    - Viewed (0)
  10. src/runtime/os_windows.go

    		print("runtime.preemptM: duplicatehandle failed; errno=", getlasterror(), "\n")
    		throw("runtime.preemptM: duplicatehandle failed")
    	}
    	unlock(&mp.threadLock)
    
    	// Prepare thread context buffer. This must be aligned to 16 bytes.
    	var c *context
    	var cbuf [unsafe.Sizeof(*c) + 15]byte
    	c = (*context)(unsafe.Pointer((uintptr(unsafe.Pointer(&cbuf[15]))) &^ 15))
    	c.contextflags = _CONTEXT_CONTROL
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 22:55:25 UTC 2024
    - 41.5K bytes
    - Viewed (0)
Back to top