Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 464 for rptr (1.37 sec)

  1. test/devirt.go

    type Valuer interface {
    	Value() int
    }
    
    type indirectiface struct {
    	a, b, c int
    }
    
    func (i indirectiface) Value() int {
    	return i.a + i.b + i.c
    }
    
    func main() {
    	var r Valuer
    	rptr := &real{value: 3}
    	r = rptr
    
    	if r.Value() != 3 { // ERROR "de-virtualizing call$"
    		panic("not 3")
    	}
    
    	r = indirectiface{3, 4, 5}
    	if r.Value() != 12 { // ERROR "de-virtualizing call$"
    		panic("not 12")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 09 16:10:20 UTC 2021
    - 574 bytes
    - Viewed (0)
  2. src/crypto/internal/nistec/p256_asm_amd64.s

    	MOVOU X3, (16*3)(AX)
    	MOVOU X4, (16*4)(AX)
    	MOVOU X5, (16*5)(AX)
    	MOVQ $0, rptr
    
    	RET
    #undef x1in
    #undef y1in
    #undef z1in
    #undef x2in
    #undef y2in
    #undef xout
    #undef yout
    #undef zout
    #undef s2
    #undef z1sqr
    #undef h
    #undef r
    #undef hsqr
    #undef rsqr
    #undef hcub
    #undef rptr
    #undef sel_save
    #undef zero_save
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 39.8K bytes
    - Viewed (0)
  3. src/runtime/slice_test.go

    				for j := 0; j < C; j++ {
    					sByte = append(sByte, 0x77)
    				}
    			}
    		})
    
    		b.Run("1Ptr", func(b *testing.B) {
    			for i := 0; i < b.N; i++ {
    				s1Ptr = make([]uintptr, C)
    				for j := 0; j < C; j++ {
    					s1Ptr = append(s1Ptr, 0x77)
    				}
    			}
    		})
    
    		b.Run("2Ptr", func(b *testing.B) {
    			for i := 0; i < b.N; i++ {
    				s2Ptr = make([][2]uintptr, C)
    				for j := 0; j < C; j++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 17 09:45:44 UTC 2020
    - 10.3K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssagen/ssa.go

    	// zero out the delta.
    	mask := s.newValue1(ssa.OpSlicemask, types.Types[types.TINT], rcap)
    	delta = s.newValue2(andOp, types.Types[types.TINT], delta, mask)
    
    	// Compute rptr = ptr + delta.
    	rptr := s.newValue2(ssa.OpAddPtr, ptr.Type, ptr, delta)
    
    	return rptr, rlen, rcap
    }
    
    type u642fcvtTab struct {
    	leq, cvt2F, and, rsh, or, add ssa.Op
    	one                           func(*state, *types.Type, int64) *ssa.Value
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 284.9K bytes
    - Viewed (0)
  5. src/encoding/xml/read_test.go

    }
    
    const (
    	emptyXML = `
    <Parent>
        <I></I>
        <IPtr></IPtr>
        <Is></Is>
        <IPtrs></IPtrs>
        <F></F>
        <FPtr></FPtr>
        <Fs></Fs>
        <FPtrs></FPtrs>
        <B></B>
        <BPtr></BPtr>
        <Bs></Bs>
        <BPtrs></BPtrs>
        <Bytes></Bytes>
        <BytesPtr></BytesPtr>
        <S></S>
        <SPtr></SPtr>
        <Ss></Ss>
        <SPtrs></SPtrs>
        <MyI></MyI>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 29.1K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/conversion/queryparams/convert_test.go

    		},
    		{
    			input: &baz{
    				Ptr:  intp(5),
    				Bptr: boolp(true),
    			},
    			expected: url.Values{"ptr": {"5"}, "bptr": {"true"}},
    		},
    		{
    			input: &baz{
    				Bptr: boolp(true),
    			},
    			expected: url.Values{"ptr": {""}, "bptr": {"true"}},
    		},
    		{
    			input: &baz{
    				Ptr: intp(5),
    			},
    			expected: url.Values{"ptr": {"5"}},
    		},
    		{
    			input: &childStructs{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 03 07:01:02 UTC 2018
    - 6.2K bytes
    - Viewed (0)
  7. src/runtime/map_faststr.go

    	if h.B == 0 {
    		// One-bucket table.
    		b := (*bmap)(h.buckets)
    		if key.len < 32 {
    			// short key, doing lots of comparisons is ok
    			for i, kptr := uintptr(0), b.keys(); i < abi.MapBucketCount; i, kptr = i+1, add(kptr, 2*goarch.PtrSize) {
    				k := (*stringStruct)(kptr)
    				if k.len != key.len || isEmpty(b.tophash[i]) {
    					if b.tophash[i] == emptyRest {
    						break
    					}
    					continue
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  8. src/runtime/race_ppc64le.s

    	GO_ARGS
    	// void __tsan_go_atomic32_load(ThreadState *thr, uptr cpc, uptr pc, u8 *a);
    	MOVD	$__tsan_go_atomic32_load(SB), R8
    	ADD	$32, R1, R6	// addr of caller's 1st arg
    	BR	racecallatomic<>(SB)
    	RET
    
    TEXT	sync∕atomic·LoadInt64(SB), NOSPLIT, $0-16
    	GO_ARGS
    	// void __tsan_go_atomic64_load(ThreadState *thr, uptr cpc, uptr pc, u8 *a);
    	MOVD	$__tsan_go_atomic64_load(SB), R8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:37:29 UTC 2024
    - 17K bytes
    - Viewed (0)
  9. src/cmd/asm/internal/asm/testdata/loong64enc1.s

    	NEGV	R4, R5			// 05901100
    	SLL	R4, R5			// a5101700
    	SLL	R4, R5, R6		// a6101700
    	SRL	R4, R5			// a5901700
    	SRL	R4, R5, R6	 	// a6901700
    	SRA	R4, R5			// a5101800
    	SRA	R4, R5, R6	 	// a6101800
    	ROTR	R4, R5			// a5101b00
    	ROTR	R4, R5, R6		// a6101b00
    	SLLV	R4, R5			// a5901800
    	SLLV	R4, R5, R6		// a6901800
    	ROTRV	R4, R5			// a5901b00
    	ROTRV	R4, R5, R6		// a6901b00
    	CLO	R4, R5			// 85100000
    	CLZ	R4, R5			// 85140000
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 02:04:54 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/pledge_openbsd.go

    func Pledge(promises, execpromises string) error {
    	if err := pledgeAvailable(); err != nil {
    		return err
    	}
    
    	pptr, err := BytePtrFromString(promises)
    	if err != nil {
    		return err
    	}
    
    	exptr, err := BytePtrFromString(execpromises)
    	if err != nil {
    		return err
    	}
    
    	return pledge(pptr, exptr)
    }
    
    // PledgePromises implements the pledge syscall.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 29 21:28:33 UTC 2023
    - 2.3K bytes
    - Viewed (0)
Back to top