Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 388 for is_zero (0.16 sec)

  1. src/cmd/vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go

    func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
    	var _p0 unsafe.Pointer
    	if len(p) > 0 {
    		_p0 = unsafe.Pointer(&p[0])
    	} else {
    		_p0 = unsafe.Pointer(&_zero)
    	}
    	r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
    	n = int(r0)
    	if e1 != 0 {
    		err = errnoErr(e1)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 38.8K bytes
    - Viewed (0)
  2. security/pkg/credentialfetcher/plugin/gce.go

    	defer p.tokenMutex.RUnlock()
    
    	if p.tokenCache == "" {
    		return true
    	}
    	exp, err := util.GetExp(p.tokenCache)
    	// When fails to get expiration time from token, always refresh the token.
    	if err != nil || exp.IsZero() {
    		return true
    	}
    	rotate := now.After(exp.Add(-gracePeriod))
    	gcecredLog.Debugf("credential expiration: %s, grace period: %s, should rotate: %t",
    		exp.String(), gracePeriod.String(), rotate)
    	return rotate
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 13:56:46 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  3. src/crypto/internal/nistec/p256.go

    	// rather than happen on the heap.
    	var out [1 + 2*p256ElementLength]byte
    	return p.bytes(&out)
    }
    
    func (p *P256Point) bytes(out *[1 + 2*p256ElementLength]byte) []byte {
    	if p.z.IsZero() == 1 {
    		return append(out[:0], 0)
    	}
    
    	zinv := new(fiat.P256Element).Invert(p.z)
    	x := new(fiat.P256Element).Mul(p.x, zinv)
    	y := new(fiat.P256Element).Mul(p.y, zinv)
    
    	buf := append(out[:0], 4)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  4. cmd/metrics-v3-system-process.go

    func loadProcessMetrics(ctx context.Context, m MetricValues, c *metricsCache) error {
    	m.Set(processGoRoutineTotal, float64(runtime.NumGoroutine()))
    
    	if !globalBootTime.IsZero() {
    		m.Set(processUptimeSeconds, time.Since(globalBootTime).Seconds())
    	}
    
    	p, err := procfs.Self()
    	if err != nil {
    		metricsLogIf(ctx, err)
    	} else {
    		loadProcFSMetrics(ctx, p, m)
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Apr 26 16:07:23 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  5. src/crypto/internal/nistec/p384.go

    	// rather than happen on the heap.
    	var out [1 + 2*p384ElementLength]byte
    	return p.bytes(&out)
    }
    
    func (p *P384Point) bytes(out *[1 + 2*p384ElementLength]byte) []byte {
    	if p.z.IsZero() == 1 {
    		return append(out[:0], 0)
    	}
    
    	zinv := new(fiat.P384Element).Invert(p.z)
    	x := new(fiat.P384Element).Mul(p.x, zinv)
    	y := new(fiat.P384Element).Mul(p.y, zinv)
    
    	buf := append(out[:0], 4)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 12 00:04:29 UTC 2022
    - 18K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured/unstructured.go

    	if len(ts) == 0 || timestamp.Time.IsZero() {
    		RemoveNestedField(u.Object, "metadata", "creationTimestamp")
    		return
    	}
    	u.setNestedField(ts, "metadata", "creationTimestamp")
    }
    
    func (u *Unstructured) GetDeletionTimestamp() *metav1.Time {
    	var timestamp metav1.Time
    	timestamp.UnmarshalQueryParameter(getNestedString(u.Object, "metadata", "deletionTimestamp"))
    	if timestamp.IsZero() {
    		return nil
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun May 28 03:26:35 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go

    func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
    	var _p0 unsafe.Pointer
    	if len(p) > 0 {
    		_p0 = unsafe.Pointer(&p[0])
    	} else {
    		_p0 = unsafe.Pointer(&_zero)
    	}
    	r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
    	n = int(r0)
    	if e1 != 0 {
    		err = errnoErr(e1)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 44.9K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm64.go

    func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
    	var _p0 unsafe.Pointer
    	if len(p) > 0 {
    		_p0 = unsafe.Pointer(&p[0])
    	} else {
    		_p0 = unsafe.Pointer(&_zero)
    	}
    	r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
    	n = int(r0)
    	if e1 != 0 {
    		err = errnoErr(e1)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 44.9K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go

    func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
    	var _p0 unsafe.Pointer
    	if len(p) > 0 {
    		_p0 = unsafe.Pointer(&p[0])
    	} else {
    		_p0 = unsafe.Pointer(&_zero)
    	}
    	r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
    	n = int(r0)
    	if e1 != 0 {
    		err = errnoErr(e1)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 44.1K bytes
    - Viewed (0)
  10. cmd/erasure-healing-common.go

    	timeOccurrenceMap := make(map[int64]int, len(times))
    	groupNano := group.Nanoseconds()
    	// Ignore the uuid sentinel and count the rest.
    	for _, t := range times {
    		if t.Equal(timeSentinel) || t.IsZero() {
    			continue
    		}
    		nano := t.UnixNano()
    		if group > 0 {
    			for k := range timeOccurrenceMap {
    				if k == nano {
    					// We add to ourself later
    					continue
    				}
    				diff := k - nano
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 12.5K bytes
    - Viewed (0)
Back to top