/external/mesa3d/src/compiler/nir/ |
D | nir_lower_frexp.c | 35 nir_ssa_def *abs_x = nir_fabs(b, x); in lower_frexp_sig() local 38 nir_ssa_def *is_not_zero = nir_fneu(b, abs_x, zero); in lower_frexp_sig() 110 nir_ssa_def *abs_x = nir_fabs(b, x); in lower_frexp_exp() local 112 nir_ssa_def *is_not_zero = nir_fneu(b, abs_x, zero); in lower_frexp_exp() 123 exponent = nir_i2i32(b, nir_iadd(b, nir_ushr(b, abs_x, exponent_shift), in lower_frexp_exp() 131 exponent = nir_iadd(b, nir_ushr(b, abs_x, exponent_shift), in lower_frexp_exp() 140 nir_ssa_def *abs_upper_x = nir_unpack_64_2x32_split_y(b, abs_x); in lower_frexp_exp()
|
/external/tensorflow/tensorflow/core/kernels/special_math/ |
D | special_math_op_misc_impl.h | 135 Scalar abs_x = pabs(x); in EIGEN_EMPTY_STRUCT_CTOR() local 138 if (abs_x < a) { in EIGEN_EMPTY_STRUCT_CTOR() 139 dawsn = generic_dawsn_interval_1<Scalar>(abs_x); in EIGEN_EMPTY_STRUCT_CTOR() 140 } else if (abs_x < b) { in EIGEN_EMPTY_STRUCT_CTOR() 141 dawsn = generic_dawsn_interval_2<Scalar>(abs_x); in EIGEN_EMPTY_STRUCT_CTOR() 142 } else if (abs_x < c) { in EIGEN_EMPTY_STRUCT_CTOR() 143 dawsn = generic_dawsn_interval_3<Scalar>(abs_x); in EIGEN_EMPTY_STRUCT_CTOR() 544 const Scalar abs_x = numext::abs(x); in EIGEN_EMPTY_STRUCT_CTOR() local 546 if (abs_x > b) { in EIGEN_EMPTY_STRUCT_CTOR() 557 fresnel_cos = generic_fresnel_cos_interval_1<Scalar>(abs_x); in EIGEN_EMPTY_STRUCT_CTOR() [all …]
|
/external/llvm-project/compiler-rt/test/fuzzer/ |
D | AbsNegAndConstantTest.cpp | 18 volatile int abs_x = abs(x); in LLVMFuzzerTestOneInput() local 19 if (abs_x < 0 && y == 0xbaddcafe) { in LLVMFuzzerTestOneInput()
|
D | AbsNegAndConstant64Test.cpp | 18 volatile int64_t abs_x = llabs(x); in LLVMFuzzerTestOneInput() local 19 if (abs_x < 0 && y == 0xbaddcafedeadbeefULL) { in LLVMFuzzerTestOneInput()
|
/external/tensorflow/tensorflow/compiler/xla/service/llvm_ir/ |
D | math_ops.cc | 28 auto abs_x = in EmitFastTanh() local 31 b->CreateFCmpOLT(abs_x, llvm::ConstantFP::get(type, kCanUseApprox)); in EmitFastTanh()
|
/external/tensorflow/tensorflow/compiler/mlir/hlo/lib/Dialect/mhlo/transforms/ |
D | chlo_legalize_to_hlo.cc | 134 Value abs_x = rewriter.create<mhlo::AbsOp>(loc, x); in MaterializeErfcApproximationF64ForMagnituteGEOne() local 135 Value poly_p = MaterializePolynomialApproximation(rewriter, loc, abs_x, in MaterializeErfcApproximationF64ForMagnituteGEOne() 138 Value poly_q = MaterializePolynomialApproximation(rewriter, loc, abs_x, in MaterializeErfcApproximationF64ForMagnituteGEOne() 145 Value poly_r = MaterializePolynomialApproximation(rewriter, loc, abs_x, in MaterializeErfcApproximationF64ForMagnituteGEOne() 148 Value poly_s = MaterializePolynomialApproximation(rewriter, loc, abs_x, in MaterializeErfcApproximationF64ForMagnituteGEOne() 157 Value abs_x_lt_8 = rewriter.create<mhlo::CompareOp>(loc, abs_x, eight, kLT); in MaterializeErfcApproximationF64ForMagnituteGEOne() 228 Value abs_x = rewriter.create<mhlo::AbsOp>(loc, x); in MaterializeErfApproximationF64() local 231 Value abs_x_lt_one = rewriter.create<mhlo::CompareOp>(loc, abs_x, one, kLT); in MaterializeErfApproximationF64() 255 Value abs_x = rewriter.create<mhlo::AbsOp>(loc, x); in MaterializeErfcApproximationF64() local 258 Value abs_x_lt_one = rewriter.create<mhlo::CompareOp>(loc, abs_x, one, kLT); in MaterializeErfcApproximationF64() [all …]
|
/external/libkmsxx/utils/ |
D | kmstouch.cpp | 166 int32_t abs_x = s_abs_vals[ABS_X]; in handle_event() local 169 int32_t x = (abs_x - min_x) * (fb->width() - 1) / (max_x - min_x); in handle_event() 172 printf("%d, %d -> %d, %d\n", abs_x, abs_y, x, y); in handle_event()
|
/external/mesa3d/src/compiler/spirv/ |
D | vtn_glsl450.c | 203 nir_ssa_def *abs_x = nir_fabs(b, x); in build_asin() local 205 nir_ssa_def *p0_plus_xp1 = nir_fadd_imm(b, nir_fmul_imm(b, abs_x, p1), p0); in build_asin() 208 nir_fadd_imm(b, nir_fmul(b, abs_x, in build_asin() 209 nir_fadd_imm(b, nir_fmul(b, abs_x, in build_asin() 216 nir_fmul(b, nir_fsqrt(b, nir_fsub(b, one, abs_x)), in build_asin() 237 return nir_bcsel(b, nir_flt(b, abs_x, half), result1, result0); in build_asin()
|
/external/tensorflow/tensorflow/compiler/xla/client/lib/ |
D | math.cc | 189 XlaOp abs_x = Abs(x); in ErfcImpl32() local 191 XlaOp q = ScalarLike(x, 1) / abs_x; in ErfcImpl32() 193 XlaOp p = Select(Lt(abs_x, ScalarLike(x, 2.0)), in ErfcImpl32() 247 XlaOp abs_x = Abs(x); in ErfcImpl64() local 249 Select(Lt(abs_x, ScalarLike(x, 8.0)), in ErfcImpl64() 250 Exp(z) * EvaluatePolynomial<double>(abs_x, kErfcPCoefficient) / in ErfcImpl64() 251 EvaluatePolynomial<double>(abs_x, kErfcQCoefficient), in ErfcImpl64() 252 Exp(z) * EvaluatePolynomial<double>(abs_x, kErfcRCoefficient) / in ErfcImpl64() 253 EvaluatePolynomial<double>(abs_x, kErfcSCoefficient)); in ErfcImpl64()
|
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/ |
D | binary_ops.cc | 137 auto abs_x = xla::Abs(x); in FloorDivImpl() local 139 auto t = xla::Neg(xla::Sub(xla::Add(abs_x, abs_y), one)); in FloorDivImpl()
|
/external/tensorflow/tensorflow/core/kernels/ |
D | cwise_ops.h | 398 T abs_x = (x < T(0)) ? -x : x; 401 T abs_x = std::abs(x); 404 return -(abs_x + abs_y - 1) / abs_y; 416 Packet abs_x = pabs(x); 419 Packet ratio_rounded = pdiv(pnegate(psub(padd(abs_x, abs_y), ones)), abs_y);
|
/external/mesa3d/src/gallium/auxiliary/gallivm/ |
D | lp_bld_tgsi_action.c | 440 LLVMValueRef abs_x, log_abs_x, flr_log_abs_x, ex2_flr_log_abs_x; in log_emit() local 443 abs_x = lp_build_abs(&bld_base->base, emit_data->args[0] /* src0.x */); in log_emit() 447 abs_x); in log_emit() 461 TGSI_OPCODE_DIV, abs_x, ex2_flr_log_abs_x); in log_emit()
|
/external/tensorflow/tensorflow/compiler/mlir/xla/transforms/ |
D | legalize_tf_patterns.td | 129 // T abs_x = std::abs(x); 131 // return -(abs_x + abs_y - 1) / abs_y;
|
/external/tensorflow/tensorflow/compiler/mlir/hlo/include/mlir-hlo/Dialect/mhlo/transforms/ |
D | map_lmhlo_to_scalar_op.h | 426 Value abs_x = b->create<::mlir::AbsFOp>(loc, args[0]); 427 return b->create<::mlir::CmpFOp>(loc, CmpFPredicate::ONE, abs_x,
|
/external/tensorflow/tensorflow/compiler/xla/service/ |
D | elemental_ir_emitter.cc | 1383 auto abs_x = in EmitLog1p() local 1386 abs_x, llvm::ConstantFP::get(type, kAntilogarithmIsSmallThreshold)); in EmitLog1p() 1441 auto abs_x = in EmitExpm1() local 1444 FCmpOLT(abs_x, llvm::ConstantFP::get(type, kExponentIsSmallThreshold)); in EmitExpm1()
|
/external/python/cpython3/Modules/_decimal/libmpdec/ |
D | mpdecimal.c | 6601 MPD_NEW_SHARED(abs_x, x); in _qcheck_pow_bounds() 6605 mpd_set_positive(&abs_x); in _qcheck_pow_bounds() 6608 lb_zeta = _lower_bound_zeta(&abs_x, status); in _qcheck_pow_bounds() 6614 sign = (mpd_adjexp(&abs_x) < 0) ^ mpd_sign(y); in _qcheck_pow_bounds()
|