Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 600 for num1 (0.04 sec)

  1. android/guava-tests/test/com/google/common/base/PredicatesTest.java

      public void testIn_compilesWithExplicitSupertype() {
        Collection<Number> nums = ImmutableSet.of();
        Predicate<Number> p1 = Predicates.in(nums);
        Predicate<Object> p2 = Predicates.<Object>in(nums);
        // The next two lines are not expected to compile.
        // Predicate<Integer> p3 = Predicates.in(nums);
        // Predicate<Integer> p4 = Predicates.<Integer>in(nums);
      }
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 32.4K bytes
    - Viewed (0)
  2. src/syscall/mksysnum_linux.pl

    const(
    EOF
    
    my $offset = 0;
    
    sub fmt {
    	my ($name, $num) = @_;
    	if($num > 999){
    		# ignore deprecated syscalls that are no longer implemented
    		# https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/include/uapi/asm-generic/unistd.h?id=refs/heads/master#n716
    		return;
    	}
    	$name =~ y/a-z/A-Z/;
    	$num = $num + $offset;
    	print "	SYS_$name = $num;\n";
    }
    
    my $prev;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 14 13:21:46 UTC 2018
    - 1.3K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/api/meta/help_test.go

    		name            string
    		generateFunc    func(num int) (list runtime.Object)
    		expectObjectNum int
    	}{
    		{
    			name: "StructReceiverList",
    			generateFunc: func(num int) (list runtime.Object) {
    				return fakeFooList(num)
    			},
    			expectObjectNum: fakeObjectItemsNum,
    		},
    		{
    			name: "PointerReceiverList",
    			generateFunc: func(num int) (list runtime.Object) {
    				return fakeSampleList(num)
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 29 13:40:46 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  4. src/log/slog/value.go

    	_ [0]func() // disallow ==
    	// num holds the value for Kinds Int64, Uint64, Float64, Bool and Duration,
    	// the string length for KindString, and nanoseconds since the epoch for KindTime.
    	num uint64
    	// If any is of type Kind, then the value is in num as described above.
    	// If any is of type *time.Location, then the Kind is Time and time.Time value
    	// can be constructed from the Unix nanos in num and the location (monotonic time
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:12:08 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  5. src/runtime/testdata/testprogcgo/cgonoescape.go

    	for i := 0; i < num; i++ {
    		withNoEscape()
    	}
    
    	runtime.ReadMemStats(&stats)
    	nowHeapObjects := stats.HeapObjects
    
    	if nowHeapObjects-preHeapObjects >= num {
    		fmt.Printf("too many heap objects allocated, pre: %v, now: %v\n", preHeapObjects, nowHeapObjects)
    	}
    
    	runtime.ReadMemStats(&stats)
    	preHeapObjects = stats.HeapObjects
    
    	for i := 0; i < num; i++ {
    		withoutNoEscape()
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 02 16:43:23 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  6. test/chan/powser2.go

    func add(u, v *rat) *rat {
    	g := gcd(u.den, v.den)
    	return i2tor(u.num*(v.den/g)+v.num*(u.den/g), u.den*(v.den/g))
    }
    
    func mul(u, v *rat) *rat {
    	g1 := gcd(u.num, v.den)
    	g2 := gcd(u.den, v.num)
    	r := new(rat)
    	r.num = (u.num / g1) * (v.num / g2)
    	r.den = (u.den / g2) * (v.den / g1)
    	return r
    }
    
    func neg(u *rat) *rat {
    	return i2tor(-u.num, u.den)
    }
    
    func sub(u, v *rat) *rat {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 25 22:22:20 UTC 2020
    - 13.3K bytes
    - Viewed (0)
  7. src/cmd/vendor/rsc.io/markdown/list.go

    		buf.WriteByte('\n')
    	}
    	s.bullet = b.Bullet
    	s.num = b.Start
    	for i, item := range b.Items {
    		if i > 0 && b.Loose {
    			buf.WriteByte('\n')
    		}
    		item.printMarkdown(buf, s)
    		s.num++
    	}
    }
    
    func (b *Item) printMarkdown(buf *bytes.Buffer, s mdState) {
    	var marker string
    	if s.bullet == '.' || s.bullet == ')' {
    		marker = fmt.Sprintf("%d%c ", s.num, s.bullet)
    	} else {
    		marker = fmt.Sprintf("%c ", s.bullet)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/base/PredicatesTest.java

      public void testIn_compilesWithExplicitSupertype() {
        Collection<Number> nums = ImmutableSet.of();
        Predicate<Number> p1 = Predicates.in(nums);
        Predicate<Object> p2 = Predicates.<Object>in(nums);
        // The next two lines are not expected to compile.
        // Predicate<Integer> p3 = Predicates.in(nums);
        // Predicate<Integer> p4 = Predicates.<Integer>in(nums);
      }
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 32.4K bytes
    - Viewed (0)
  9. test/chan/powser1.go

    func add(u, v rat) rat {
    	g := gcd(u.den, v.den)
    	return i2tor(u.num*(v.den/g)+v.num*(u.den/g), u.den*(v.den/g))
    }
    
    func mul(u, v rat) rat {
    	g1 := gcd(u.num, v.den)
    	g2 := gcd(u.den, v.num)
    	var r rat
    	r.num = (u.num / g1) * (v.num / g2)
    	r.den = (u.den / g2) * (v.den / g1)
    	return r
    }
    
    func neg(u rat) rat {
    	return i2tor(-u.num, u.den)
    }
    
    func sub(u, v rat) rat {
    	return add(u, neg(v))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 25 22:22:20 UTC 2020
    - 12.7K bytes
    - Viewed (0)
  10. src/time/format_rfc3339.go

    	// See https://go.dev/issue/4556 and https://go.dev/issue/54580.
    	num2 := func(b []byte) byte { return 10*(b[0]-'0') + (b[1] - '0') }
    	switch {
    	case b[n0+len("9999")] != '-': // year must be exactly 4 digits wide
    		return b, errors.New("year outside of range [0,9999]")
    	case b[len(b)-1] != 'Z':
    		c := b[len(b)-len("Z07:00")]
    		if ('0' <= c && c <= '9') || num2(b[len(b)-len("07:00"):]) >= 24 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 18 19:59:26 UTC 2023
    - 5.7K bytes
    - Viewed (0)
Back to top