- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 407 for is_zero (0.13 sec)
-
test/peano.go
return nil } func is_zero(x *Number) bool { return x == nil } func add1(x *Number) *Number { e := new(Number) *e = x return e } func sub1(x *Number) *Number { return *x } func add(x, y *Number) *Number { if is_zero(y) { return x } return add(add1(x), sub1(y)) } func mul(x, y *Number) *Number { if is_zero(x) || is_zero(y) { return zero() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 30 19:39:18 UTC 2018 - 2.2K bytes - Viewed (0) -
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) -
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) -
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) -
src/internal/bytealg/count_s390x.s
// vector 'load with length' (VLL). It will be in the range [-1,14]. // Also replicate c across a 16-byte vector and initialize V_ZERO. ANDW $0xf, R_LEN VLVGB $0, R_CHAR, V_CHAR // V_CHAR = [16]byte{c, 0, ..., 0, 0} VZERO V_ZERO // V_ZERO = [1]uint128{0} ADDW $-1, R_LEN VREPB $0, V_CHAR, V_CHAR // V_CHAR = [16]byte{c, c, ..., c, c} // Jump to loop if we have more than 15 bytes to process.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 15 21:04:43 UTC 2019 - 5.4K bytes - Viewed (0) -
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) -
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) -
src/net/netip/export_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 22 18:14:15 UTC 2024 - 730 bytes - Viewed (0) -
callbacks/create.go
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Mon Apr 08 03:29:55 UTC 2024 - 12.5K bytes - Viewed (0) -
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)