Home
last modified time | relevance | path

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

123

/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/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/u-boot/scripts/coccinelle/null/
Dbadzero.cocci102 @ r disable is_zero,isnt_zero exists @
124 @ depends on patch disable is_zero,isnt_zero @
148 @t2 depends on !patch disable is_zero,isnt_zero @
194 @ depends on patch disable is_zero,isnt_zero @
216 @ t3 depends on !patch disable is_zero,isnt_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()
Dservice_thread.cc50 g_heartbeat_for_testing.is_zero() ? kHeartbeat in Init()
Ddelayed_task_manager.cc57 DCHECK(!delay.is_zero()); in AddDelayedTask()
/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/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/v8/src/objects/
Dbigint.cc427 if (x->is_zero()) { in UnaryMinus()
456 if (exponent->is_zero()) { in Exponentiate()
461 if (base->is_zero()) return base; in Exponentiate()
521 if (x->is_zero()) return x; in Multiply()
522 if (y->is_zero()) return y; in Multiply()
554 if (y->is_zero()) { in Divide()
585 if (y->is_zero()) { in Remainder()
647 if (y->is_zero() || x->is_zero()) return x; in LeftShift()
654 if (y->is_zero() || x->is_zero()) return x; in SignedRightShift()
816 } else if (x->is_zero()) { in Decrement()
[all …]
Dbigint.h105 bool is_zero() const { return length() == 0; } in is_zero() function
186 bool ToBoolean() { return !is_zero(); } in ToBoolean()
189 return is_zero() ? 0 : ComputeLongHash(static_cast<uint64_t>(digit(0))); in Hash()
/external/angle/third_party/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/tensorflow/tensorflow/core/kernels/
Ddata_format_ops.h43 auto is_zero = (x_mod == zero); in operator() local
47 y.device(d) = is_zero.select( in operator()
/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/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/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/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()
/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()
Dbrw_vec4_cmod_propagation.cpp71 (inst->opcode != BRW_OPCODE_CMP || inst->src[1].is_zero())) in opt_cmod_propagation_local()
90 if (inst->opcode == BRW_OPCODE_CMP && !inst->src[1].is_zero()) { in opt_cmod_propagation_local()
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dbinary_ops.cc149 auto is_zero = xla::Eq(x, zero); in XlogyImpl() local
150 return xla::Select(is_zero, zero, xla::Mul(x, xla::Log(y))); in XlogyImpl()
167 auto is_zero = xla::Eq(x, zero); in XdivyImpl() local
168 return xla::Select(is_zero, zero, xla::Div(x, y)); in XdivyImpl()
/external/mesa3d/src/compiler/glsl/
Dopt_algebraic.cpp106 return (ir == NULL) ? false : ir->is_zero(); in is_vec_zero()
687 if (op_const[i]->is_zero()) in handle_expression()
898 inner_const->is_zero() && in handle_expression()
905 outer_const->is_zero()) in handle_expression()
910 inner_const->is_zero() && in handle_expression()
917 outer_const->is_zero()) in handle_expression()

123