Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 1,686 for intp (0.07 sec)

  1. src/go/internal/gccgoimporter/testdata/pointer.go

    package pointer
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 17 23:03:13 UTC 2015
    - 36 bytes
    - Viewed (0)
  2. test/index.go

    var nhuge int64 = -1<<63
    var nfgood float64 = -2.0
    var nfbad float64 = -2.1
    
    var si []int = make([]int, 10)
    var ai [10]int
    var pai *[10]int = &ai
    
    var sq []quad = make([]quad, 10)
    var aq [10]quad
    var paq *[10]quad = &aq
    
    var sib []int = make([]int, 100000)
    var aib [100000]int
    var paib *[100000]int = &aib
    
    var sqb []quad = make([]quad, 100000)
    var aqb [100000]quad
    var paqb *[100000]quad = &aqb
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Sep 08 17:28:20 UTC 2019
    - 6.4K bytes
    - Viewed (0)
  3. test/gcgort.go

    		},
    		mapPointerKeyT: func() {
    			a := make(map[*int8]int8)
    			for i := 0; i < length; i++ {
    				a[new(int8)] = int8(i)
    				runtime.Gosched()
    			}
    			for i := 0; i < mods; i++ {
    				for k, _ := range a {
    					a[k]++
    					runtime.Gosched()
    				}
    			}
    		},
    		chanT: func() {
    			a := make(chan int8)
    			for i := 0; i < mods; i++ {
    				go func() { a <- int8(i) }()
    				<-a
    				runtime.Gosched()
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 08 21:15:48 UTC 2018
    - 34.5K bytes
    - Viewed (0)
  4. test/fixedbugs/issue21655.go

    // enough to fit into an int32 (to get rewritten to an ADDQconst)
    // but large enough to overflow an int32 after multiplying by the stride.
    
    package main
    
    func f1(a []int64, i int64) int64 {
    	return a[i+1<<30]
    }
    func f2(a []int32, i int64) int32 {
    	return a[i+1<<30]
    }
    func f3(a []int16, i int64) int16 {
    	return a[i+1<<30]
    }
    func f4(a []int8, i int64) int8 {
    	return a[i+1<<31]
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 03:53:18 UTC 2017
    - 1.5K bytes
    - Viewed (0)
  5. src/runtime/testdata/testprog/checkptr.go

    // CheckPtrAlignmentNilPtr tests that checkptrAlignment doesn't crash
    // on nil pointers (#47430).
    func CheckPtrAlignmentNilPtr() {
    	var do func(int)
    	do = func(n int) {
    		// Inflate the stack so runtime.shrinkstack gets called during GC
    		if n > 0 {
    			do(n - 1)
    		}
    
    		var p unsafe.Pointer
    		_ = (*int)(p)
    	}
    
    	go func() {
    		for {
    			runtime.GC()
    		}
    	}()
    
    	go func() {
    		for i := 0; ; i++ {
    			do(i % 1024)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 31 17:15:15 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/allocators.go

    }
    func (c *Cache) allocInt8Slice(n int) []int8 {
    	var base int64
    	var derived int8
    	if unsafe.Sizeof(base)%unsafe.Sizeof(derived) != 0 {
    		panic("bad")
    	}
    	scale := unsafe.Sizeof(base) / unsafe.Sizeof(derived)
    	b := c.allocInt64Slice(int((uintptr(n) + scale - 1) / scale))
    	s := unsafeheader.Slice{
    		Data: unsafe.Pointer(&b[0]),
    		Len:  n,
    		Cap:  cap(b) * int(scale),
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 15 23:00:54 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/_gen/AMD64.rules

    (ROLQ x (MOV(Q|L)const [c])) => (ROLQconst [int8(c&63)] x)
    (ROLL x (MOV(Q|L)const [c])) => (ROLLconst [int8(c&31)] x)
    (ROLW x (MOV(Q|L)const [c])) => (ROLWconst [int8(c&15)] x)
    (ROLB x (MOV(Q|L)const [c])) => (ROLBconst [int8(c&7) ] x)
    
    (RORQ x (MOV(Q|L)const [c])) => (ROLQconst [int8((-c)&63)] x)
    (RORL x (MOV(Q|L)const [c])) => (ROLLconst [int8((-c)&31)] x)
    (RORW x (MOV(Q|L)const [c])) => (ROLWconst [int8((-c)&15)] x)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 12 19:38:41 UTC 2024
    - 93.9K bytes
    - Viewed (0)
  8. src/go/parser/testdata/linalg.go2

    package linalg
    
    import "math"
    
    // Numeric is type bound that matches any numeric type.
    // It would likely be in a constraints package in the standard library.
    type Numeric interface {
    	~int|~int8|~int16|~int32|~int64|
    		~uint|~uint8|~uint16|~uint32|~uint64|~uintptr|
    		~float32|~float64|
    		~complex64|~complex128
    }
    
    func DotProduct[T Numeric](s1, s2 []T) T {
    	if len(s1) != len(s2) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 15:34:22 UTC 2021
    - 2K bytes
    - Viewed (0)
  9. src/math/big/alias_test.go

    			}, v.Int, x.Int)
    		},
    		"Mod": func(v, x bigInt, y notZeroInt) bool {
    			return checkAliasingTwoArgs(t, (*big.Int).Mod, v.Int, x.Int, y.Int)
    		},
    		"ModInverse": func(v, x bigInt, y notZeroInt) bool {
    			return checkAliasingTwoArgs(t, (*big.Int).ModInverse, v.Int, x.Int, y.Int)
    		},
    		"ModSqrt": func(v, x bigInt, p prime) bool {
    			return checkAliasingTwoArgs(t, (*big.Int).ModSqrt, v.Int, x.Int, p.Int)
    		},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 19 15:49:05 UTC 2022
    - 8.8K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/test/testdata/arithConst_test.go

    //go:noinline
    func add_int8_0(a int8) int8 { return a + 0 }
    
    //go:noinline
    func add_0_int8(a int8) int8 { return 0 + a }
    
    //go:noinline
    func add_int8_1(a int8) int8 { return a + 1 }
    
    //go:noinline
    func add_1_int8(a int8) int8 { return 1 + a }
    
    //go:noinline
    func add_int8_126(a int8) int8 { return a + 126 }
    
    //go:noinline
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 23 06:40:04 UTC 2020
    - 633.8K bytes
    - Viewed (0)
Back to top