Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of about 10,000 for i$ (0.13 sec)

  1. src/sync/atomic/atomic_test.go

    func TestAndInt32(t *testing.T) {
    	var x struct {
    		before int32
    		i      int32
    		after  int32
    	}
    	x.before = magic32
    	x.after = magic32
    	x.i = -1
    	j := x.i
    	for mask := int32(1); mask != 0; mask <<= 1 {
    		old := x.i
    		k := AndInt32(&x.i, ^mask)
    		j &= ^mask
    		if x.i != j || k != old {
    			t.Fatalf("mask=%d i=%d j=%d k=%d old=%d", mask, x.i, j, k, old)
    		}
    	}
    	if x.before != magic32 || x.after != magic32 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:37:29 UTC 2024
    - 71.4K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/testdata/scopes.dlv-opt.nexts

    23:		x := id(0)
    24:		y := id(0)
    25:		fmt.Println(x)
    26:		for i := x; i < 3; i++ {
    27:			x := i * i
    28:			y += id(x) //gdb-dbg=(x,y)//gdb-opt=(x,y)
    26:		for i := x; i < 3; i++ {
    27:			x := i * i
    28:			y += id(x) //gdb-dbg=(x,y)//gdb-opt=(x,y)
    26:		for i := x; i < 3; i++ {
    27:			x := i * i
    28:			y += id(x) //gdb-dbg=(x,y)//gdb-opt=(x,y)
    26:		for i := x; i < 3; i++ {
    31:		fmt.Println(x, y)
    30:		y = x + y //gdb-dbg=(x,y)//gdb-opt=(x,y)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 02 22:18:10 UTC 2019
    - 1.1K bytes
    - Viewed (0)
  3. test/235.go

    	outs := make([]T, n)
    	xs := make([]uint64, n)
    	for i := 0; i < n; i++ {
    		ins[i], outs[i] = M(F[i])
    		xs[i] = x
    	}
    
    	for i := 0; i < len(OUT); i++ {
    		for i := 0; i < n; i++ {
    			ins[i] <- x
    		}
    
    		for i := 0; i < n; i++ {
    			if xs[i] == x {
    				xs[i] = <-outs[i]
    			}
    		}
    
    		x = min(xs)
    		if x != OUT[i] {
    			println("bad: ", x, " should be ", OUT[i])
    			panic("235")
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Feb 19 02:19:43 UTC 2012
    - 1.6K bytes
    - Viewed (0)
  4. src/math/huge_test.go

    func TestHugeCos(t *testing.T) {
    	for i := 0; i < len(trigHuge); i++ {
    		f1 := cosHuge[i]
    		f2 := Cos(trigHuge[i])
    		if !close(f1, f2) {
    			t.Errorf("Cos(%g) = %g, want %g", trigHuge[i], f2, f1)
    		}
    		f3 := Cos(-trigHuge[i])
    		if !close(f1, f3) {
    			t.Errorf("Cos(%g) = %g, want %g", -trigHuge[i], f3, f1)
    		}
    	}
    }
    
    func TestHugeSin(t *testing.T) {
    	for i := 0; i < len(trigHuge); i++ {
    		f1 := sinHuge[i]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 31 16:23:41 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  5. src/strconv/itoa.go

    		return append(dst, small(int(i))...)
    	}
    	dst, _ = formatBits(dst, i, base, false, true)
    	return dst
    }
    
    // small returns the string for an i with 0 <= i < nSmalls.
    func small(i int) string {
    	if i < 10 {
    		return digits[i : i+1]
    	}
    	return smallsString[i*2 : i*2+2]
    }
    
    const nSmalls = 100
    
    const smallsString = "00010203040506070809" +
    	"10111213141516171819" +
    	"20212223242526272829" +
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:21:28 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/test/math_test.go

    	for i := 1; i <= b.N; i++ {
    		r = -(int64(i) - r) % int64(i)
    	}
    	Output = int(r)
    }
    
    func BenchmarkMod64SmallNegBoth(b *testing.B) {
    	r := int64(1)
    	for i := 1; i <= b.N; i++ {
    		r = -(int64(i) + r) % -int64(i)
    	}
    	Output = int(r)
    }
    
    func BenchmarkMod64Unsigned(b *testing.B) {
    	r := uint64(1)
    	for i := 1; i <= b.N; i++ {
    		r = (uint64(0x7fffffffffffffff) - uint64(i) - (r & 1)) % uint64(i)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 23:34:11 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  7. test/loopbce.go

    		a[i-5] = i  // ERROR "(\([0-9]+\) )?Proved IsInBounds$"
    		a[i] = i    // ERROR "(\([0-9]+\) )?Proved IsInBounds$"
    		a[i+5] = i  // ERROR "(\([0-9]+\) )?Proved IsInBounds$"
    		a[i+10] = i // ERROR "(\([0-9]+\) )?Proved IsInBounds$"
    		a[i+11] = i
    	}
    	return a
    }
    
    func k1(a [100]int) [100]int {
    	for i := 10; i < 90; i++ { // ERROR "Induction variable: limits \[10,90\), increment 1$"
    		if a[0] == 0xdeadbeef {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 13.8K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java

      public void testGetSet() {
        AtomicDoubleArray aa = new AtomicDoubleArray(VALUES.length);
        for (int i = 0; i < VALUES.length; i++) {
          assertBitEquals(0.0, aa.get(i));
          aa.set(i, VALUES[i]);
          assertBitEquals(VALUES[i], aa.get(i));
          aa.set(i, -3.0);
          assertBitEquals(-3.0, aa.get(i));
        }
      }
    
      /** get returns the last value lazySet at index by same thread */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 10 19:21:11 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  9. src/cmd/vendor/rsc.io/markdown/table.go

    	col := 0
    	delim := tableTrimOuter(delim1)
    	i := 0
    	for ; ; col++ {
    		for i < len(delim) && isTableSpace(delim[i]) {
    			i++
    		}
    		if i >= len(delim) {
    			break
    		}
    		if i < len(delim) && delim[i] == ':' {
    			i++
    		}
    		if i >= len(delim) || delim[i] != '-' {
    			return false
    		}
    		i++
    		for i < len(delim) && delim[i] == '-' {
    			i++
    		}
    		if i < len(delim) && delim[i] == ':' {
    			i++
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/test/divconst_test.go

    	for i := 0; i < b.N; i++ {
    		u64res = uint64(i) / 7
    		boolres = uint64(i)%7 == 0
    	}
    }
    
    var i32res int32
    
    func BenchmarkDivconstI32(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		i32res = int32(i) / 7
    	}
    }
    
    func BenchmarkModconstI32(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		i32res = int32(i) % 7
    	}
    }
    
    func BenchmarkDivisiblePow2constI32(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 29 00:07:35 UTC 2020
    - 7.7K bytes
    - Viewed (0)
Back to top