- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 71 for is_zero (0.28 sec)
-
src/internal/runtime/syscall/syscall_linux.go
r1, _, e := Syscall6(SYS_EPOLL_CREATE1, uintptr(flags), 0, 0, 0, 0, 0) return int32(r1), e } var _zero uintptr func EpollWait(epfd int32, events []EpollEvent, maxev, waitms int32) (n int32, errno uintptr) { var ev unsafe.Pointer if len(events) > 0 { ev = unsafe.Pointer(&events[0]) } else { ev = unsafe.Pointer(&_zero) } r1, _, e := Syscall6(SYS_EPOLL_PWAIT, uintptr(epfd), uintptr(ev), uintptr(maxev), uintptr(waitms), 0, 0)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:26:21 UTC 2024 - 1.4K bytes - Viewed (0) -
src/crypto/ecdh/x25519.go
}, nil } func (c *x25519Curve) ecdh(local *PrivateKey, remote *PublicKey) ([]byte, error) { out := make([]byte, x25519SharedSecretSize) x25519ScalarMult(out, local.privateKey, remote.publicKey) if isZero(out) { return nil, errors.New("crypto/ecdh: bad X25519 remote ECDH input: low order point") } return out, nil } func x25519ScalarMult(dst, scalar, point []byte) { var e [32]byte copy(e[:], scalar[:])
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 17:09:47 UTC 2023 - 3.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/mutation/common/val_test.go
for _, tc := range []struct { name string fields map[string]ref.Val expected map[string]any }{ { name: "present", fields: map[string]ref.Val{ "zero": types.OptionalOf(types.IntZero), }, expected: map[string]any{ "zero": int64(0), }, }, { name: "none", fields: map[string]ref.Val{ "absent": types.OptionalNone, }, expected: map[string]any{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 24 00:01:35 UTC 2024 - 1.6K bytes - Viewed (0) -
pkg/kubelet/runtime.go
s.RLock() defer s.RUnlock() return s.cidr } func (s *runtimeState) runtimeErrors() error { s.RLock() defer s.RUnlock() errs := []error{} if s.lastBaseRuntimeSync.IsZero() { errs = append(errs, errors.New("container runtime status check may not have completed yet")) } else if !s.lastBaseRuntimeSync.Add(s.baseRuntimeSyncThreshold).After(time.Now()) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Mar 09 00:48:07 UTC 2024 - 3.6K bytes - Viewed (0) -
src/cmd/internal/objfile/goobj.go
for _, a := range r.Auxs(i) { switch a.Type() { case goobj.AuxPcfile: pcfileSym = a.Sym() case goobj.AuxPcline: pclineSym = a.Sym() } } if pcfileSym.IsZero() || pclineSym.IsZero() { continue } pcline := getSymData(pclineSym) line := int(pcValue(pcline, pc-addr, f.arch)) pcfile := getSymData(pcfileSym) fileID := pcValue(pcfile, pc-addr, f.arch)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 15 15:39:57 UTC 2023 - 7.8K bytes - Viewed (0) -
src/reflect/export_test.go
intArgRegs = ints floatArgRegs = floats floatRegSize = floatSize clearLayoutCache() return } var MethodValueCallCodePtr = methodValueCallCodePtr var InternalIsZero = isZero
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 15:10:48 UTC 2024 - 3.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/odml_converter/folders.cc
auto rhs_val = rhs_splat ? *rhs_start : *(rhs_start++); auto signed_lhs_val = AddSign(lhs_val); auto signed_rhs_val = AddSign(rhs_val); if (signed_rhs_val.isZero()) { return failure(); } res.push_back(signed_lhs_val / signed_rhs_val); } auto res_attr = DenseElementsAttr::get( const_oprs[0].getType().cast<RankedTensorType>(), res);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 08 06:11:55 UTC 2024 - 4.5K bytes - Viewed (0) -
utils/utils.go
case []byte: results[idx] = string(v) case uint: results[idx] = strconv.FormatUint(uint64(v), 10) default: results[idx] = "nil" vv := reflect.ValueOf(v) if vv.IsValid() && !vv.IsZero() { results[idx] = fmt.Sprint(reflect.Indirect(vv).Interface()) } } } return strings.Join(results, "_") } func Contains(elems []string, elem string) bool { for _, e := range elems {
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Mon Apr 22 06:43:02 UTC 2024 - 3.8K bytes - Viewed (0) -
pkg/api/persistentvolume/util.go
func DropDisabledStatusFields(oldStatus, newStatus *api.PersistentVolumeStatus) { if !utilfeature.DefaultFeatureGate.Enabled(features.PersistentVolumeLastPhaseTransitionTime) && oldStatus.LastPhaseTransitionTime.IsZero() { newStatus.LastPhaseTransitionTime = nil } } func GetWarningsForPersistentVolume(pv *api.PersistentVolume) []string { if pv == nil { return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 15 09:50:37 UTC 2023 - 4.2K bytes - Viewed (0) -
src/internal/poll/fd_poll_runtime.go
func (fd *FD) SetWriteDeadline(t time.Time) error { return setDeadlineImpl(fd, t, 'w') } func setDeadlineImpl(fd *FD, t time.Time, mode int) error { var d int64 if !t.IsZero() { d = int64(time.Until(t)) if d == 0 { d = -1 // don't confuse deadline right now with no deadline } } if err := fd.incref(); err != nil { return err } defer fd.decref()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 00:18:59 UTC 2024 - 4.2K bytes - Viewed (0)