Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 88 for aligned (0.18 sec)

  1. 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)
  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/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)
  7. 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)
  8. 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)
  9. 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)
  10. src/cmd/link/link_test.go

    GLOBL	·alignPcFnAddr(SB),RODATA,$8
    DATA	·alignPcFnAddr(SB)/8,$·alignPc(SB)
    `,
    	"loong64": `
    #include "textflag.h"
    
    TEXT	·alignPc(SB),NOSPLIT, $0-0
    	MOVV	$2, R4
    	PCALIGN	$512
    	MOVV	$3, R5
    	RET
    
    GLOBL	·alignPcFnAddr(SB),RODATA,$8
    DATA	·alignPcFnAddr(SB)/8,$·alignPc(SB)
    `,
    }
    
    // TestFuncAlign verifies that the address of a function can be aligned
    // with a specific value on arm64 and loong64.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 20:26:02 UTC 2024
    - 43.5K bytes
    - Viewed (0)
Back to top