Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 388 for is_zero (0.12 sec)

  1. schema/serializer.go

    	case int64, int, uint, uint64, int32, uint32, int16, uint16:
    		result = time.Unix(reflect.Indirect(rv).Int(), 0).UTC()
    	case *int64, *int, *uint, *uint64, *int32, *uint32, *int16, *uint16:
    		if rv.IsZero() {
    			return nil, nil
    		}
    		result = time.Unix(reflect.Indirect(rv).Int(), 0).UTC()
    	default:
    		err = fmt.Errorf("invalid field type %#v for UnixSecondSerializer, only int, uint supported", v)
    	}
    	return
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Mar 18 08:28:46 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  2. src/crypto/internal/nistec/p256_asm_s390x.s

    	// clobbers T1H and T1L
    	MOVD   $0, ISZERO
    	MOVD   $1, TRUE
    	VZERO  ZER
    	VO     RL, RH, T1H
    	VCEQGS ZER, T1H, T1H
    	MOVDEQ TRUE, ISZERO
    	VX     RL, PL, T1L
    	VX     RH, PH, T1H
    	VO     T1L, T1H, T1H
    	VCEQGS ZER, T1H, T1H
    	MOVDEQ TRUE, ISZERO
    	AND    ret+24(FP), ISZERO
    	MOVD   ISZERO, ret+24(FP)
    
    	// X=H ; Y=H ; MUL; T-   // T1 = H*H
    	VLR  HL, X0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 55.4K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/objectmeta/algorithm.go

    					} else if found {
    						if err := SetObjectMeta(x, meta); err != nil {
    							return field.Invalid(pth.Child("metadata"), v, err.Error())
    						}
    						if meta.CreationTimestamp.IsZero() {
    							unstructured.RemoveNestedField(x, "metadata", "creationTimestamp")
    						}
    					}
    				}
    			}
    			prop, ok := s.Properties[k]
    			if ok {
    				opts.AppendKey(k)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 18 14:55:12 UTC 2022
    - 5.1K bytes
    - Viewed (0)
  4. src/crypto/internal/nistec/p224.go

    	// rather than happen on the heap.
    	var out [1 + 2*p224ElementLength]byte
    	return p.bytes(&out)
    }
    
    func (p *P224Point) bytes(out *[1 + 2*p224ElementLength]byte) []byte {
    	if p.z.IsZero() == 1 {
    		return append(out[:0], 0)
    	}
    
    	zinv := new(fiat.P224Element).Invert(p.z)
    	x := new(fiat.P224Element).Mul(p.x, zinv)
    	y := new(fiat.P224Element).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
    - 15.9K bytes
    - Viewed (0)
  5. src/crypto/internal/nistec/p521.go

    	// rather than happen on the heap.
    	var out [1 + 2*p521ElementLength]byte
    	return p.bytes(&out)
    }
    
    func (p *P521Point) bytes(out *[1 + 2*p521ElementLength]byte) []byte {
    	if p.z.IsZero() == 1 {
    		return append(out[:0], 0)
    	}
    
    	zinv := new(fiat.P521Element).Invert(p.z)
    	x := new(fiat.P521Element).Mul(p.x, zinv)
    	y := new(fiat.P521Element).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
    - 17K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/registry/rest/update.go

    	}
    	// ignore changes to timestamp
    	if oldCreationTime := oldMeta.GetCreationTimestamp(); !oldCreationTime.IsZero() {
    		objectMeta.SetCreationTimestamp(oldMeta.GetCreationTimestamp())
    	}
    	// an update can never remove/change a deletion timestamp
    	if !oldMeta.GetDeletionTimestamp().IsZero() {
    		objectMeta.SetDeletionTimestamp(oldMeta.GetDeletionTimestamp())
    	}
    	// an update can never remove/change grace period seconds
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 27 11:48:28 UTC 2022
    - 11.8K bytes
    - Viewed (0)
  7. src/time/time_test.go

    	{"Equal", func(t1, t2 Time) bool { return t1.Equal(t2) == t2.Equal(t1) }},
    	{"Compare", func(t1, t2 Time) bool { return t1.Compare(t2) == t2.Compare(t1) }},
    
    	{"IsZero", func(t1, t2 Time) bool { return t1.IsZero() == t2.IsZero() }},
    	{"Date", func(t1, t2 Time) bool {
    		a1, b1, c1 := t1.Date()
    		a2, b2, c2 := t2.Date()
    		return a1 == a2 && b1 == b2 && c1 == c2
    	}},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:13:47 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/unix/zsyscall_linux_riscv64.go

    func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
    	var _p0 unsafe.Pointer
    	if len(events) > 0 {
    		_p0 = unsafe.Pointer(&events[0])
    	} else {
    		_p0 = unsafe.Pointer(&_zero)
    	}
    	r0, _, e1 := Syscall6(SYS_EPOLL_PWAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0)
    	n = int(r0)
    	if e1 != 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  9. cmd/kubeadm/app/util/pkiutil/pki_helpers.go

    		keyUsage |= x509.KeyUsageCertSign
    	}
    
    	RemoveDuplicateAltNames(&cfg.AltNames)
    
    	notBefore := caCert.NotBefore
    	if !cfg.NotBefore.IsZero() {
    		notBefore = cfg.NotBefore
    	}
    
    	notAfter := notBefore.Add(kubeadmconstants.CertificateValidityPeriod)
    	if !cfg.NotAfter.IsZero() {
    		notAfter = cfg.NotAfter
    	}
    
    	certTmpl := x509.Certificate{
    		Subject: pkix.Name{
    			CommonName:   cfg.CommonName,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  10. src/net/netip/netip.go

    	return uint16(*(ip.addr.halves()[(i/4)%2]) >> ((3 - i%4) * 16))
    }
    
    // isZero reports whether ip is the zero value of the IP type.
    // The zero value is not a valid IP address of any type.
    //
    // Note that "0.0.0.0" and "::" are not the zero value. Use IsUnspecified to
    // check for these values instead.
    func (ip Addr) isZero() bool {
    	// Faster than comparing ip == Addr{}, but effectively equivalent,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 43.2K bytes
    - Viewed (0)
Back to top