Home
last modified time | relevance | path

Searched refs:is_zero (Results 1 – 25 of 121) sorted by relevance

12345

/external/rust/crates/num-traits/src/
Didentities.rs28 fn is_zero(&self) -> bool; in is_zero() method
39 fn is_zero(&self) -> bool {
69 fn is_zero(&self) -> bool { in is_zero() function
70 self.0.is_zero() in is_zero()
188 assert_eq!((0 as $t).is_zero(), Wrapping(0 as $t).is_zero()); in wrapping_identities()
189 assert_eq!((1 as $t).is_zero(), Wrapping(1 as $t).is_zero()); in wrapping_identities()
/external/libchrome/crypto/
Dp224.cc51 uint32_t is_zero = 0, is_p = 0; in IsZero() local
53 is_zero |= minimal[i]; in IsZero()
58 is_zero |= is_zero >> 16; in IsZero()
59 is_zero |= is_zero >> 8; in IsZero()
60 is_zero |= is_zero >> 4; in IsZero()
61 is_zero |= is_zero >> 2; in IsZero()
62 is_zero |= is_zero >> 1; in IsZero()
71 is_zero &= is_p & 1; in IsZero()
72 is_zero = (~is_zero) << 31; in IsZero()
73 is_zero = static_cast<int32_t>(is_zero) >> 31; in IsZero()
[all …]
/external/mesa3d/src/gallium/drivers/vc4/
Dvc4_opt_algebraic.c80 is_zero(struct vc4_compile *c, struct qreg reg) in is_zero() function
116 if (!is_zero(c, inst->src[arg])) in replace_x_0_with_x()
127 if (!is_zero(c, inst->src[arg])) in replace_x_0_with_0()
161 if (is_zero(c, inst->src[1]) && in qir_opt_algebraic()
171 if (is_zero(c, inst->src[1])) { in qir_opt_algebraic()
201 if (is_zero(c, fsub->src[0])) { in qir_opt_algebraic()
216 if (is_zero(c, fsub->src[0])) { in qir_opt_algebraic()
/external/rust/crates/tokio-stream/src/stream_ext/
Dthrottle.rs77 if !*me.has_delayed && !is_zero(dur) { in poll_next()
85 if !is_zero(dur) { in poll_next()
96 fn is_zero(dur: Duration) -> bool { in is_zero() function
/external/tensorflow/tensorflow/core/kernels/
Ddata_format_ops.h44 auto is_zero = (x_mod == zero); in operator() local
48 y.device(d) = is_zero.select( in operator()
65 auto is_zero = (x_mod == zero); in operator() local
70 y.device(d) = is_zero.select( in operator()
/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/optimization/
Dfilter_fusion_test.py38 is_zero = lambda x: math_ops.equal(x, 0) function
40 predicates = [take_all, is_zero, greater]
48 is_zero = lambda x, y: math_ops.equal(x * math_ops.cast(y, dtypes.int64), 0) function
51 cases.append((lambda x: (x, 2), "Tuple2", [take_all, is_zero]))
Dmap_and_filter_fusion_test.py48 is_zero = lambda x: math_ops.equal(x, 0) function
51 predicates = [take_all, is_zero, is_odd, greater]
61 is_zero = lambda x, y: math_ops.equal(x * math_ops.cast(y, dtypes.int64), 0) function
62 predicates = [take_all, is_zero]
/external/rust/crates/ring/crypto/limbs/
Dlimbs.c29 Limb is_zero = CONSTTIME_TRUE_W; in LIMBS_are_zero() local
31 is_zero = constant_time_select_w(is_zero, constant_time_is_zero_w(a[i]), in LIMBS_are_zero()
32 is_zero); in LIMBS_are_zero()
34 return is_zero; in LIMBS_are_zero()
/external/libchrome/base/process/
Dprocess_metrics.cc105 if (last_cumulative_cpu_.is_zero()) { in GetPlatformIndependentCPUUsage()
114 DCHECK(!time_delta.is_zero()); in GetPlatformIndependentCPUUsage()
115 if (time_delta.is_zero()) in GetPlatformIndependentCPUUsage()
/external/libchrome/base/task_scheduler/
Dtask.cc30 delay.is_zero() ? TimeTicks() : TimeTicks::Now() + delay, in Task()
35 (!delay.is_zero() && in Task()
/external/tensorflow/tensorflow/compiler/xla/client/lib/
Dlogdet.cc50 auto is_zero = Eq(a, ScalarLike(a, 0)); in LogDet() local
52 ConvertElementType(And(in_lower_triangle, is_zero), S32), "...a->..."); in LogDet()
/external/deqp-deps/glslang/SPIRV/
Dhex_float.h688 const bool is_zero = exponent == 0 && fraction == 0;
689 const bool is_denorm = exponent == 0 && !is_zero;
696 int_exponent = is_zero ? 0 : int_exponent;
724 os << sign << "0x" << (is_zero ? '0' : '1');
996 bool is_zero = is_denorm && (fraction == 0);
997 if (is_denorm && !is_zero) {
1000 } else if (is_zero) {
1004 if (exponent <= 0 && !is_zero) {
1015 while (exponent < 0 && !is_zero) {
1022 is_zero = true;
/external/angle/third_party/vulkan-deps/glslang/src/SPIRV/
Dhex_float.h688 const bool is_zero = exponent == 0 && fraction == 0;
689 const bool is_denorm = exponent == 0 && !is_zero;
696 int_exponent = is_zero ? 0 : int_exponent;
724 os << sign << "0x" << (is_zero ? '0' : '1');
996 bool is_zero = is_denorm && (fraction == 0);
997 if (is_denorm && !is_zero) {
1000 } else if (is_zero) {
1004 if (exponent <= 0 && !is_zero) {
1015 while (exponent < 0 && !is_zero) {
1022 is_zero = true;
/external/angle/third_party/vulkan-deps/spirv-tools/src/source/util/
Dhex_float.h758 const bool is_zero = exponent == 0 && fraction == 0;
759 const bool is_denorm = exponent == 0 && !is_zero;
766 int_exponent = is_zero ? 0 : int_exponent;
794 os << sign << "0x" << (is_zero ? '0' : '1');
1066 bool is_zero = is_denorm && (fraction == 0);
1067 if (is_denorm && !is_zero) {
1070 } else if (is_zero) {
1074 if (exponent <= 0 && !is_zero) {
1085 while (exponent < 0 && !is_zero) {
1092 is_zero = true;
/external/swiftshader/third_party/SPIRV-Tools/source/util/
Dhex_float.h758 const bool is_zero = exponent == 0 && fraction == 0;
759 const bool is_denorm = exponent == 0 && !is_zero;
766 int_exponent = is_zero ? 0 : int_exponent;
794 os << sign << "0x" << (is_zero ? '0' : '1');
1066 bool is_zero = is_denorm && (fraction == 0);
1067 if (is_denorm && !is_zero) {
1070 } else if (is_zero) {
1074 if (exponent <= 0 && !is_zero) {
1085 while (exponent < 0 && !is_zero) {
1092 is_zero = true;
/external/deqp-deps/SPIRV-Tools/source/util/
Dhex_float.h758 const bool is_zero = exponent == 0 && fraction == 0;
759 const bool is_denorm = exponent == 0 && !is_zero;
766 int_exponent = is_zero ? 0 : int_exponent;
794 os << sign << "0x" << (is_zero ? '0' : '1');
1066 bool is_zero = is_denorm && (fraction == 0);
1067 if (is_denorm && !is_zero) {
1070 } else if (is_zero) {
1074 if (exponent <= 0 && !is_zero) {
1085 while (exponent < 0 && !is_zero) {
1092 is_zero = true;
/external/rust/crates/num-integer/src/
Dlib.rs98 if r.is_zero() { in div_ceil()
173 while !r.0.is_zero() { in extended_gcd()
313 + if m.is_zero() { in next_multiple_of()
509 let lcm = if egcd.gcd.is_zero() {
528 if self.is_zero() && other.is_zero() {
852 let lcm = if egcd.gcd.is_zero() {
870 if self.is_zero() && other.is_zero() {
1064 self.a = if !self.k.is_zero() { in next()
/external/rust/crates/grpcio-sys/grpc/src/core/ext/transport/chttp2/transport/
Dframe_window_update.cc111 bool is_zero = t->flow_control->remote_window() <= 0; in grpc_chttp2_window_update_parser_parse() local
112 if (was_zero && !is_zero) { in grpc_chttp2_window_update_parser_parse()
/external/rust/crates/ring/crypto/fipsmodule/ec/
Dgfp_p384.c70 static inline Limb is_zero(const BN_ULONG a[P384_LIMBS]) { in is_zero() function
198 Limb is_zero = LIMBS_are_zero(a, P384_LIMBS); in GFp_p384_elem_neg() local
203 r[i] = constant_time_select_w(is_zero, 0, r[i]); in GFp_p384_elem_neg()
/external/tensorflow/tensorflow/core/grappler/optimizers/data/
Dfusion_utils_test.cc96 auto *is_zero = graph.mutable_library()->add_function(); in TEST() local
97 *is_zero = test::function::IsZero(); in TEST()
100 FuseFunctions(*xtimes_two, *is_zero, "fused_map_and_filter_function", in TEST()
/external/llvm-project/polly/lib/External/isl/
Disl_polynomial.c808 isl_bool is_zero, is_nan, is_cst; in isl_poly_sum() local
830 is_zero = isl_poly_is_zero(poly1); in isl_poly_sum()
831 if (is_zero < 0) in isl_poly_sum()
833 if (is_zero) { in isl_poly_sum()
838 is_zero = isl_poly_is_zero(poly2); in isl_poly_sum()
839 if (is_zero < 0) in isl_poly_sum()
841 if (is_zero) { in isl_poly_sum()
892 isl_bool is_zero; in isl_poly_sum() local
900 is_zero = isl_poly_is_zero(rec1->p[i]); in isl_poly_sum()
901 if (is_zero < 0) in isl_poly_sum()
[all …]
/external/grpc-grpc/src/core/ext/transport/chttp2/transport/
Dframe_window_update.cc113 bool is_zero = t->flow_control->remote_window() <= 0; in grpc_chttp2_window_update_parser_parse() local
114 if (was_zero && !is_zero) { in grpc_chttp2_window_update_parser_parse()
/external/libchrome/components/timers/
Dalarm_timer_chromeos.cc69 delay.is_zero() ? base::TimeTicks() : base::TimeTicks::Now() + delay); in Reset()
90 if (delay.is_zero()) { in Reset()
/external/mesa3d/src/intel/compiler/
Dbrw_fs_cmod_propagation.cpp245 (inst->opcode != BRW_OPCODE_CMP || inst->src[1].is_zero())) in opt_cmod_propagation_local()
274 if (inst->opcode == BRW_OPCODE_CMP && !inst->src[1].is_zero()) { in opt_cmod_propagation_local()
488 assert(inst->opcode != BRW_OPCODE_CMP || inst->src[1].is_zero()); in opt_cmod_propagation_local()
/external/libpng/contrib/libtests/
Dtarith.c318 int is_zero; /* Number is (still) zero */ member
338 c.is_zero = 0; in check_one_character()
383 (number_is_valid && !c.is_zero && c.is_negative)) in check_one_character()
389 if (PNG_FP_IS_ZERO(c.state) != (number_is_valid && c.is_zero)) in check_one_character()
396 (number_is_valid && !c.is_zero && !c.is_negative)) in check_one_character()
593 control.is_zero = 1; in validation_checkfp()

12345