Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 170 for aligned (0.31 sec)

  1. 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)
  2. 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)
  3. 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)
  4. src/cmd/internal/obj/arm64/asm7.go

    		// 2-byte and 1-byte aligned addresses, so the address of load/store must be aligned.
    		// Also symbols with prefix of "go:string." are Go strings, which will go into
    		// the symbol table, their addresses are not necessary aligned, rule this out.
    		align := int64(1 << sz)
    		if o.a1 == C_ADDR && p.From.Offset%align == 0 && !strings.HasPrefix(p.From.Sym.Name, "go:string.") ||
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:44:14 UTC 2024
    - 201.1K bytes
    - Viewed (0)
  5. 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)
  6. src/sync/atomic/atomic_test.go

    }
    
    func TestAutoAligned64(t *testing.T) {
    	var signed struct {
    		_ uint32
    		i Int64
    	}
    	if o := reflect.TypeOf(&signed).Elem().Field(1).Offset; o != 8 {
    		t.Fatalf("Int64 offset = %d, want 8", o)
    	}
    	if p := reflect.ValueOf(&signed).Elem().Field(1).Addr().Pointer(); p&7 != 0 {
    		t.Fatalf("Int64 pointer = %#x, want 8-aligned", p)
    	}
    
    	var unsigned struct {
    		_ uint32
    		i Uint64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:37:29 UTC 2024
    - 71.4K bytes
    - Viewed (0)
  7. 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)
  8. src/syscall/syscall_linux.go

    	// Peeks returns the word in *data, not as the return value.
    
    	var buf [sizeofPtr]byte
    
    	// Leading edge. PEEKTEXT/PEEKDATA don't require aligned
    	// access (PEEKUSER warns that it might), but if we don't
    	// align our reads, we might straddle an unmapped page
    	// boundary and not get the bytes leading up to the page
    	// boundary.
    	n := 0
    	if addr%sizeofPtr != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:12:46 UTC 2024
    - 35.7K bytes
    - Viewed (0)
  9. src/runtime/export_test.go

    			n++
    		}
    		unlock(&mheap_.lock)
    	})
    	return n
    }
    
    func UserArenaClone[T any](s T) T {
    	return arena_heapify(s).(T)
    }
    
    var AlignUp = alignUp
    
    func BlockUntilEmptyFinalizerQueue(timeout int64) bool {
    	return blockUntilEmptyFinalizerQueue(timeout)
    }
    
    func FrameStartLine(f *Frame) int {
    	return f.startLine
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  10. src/runtime/runtime2.go

    	// stack is owned by this goroutine. It is not on a run queue.
    	// It is assigned an M and a P (g.m and g.m.p are valid).
    	_Grunning // 2
    
    	// _Gsyscall means this goroutine is executing a system call.
    	// It is not executing user code. The stack is owned by this
    	// goroutine. It is not on a run queue. It is assigned an M.
    	_Gsyscall // 3
    
    	// _Gwaiting means this goroutine is blocked in the runtime.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 47.9K bytes
    - Viewed (0)
Back to top