Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 388 for is_zero (0.22 sec)

  1. src/cmd/vendor/golang.org/x/arch/arm64/arm64asm/condition.go

    }
    
    func mov_movn_32_movewide_cond(instr uint32) bool {
    	return !(is_zero((instr>>5)&0xffff) && (instr>>21)&0x3 != 0x0) && !is_ones_n16((instr>>5)&0xffff)
    }
    
    func mov_movn_64_movewide_cond(instr uint32) bool {
    	return !(is_zero((instr>>5)&0xffff) && (instr>>21)&0x3 != 0x0)
    }
    
    func mov_add_32_addsub_imm_cond(instr uint32) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 16 22:24:28 UTC 2022
    - 9.6K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/arch/arm64/arm64asm/condition_util.go

    	sys_DC
    	sys_IC
    	sys_TLBI
    	sys_SYS
    )
    
    func sys_op_4(op1, crn, crm, op2 uint32) sys {
    	sysInst := sysInstFields{uint8(op1), uint8(crn), uint8(crm), uint8(op2)}
    	return sysInst.getType()
    }
    
    func is_zero(x uint32) bool {
    	return x == 0
    }
    
    func is_ones_n16(x uint32) bool {
    	return x == 0xffff
    }
    
    func bit_count(x uint32) uint8 {
    	var count uint8
    	for count = 0; x > 0; x >>= 1 {
    		if (x & 1) == 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 16 22:24:28 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/tests/lower_tf.mlir

      // CHECK:  %[[IS_ZERO:.*]] = "tf.Equal"(%[[Y]], %[[ZERO]]) <{incompatible_shape_error = true}> : (tensor<*xf32>, tensor<f32>) -> tensor<*xi1>
      // CHECK:  %[[DIV:.*]] = "tf.Div"(%[[X]], %[[Y]]) : (tensor<*xf32>, tensor<*xf32>) -> tensor<*xf32>
      // CHECK:  %[[RESULT:.*]] = "tf.SelectV2"(%[[IS_ZERO]], %[[ZERO]], %[[DIV]]) : (tensor<*xi1>, tensor<f32>, tensor<*xf32>) -> tensor<*xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jan 05 18:35:42 UTC 2024
    - 92K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_patterns.td

              [(ValueEquals<"0.0"> $cst_zero),
               (ValueEquals<"-1.0"> $cst_neg1),
               (TensorIsSign $cstv, $cst_sgn),
               (ValueIsReciprocal $cstv, $cst_recip),
               (SameValue $mul, $mul1),
               (SameValue $rem, $rem1),
               (SameValue $rem, $rem2),
               (FloatOrDefaultCompare $compare_type, $cst_zero),
               (FloatOrDefaultCompare $compare_type1, $cst_sgn)]>;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Feb 03 08:58:22 UTC 2024
    - 34K bytes
    - Viewed (0)
  5. pkg/kubelet/util/node_startup_latency_tracker.go

    	n.lock.Lock()
    	defer n.lock.Unlock()
    
    	if !n.firstRegistrationAttemptTime.IsZero() {
    		return
    	}
    
    	n.firstRegistrationAttemptTime = n.clock.Now()
    }
    
    func (n *basicNodeStartupLatencyTracker) RecordRegisteredNewNode() {
    	n.lock.Lock()
    	defer n.lock.Unlock()
    
    	if n.firstRegistrationAttemptTime.IsZero() || !n.firstRegisteredNewNodeTime.IsZero() {
    		return
    	}
    
    	n.firstRegisteredNewNodeTime = n.clock.Now()
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 11 05:54:25 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  6. src/net/netip/export_test.go

    	return Addr{u, z}
    }
    
    func IPv4(a, b, c, d uint8) Addr { return AddrFrom4([4]byte{a, b, c, d}) }
    
    var TestAppendToMarshal = testAppendToMarshal
    
    func (a Addr) IsZero() bool   { return a.isZero() }
    func (p Prefix) IsZero() bool { return p.isZero() }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 18:14:15 UTC 2024
    - 730 bytes
    - Viewed (0)
  7. callbacks/create.go

    							break
    						}
    
    						if _, isZero := pkField.ValueOf(db.Statement.Context, rv); isZero {
    							db.AddError(pkField.Set(db.Statement.Context, rv, insertID))
    							insertID += pkField.AutoIncrementIncrement
    						}
    					}
    				}
    			case reflect.Struct:
    				_, isZero := pkField.ValueOf(db.Statement.Context, db.Statement.ReflectValue)
    				if isZero {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Apr 08 03:29:55 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time_proto.go

    func (m *MicroTime) Marshal() (data []byte, err error) {
    	if m == nil || m.Time.IsZero() {
    		return nil, nil
    	}
    	return m.ProtoMicroTime().Marshal()
    }
    
    // MarshalTo implements the protobuf marshalling interface.
    func (m *MicroTime) MarshalTo(data []byte) (int, error) {
    	if m == nil || m.Time.IsZero() {
    		return 0, nil
    	}
    	return m.ProtoMicroTime().MarshalTo(data)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 02 08:21:04 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  9. callbacks/update.go

    			if size := stmt.ReflectValue.Len(); size > 0 {
    				var isZero bool
    				for i := 0; i < size; i++ {
    					for _, field := range stmt.Schema.PrimaryFields {
    						_, isZero = field.ValueOf(stmt.Context, stmt.ReflectValue.Index(i))
    						if !isZero {
    							break
    						}
    					}
    				}
    
    				if !isZero {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Mar 18 05:44:55 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/time.go

    }
    
    // Now returns the current local time.
    func Now() Time {
    	return Time{time.Now()}
    }
    
    // IsZero returns true if the value is nil or time is zero.
    func (t *Time) IsZero() bool {
    	if t == nil {
    		return true
    	}
    	return t.Time.IsZero()
    }
    
    // Before reports whether the time instant t is before u.
    func (t *Time) Before(u *Time) bool {
    	if t != nil && u != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:09 UTC 2024
    - 5.2K bytes
    - Viewed (0)
Back to top