Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 160 for fInt64 (1.09 sec)

  1. pkg/kubelet/stats/cri_stats_provider_test.go

    		UsedBytes:  &runtimeapi.UInt64Value{Value: rand.Uint64()},
    		InodesUsed: &runtimeapi.UInt64Value{Value: rand.Uint64()},
    	}
    }
    
    func makeFakeVolumeStats(volumeNames []string) []statsapi.VolumeStats {
    	volumes := make([]statsapi.VolumeStats, len(volumeNames))
    	availableBytes := rand.Uint64()
    	capacityBytes := rand.Uint64()
    	usedBytes := rand.Uint64() / 100
    	inodes := rand.Uint64()
    	inodesFree := rand.Uint64()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 54.5K bytes
    - Viewed (0)
  2. pkg/volume/csi/csi_mounter_test.go

    		fsType       string
    		fsGroup      *int64
    		driverPolicy storage.FSGroupPolicy
    	}
    	tests := []struct {
    		name   string
    		fields fields
    		args   args
    		want   bool
    	}{
    		{
    			name: "empty all",
    			args: args{},
    			want: false,
    		},
    		{
    			name: "driverPolicy is FileFSGroupPolicy",
    			args: args{
    				fsGroup:      new(int64),
    				driverPolicy: storage.FileFSGroupPolicy,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 50.1K bytes
    - Viewed (0)
  3. src/math/big/float_test.go

    // Verify that ErrNaN implements the error interface.
    var _ error = ErrNaN{}
    
    func (x *Float) uint64() uint64 {
    	u, acc := x.Uint64()
    	if acc != Exact {
    		panic(fmt.Sprintf("%s is not a uint64", x.Text('g', 10)))
    	}
    	return u
    }
    
    func (x *Float) int64() int64 {
    	i, acc := x.Int64()
    	if acc != Exact {
    		panic(fmt.Sprintf("%s is not an int64", x.Text('g', 10)))
    	}
    	return i
    }
    
    func TestFloatZeroValue(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 51.9K bytes
    - Viewed (0)
  4. src/runtime/mprof.go

    	lock      *mutex
    	timeRate  int64
    	timeStart int64
    	tickStart int64
    }
    
    func (lt *lockTimer) begin() {
    	rate := int64(atomic.Load64(&mutexprofilerate))
    
    	lt.timeRate = gTrackingPeriod
    	if rate != 0 && rate < lt.timeRate {
    		lt.timeRate = rate
    	}
    	if int64(cheaprand())%lt.timeRate == 0 {
    		lt.timeStart = nanotime()
    	}
    
    	if rate > 0 && int64(cheaprand())%rate == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/debug.go

    		}
    
    		if ctxt.UseBASEntries {
    			listSym.WriteInt(ctxt, listSym.Size, ctxt.Arch.PtrSize, int64(begin))
    			listSym.WriteInt(ctxt, listSym.Size, ctxt.Arch.PtrSize, int64(end))
    		} else {
    			listSym.WriteCURelativeAddr(ctxt, listSym.Size, startPC, int64(begin))
    			listSym.WriteCURelativeAddr(ctxt, listSym.Size, startPC, int64(end))
    		}
    
    		i += 2 * ctxt.Arch.PtrSize
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 58.4K bytes
    - Viewed (0)
  6. src/math/big/int_test.go

    }
    
    func TestMulRangeZ(t *testing.T) {
    	var tmp Int
    	// test entirely positive ranges
    	for i, r := range mulRangesN {
    		// skip mulRangesN entries that overflow int64
    		if int64(r.a) < 0 || int64(r.b) < 0 {
    			continue
    		}
    		prod := tmp.MulRange(int64(r.a), int64(r.b)).String()
    		if prod != r.prod {
    			t.Errorf("#%da: got %s; want %s", i, prod, r.prod)
    		}
    	}
    	// test other ranges
    	for i, r := range mulRangesZ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 58.5K bytes
    - Viewed (0)
  7. src/cmd/cgo/gcc.go

    	c.byte = c.Ident("byte")
    	c.int8 = c.Ident("int8")
    	c.int16 = c.Ident("int16")
    	c.int32 = c.Ident("int32")
    	c.int64 = c.Ident("int64")
    	c.uint8 = c.Ident("uint8")
    	c.uint16 = c.Ident("uint16")
    	c.uint32 = c.Ident("uint32")
    	c.uint64 = c.Ident("uint64")
    	c.uintptr = c.Ident("uintptr")
    	c.float32 = c.Ident("float32")
    	c.float64 = c.Ident("float64")
    	c.complex64 = c.Ident("complex64")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 97K bytes
    - Viewed (0)
  8. staging/src/k8s.io/api/authentication/v1/generated.pb.go

    		}
    	}
    	return n
    }
    
    func sovGenerated(x uint64) (n int) {
    	return (math_bits.Len64(x|1) + 6) / 7
    }
    func sozGenerated(x uint64) (n int) {
    	return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
    }
    func (this *BoundObjectReference) String() string {
    	if this == nil {
    		return "nil"
    	}
    	s := strings.Join([]string{`&BoundObjectReference{`,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:37 UTC 2024
    - 72K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher.go

    	if opts.SendInitialEvents == nil || !*opts.SendInitialEvents || !opts.Predicate.AllowWatchBookmarks {
    		return func() uint64 { return 0 }, nil
    	}
    
    	switch {
    	case len(opts.ResourceVersion) == 0:
    		return func() uint64 { return requiredResourceVersion }, nil
    	case parsedResourceVersion == 0:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 51.8K bytes
    - Viewed (0)
  10. src/runtime/mgc.go

    	sec, nsec, _ := time_now()
    	unixNow := sec*1e9 + int64(nsec)
    	work.pauseNS += now - stw.startedStopping
    	work.tEnd = now
    	atomic.Store64(&memstats.last_gc_unix, uint64(unixNow)) // must be Unix time to make sense to user
    	atomic.Store64(&memstats.last_gc_nanotime, uint64(now)) // monotonic time for us
    	memstats.pause_ns[memstats.numgc%uint32(len(memstats.pause_ns))] = uint64(work.pauseNS)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62K bytes
    - Viewed (0)
Back to top