/external/eigen/test/ |
D | mixingtypes.cpp | 52 Mat_d md = mf.template cast<double>(); in mixingtypes() 55 Mat_cd mcd = mcf.template cast<complex<double> >(); in mixingtypes() 58 Vec_d vd = vf.template cast<double>(); in mixingtypes() 60 Vec_cd vcd = vcf.template cast<complex<double> >(); in mixingtypes() 86 VERIFY_MIX_SCALAR(vf * scf , vf.template cast<complex<float> >() * scf); in mixingtypes() 87 VERIFY_MIX_SCALAR(scd * vd , scd * vd.template cast<complex<double> >()); in mixingtypes() 96 VERIFY_MIX_SCALAR(vf / scf , vf.template cast<complex<float> >() / scf); in mixingtypes() 97 VERIFY_MIX_SCALAR(vf.array() / scf, vf.template cast<complex<float> >().array() / scf); in mixingtypes() 98 VERIFY_MIX_SCALAR(scd / vd.array() , scd / vd.template cast<complex<double> >().array()); in mixingtypes() 103 VERIFY_MIX_SCALAR(vf.array() + scf, vf.template cast<complex<float> >().array() + scf); in mixingtypes() [all …]
|
/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/ |
D | llvm-prefer-isa-or-dyn-cast-in-conditionals.cpp | 8 X *cast(Y*); 15 X *cast(Y *); 22 if (auto x = cast<X>(y)) in foo() 27 while (auto x = cast<X>(y)) in foo() 32 if (cast<X>(y)) in foo() 37 while (cast<X>(y)) in foo() 44 } while (cast<X>(y)); in foo() 74 if (z->bar() && cast<Y>(z->bar())) in foo() 89 bool b = z->bar() && cast<Y>(z->bar()); in foo() 94 if (auto x = cast<Z>(y)->foo()) in foo() [all …]
|
/external/llvm/lib/IR/ |
D | Instruction.cpp | 100 cast<OverflowingBinaryOperator>(this)->setHasNoUnsignedWrap(b); in setHasNoUnsignedWrap() 104 cast<OverflowingBinaryOperator>(this)->setHasNoSignedWrap(b); in setHasNoSignedWrap() 108 cast<PossiblyExactOperator>(this)->setIsExact(b); in setIsExact() 112 return cast<OverflowingBinaryOperator>(this)->hasNoUnsignedWrap(); in hasNoUnsignedWrap() 116 return cast<OverflowingBinaryOperator>(this)->hasNoSignedWrap(); in hasNoSignedWrap() 120 return cast<PossiblyExactOperator>(this)->isExact(); in isExact() 128 cast<FPMathOperator>(this)->setHasUnsafeAlgebra(B); in setHasUnsafeAlgebra() 135 cast<FPMathOperator>(this)->setHasNoNaNs(B); in setHasNoNaNs() 142 cast<FPMathOperator>(this)->setHasNoInfs(B); in setHasNoInfs() 150 cast<FPMathOperator>(this)->setHasNoSignedZeros(B); in setHasNoSignedZeros() [all …]
|
/external/llvm-project/llvm/lib/IR/ |
D | Instruction.cpp | 120 cast<OverflowingBinaryOperator>(this)->setHasNoUnsignedWrap(b); in setHasNoUnsignedWrap() 124 cast<OverflowingBinaryOperator>(this)->setHasNoSignedWrap(b); in setHasNoSignedWrap() 128 cast<PossiblyExactOperator>(this)->setIsExact(b); in setIsExact() 132 return cast<OverflowingBinaryOperator>(this)->hasNoUnsignedWrap(); in hasNoUnsignedWrap() 136 return cast<OverflowingBinaryOperator>(this)->hasNoSignedWrap(); in hasNoSignedWrap() 145 cast<OverflowingBinaryOperator>(this)->setHasNoUnsignedWrap(false); in dropPoisonGeneratingFlags() 146 cast<OverflowingBinaryOperator>(this)->setHasNoSignedWrap(false); in dropPoisonGeneratingFlags() 153 cast<PossiblyExactOperator>(this)->setIsExact(false); in dropPoisonGeneratingFlags() 157 cast<GetElementPtrInst>(this)->setIsInBounds(false); in dropPoisonGeneratingFlags() 165 return cast<PossiblyExactOperator>(this)->isExact(); in isExact() [all …]
|
/external/clang/test/SemaObjCXX/ |
D | objcbridge-static-cast.mm | 31 …pected-error {{cast of C pointer type 'CFTestingRef' (aka '__CFError *') to Objective-C pointer ty… 32 … // expected-note {{use __bridge with C-style cast to convert directly (no change in ownership)}} \ 33 …// expected-note {{use __bridge_transfer with C-style cast to transfer ownership of a +1 'CFTestin… 57 …ected-error {{cast of C pointer type 'CFErrorRef2' (aka '__CFErrorRef *') to Objective-C pointer t… 58 … // expected-note {{__bridge with C-style cast to convert directly (no change in ownership)}} \ 59 …// expected-note {{use __bridge_transfer with C-style cast to transfer ownership of a +1 'CFErrorR… 60 …pected-error {{cast of C pointer type 'CFErrorRef2' (aka '__CFErrorRef *') to Objective-C pointer … 61 … // expected-note {{use __bridge with C-style cast to convert directly (no change in ownership)}} \ 62 …// expected-note {{use __bridge_transfer with C-style cast to transfer ownership of a +1 'CFErrorR… 63 …pected-error {{cast of C pointer type 'CFErrorRef2' (aka '__CFErrorRef *') to Objective-C pointer … [all …]
|
/external/llvm-project/clang/test/SemaObjCXX/ |
D | objcbridge-static-cast.mm | 31 …pected-error {{cast of C pointer type 'CFTestingRef' (aka '__CFError *') to Objective-C pointer ty… 32 … // expected-note {{use __bridge with C-style cast to convert directly (no change in ownership)}} \ 33 …// expected-note {{use __bridge_transfer with C-style cast to transfer ownership of a +1 'CFTestin… 57 …ected-error {{cast of C pointer type 'CFErrorRef2' (aka '__CFErrorRef *') to Objective-C pointer t… 58 … // expected-note {{__bridge with C-style cast to convert directly (no change in ownership)}} \ 59 …// expected-note {{use __bridge_transfer with C-style cast to transfer ownership of a +1 'CFErrorR… 60 …pected-error {{cast of C pointer type 'CFErrorRef2' (aka '__CFErrorRef *') to Objective-C pointer … 61 … // expected-note {{use __bridge with C-style cast to convert directly (no change in ownership)}} \ 62 …// expected-note {{use __bridge_transfer with C-style cast to transfer ownership of a +1 'CFErrorR… 63 …pected-error {{cast of C pointer type 'CFErrorRef2' (aka '__CFErrorRef *') to Objective-C pointer … [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
D | Instruction.cpp | 101 cast<OverflowingBinaryOperator>(this)->setHasNoUnsignedWrap(b); in setHasNoUnsignedWrap() 105 cast<OverflowingBinaryOperator>(this)->setHasNoSignedWrap(b); in setHasNoSignedWrap() 109 cast<PossiblyExactOperator>(this)->setIsExact(b); in setIsExact() 113 return cast<OverflowingBinaryOperator>(this)->hasNoUnsignedWrap(); in hasNoUnsignedWrap() 117 return cast<OverflowingBinaryOperator>(this)->hasNoSignedWrap(); in hasNoSignedWrap() 126 cast<OverflowingBinaryOperator>(this)->setHasNoUnsignedWrap(false); in dropPoisonGeneratingFlags() 127 cast<OverflowingBinaryOperator>(this)->setHasNoSignedWrap(false); in dropPoisonGeneratingFlags() 134 cast<PossiblyExactOperator>(this)->setIsExact(false); in dropPoisonGeneratingFlags() 138 cast<GetElementPtrInst>(this)->setIsInBounds(false); in dropPoisonGeneratingFlags() 146 return cast<PossiblyExactOperator>(this)->isExact(); in isExact() [all …]
|
/external/swiftshader/third_party/subzero/crosstest/ |
D | test_cast.cpp | 22 ToType __attribute__((noinline)) cast(FromType a) { in cast() function 32 ToType __attribute__((noinline)) cast(int i, FromType a, int j) { in cast() function 49 static ToType f(bool a) { return cast<bool, ToType>(a); } in f() 50 static ToType f(myint8_t a) { return cast<myint8_t, ToType>(a); } in f() 51 static ToType f(uint8_t a) { return cast<uint8_t, ToType>(a); } in f() 52 static ToType f(int16_t a) { return cast<int16_t, ToType>(a); } in f() 53 static ToType f(uint16_t a) { return cast<uint16_t, ToType>(a); } in f() 54 static ToType f(int32_t a) { return cast<int32_t, ToType>(a); } in f() 55 static ToType f(uint32_t a) { return cast<uint32_t, ToType>(a); } in f() 56 static ToType f(int64 a) { return cast<int64, ToType>(a); } in f() [all …]
|
/external/tensorflow/tensorflow/python/training/ |
D | ftrl.py | 171 math_ops.cast(self._learning_rate_tensor, var.dtype.base_dtype), 172 math_ops.cast(self._l1_regularization_strength_tensor, 174 math_ops.cast(self._adjusted_l2_regularization_strength_tensor, 176 math_ops.cast(self._learning_rate_power_tensor, var.dtype.base_dtype), 184 math_ops.cast(self._learning_rate_tensor, var.dtype.base_dtype), 185 math_ops.cast(self._l1_regularization_strength_tensor, 187 math_ops.cast(self._adjusted_l2_regularization_strength_tensor, 189 math_ops.cast(self._l2_shrinkage_regularization_strength_tensor, 191 math_ops.cast(self._learning_rate_power_tensor, var.dtype.base_dtype), 203 math_ops.cast(self._learning_rate_tensor, var.dtype.base_dtype), [all …]
|
D | rmsprop.py | 154 math_ops.cast(self._learning_rate_tensor, var.dtype.base_dtype), 155 math_ops.cast(self._decay_tensor, var.dtype.base_dtype), 156 math_ops.cast(self._momentum_tensor, var.dtype.base_dtype), 157 math_ops.cast(self._epsilon_tensor, var.dtype.base_dtype), 165 math_ops.cast(self._learning_rate_tensor, var.dtype.base_dtype), 166 math_ops.cast(self._decay_tensor, var.dtype.base_dtype), 167 math_ops.cast(self._momentum_tensor, var.dtype.base_dtype), 168 math_ops.cast(self._epsilon_tensor, var.dtype.base_dtype), 182 math_ops.cast(self._learning_rate_tensor, grad.dtype.base_dtype), 183 math_ops.cast(self._decay_tensor, grad.dtype.base_dtype), [all …]
|
/external/llvm-project/mlir/lib/CAPI/IR/ |
D | BuiltinAttributes.cpp | 31 return wrap(unwrap(attr).cast<AffineMapAttr>().getValue()); in mlirAffineMapAttrGetValue() 51 return static_cast<intptr_t>(unwrap(attr).cast<ArrayAttr>().size()); in mlirArrayAttrGetNumElements() 55 return wrap(unwrap(attr).cast<ArrayAttr>().getValue()[pos]); in mlirArrayAttrGetElement() 78 return static_cast<intptr_t>(unwrap(attr).cast<DictionaryAttr>().size()); in mlirDictionaryAttrGetNumElements() 84 unwrap(attr).cast<DictionaryAttr>().getValue()[pos]; in mlirDictionaryAttrGetElement() 90 return wrap(unwrap(attr).cast<DictionaryAttr>().get(unwrap(name))); in mlirDictionaryAttrGetElementByName() 112 return unwrap(attr).cast<FloatAttr>().getValueAsDouble(); in mlirFloatAttrGetValueDouble() 128 return unwrap(attr).cast<IntegerAttr>().getInt(); in mlirIntegerAttrGetValueInt() 144 return unwrap(attr).cast<BoolAttr>().getValue(); in mlirBoolAttrGetValue() 172 return wrap(unwrap(attr).cast<OpaqueAttr>().getDialectNamespace().strref()); in mlirOpaqueAttrGetDialectNamespace() [all …]
|
/external/llvm/include/llvm/IR/ |
D | IntrinsicInst.h | 54 return isa<CallInst>(V) && classof(cast<CallInst>(V)); in classof() 76 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V)); in classof() 85 return cast<DILocalVariable>(getRawVariable()); in getVariable() 88 return cast<DIExpression>(getRawExpression()); in getExpression() 92 return cast<MetadataAsValue>(getArgOperand(1))->getMetadata(); in getRawVariable() 95 return cast<MetadataAsValue>(getArgOperand(2))->getMetadata(); in getRawExpression() 103 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V)); in classof() 114 return cast<ConstantInt>( in getOffset() 118 return cast<DILocalVariable>(getRawVariable()); in getVariable() 121 return cast<DIExpression>(getRawExpression()); in getExpression() [all …]
|
/external/rust/crates/num-traits/tests/ |
D | cast.rs | 11 use num_traits::cast::*; 98 assert_eq!(cast::<f64, i32>(source), None); in float_to_integer_checks_overflow() 106 assert_eq!(None, cast::<f64, isize>(big_f)); in cast_to_int_checks_overflow() 107 assert_eq!(None, cast::<f64, i8>(big_f)); in cast_to_int_checks_overflow() 108 assert_eq!(None, cast::<f64, i16>(big_f)); in cast_to_int_checks_overflow() 109 assert_eq!(None, cast::<f64, i32>(big_f)); in cast_to_int_checks_overflow() 110 assert_eq!(None, cast::<f64, i64>(big_f)); in cast_to_int_checks_overflow() 112 assert_eq!(Some(normal_f as isize), cast::<f64, isize>(normal_f)); in cast_to_int_checks_overflow() 113 assert_eq!(Some(normal_f as i8), cast::<f64, i8>(normal_f)); in cast_to_int_checks_overflow() 114 assert_eq!(Some(normal_f as i16), cast::<f64, i16>(normal_f)); in cast_to_int_checks_overflow() [all …]
|
/external/llvm-project/debuginfo-tests/llvm-prettyprinters/gdb/ |
D | mlir-support.gdb | 21 # CHECK: cast<mlir::IndexType> 24 # CHECK: cast<mlir::IntegerType> 29 # CHECK: cast<mlir::Float32Type> 32 # CHECK: cast<mlir::MemRefType> 38 # CHECK: cast<mlir::UnrankedMemRefType> 42 # CHECK: cast<mlir::VectorType> 48 # CHECK: cast<mlir::TupleType> 56 # CHECK: cast<mlir::UnknownLoc> 59 # CHECK: cast<mlir::FileLineColLoc> 65 # CHECK: cast<mlir::OpaqueLoc> [all …]
|
/external/llvm-project/llvm/lib/Transforms/Coroutines/ |
D | CoroInstr.h | 57 return cast<ConstantInt>(getArgOperand(IndexArg)); in getRawIndex() 65 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V)); in classof() 77 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V)); in classof() 108 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V)); in classof() 121 : cast<AllocaInst>(Arg->stripPointerCasts()); in getPromise() 134 auto *Inst = cast<Instruction>(Arg); in clearPromise() 173 Result.Resumers = cast<ConstantArray>(Initializer); in getInfo() 177 return cast<Constant>(getArgOperand(InfoArg)->stripPointerCasts()); in getRawInfo() 183 return cast<Function>(getArgOperand(CoroutineArg)->stripPointerCasts()); in getCoroutine() 198 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V)); in classof() [all …]
|
/external/skqp/third_party/skcms/src/ |
D | Transform_inl.h | 102 SI D cast(const S& v) { in cast() function 126 SI I32 to_fixed(F f) { return cast<I32>(f + 0.5f); } in to_fixed() 147 U32 wide = cast<U32>(half); in F_from_Half() 179 return cast<U16>(if_then_else(em < 0x38800000, (U32)F0 in Half_from_F() 217 F roundtrip = cast<F>(cast<I32>(x)); in floor_() 230 F e = cast<F>(bits) * (1.0f / (1<<23)); in approx_log2() 243 I32 bits = cast<I32>((1.0f * (1<<23)) * (x + 121.274057500f in approx_exp2() 496 return cast<F>(v) * (1/255.0f); in F_from_U8() 503 return cast<F>(v) * (1/65535.0f); in F_from_U16_BE() 515 I32 lo = cast<I32>( ix ), in table() [all …]
|
/external/rust/crates/criterion/src/stats/univariate/ |
D | percentiles.rs | 2 use cast::{self, usize}; 13 usize: cast::From<A, Output = Result<usize, cast::Error>>, 21 let _100 = A::cast(100); in at_unchecked() 22 debug_assert!(p >= A::cast(0) && p <= _100); in at_unchecked() 29 let rank = (p / _100) * A::cast(len); in at_unchecked() 46 let _0 = A::cast(0); in at() 47 let _100 = A::cast(100); in at() 58 let q1 = self.at_unchecked(A::cast(25)); in iqr() 59 let q3 = self.at_unchecked(A::cast(75)); in iqr() 67 unsafe { self.at_unchecked(A::cast(50)) } in median() [all …]
|
/external/llvm-project/clang-tools-extra/unittests/clang-query/ |
D | QueryParserTest.cpp | 37 EXPECT_EQ("unknown command: foo", cast<InvalidQuery>(Q)->ErrStr); in TEST_F() 46 EXPECT_EQ("unexpected extra input: ' me'", cast<InvalidQuery>(Q)->ErrStr); in TEST_F() 58 EXPECT_EQ("unexpected extra input: ' me'", cast<InvalidQuery>(Q)->ErrStr); in TEST_F() 64 EXPECT_EQ("expected variable name", cast<InvalidQuery>(Q)->ErrStr); in TEST_F() 68 EXPECT_EQ("unknown variable: 'foo'", cast<InvalidQuery>(Q)->ErrStr); in TEST_F() 73 cast<InvalidQuery>(Q)->ErrStr); in TEST_F() 77 EXPECT_EQ("unexpected extra input: ' foo'", cast<InvalidQuery>(Q)->ErrStr); in TEST_F() 82 cast<InvalidQuery>(Q)->ErrStr); in TEST_F() 86 EXPECT_EQ(&QuerySession::DetailedASTOutput, cast<SetExclusiveOutputQuery>(Q)->Var); in TEST_F() 90 EXPECT_EQ(&QuerySession::DetailedASTOutput, cast<SetExclusiveOutputQuery>(Q)->Var); in TEST_F() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Coroutines/ |
D | CoroInstr.h | 57 return cast<ConstantInt>(getArgOperand(IndexArg)); in getRawIndex() 65 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V)); in classof() 77 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V)); in classof() 108 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V)); in classof() 121 : cast<AllocaInst>(Arg->stripPointerCasts()); in getPromise() 134 auto *Inst = cast<Instruction>(Arg); in clearPromise() 173 Result.Resumers = cast<ConstantArray>(Initializer); in getInfo() 177 return cast<Constant>(getArgOperand(InfoArg)->stripPointerCasts()); in getRawInfo() 183 return cast<Function>(getArgOperand(CoroutineArg)->stripPointerCasts()); in getCoroutine() 198 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V)); in classof() [all …]
|
/external/swiftshader/third_party/subzero/src/ |
D | IceInstrumentation.cpp | 64 instrumentAlloca(Context, llvm::cast<InstAlloca>(Instr)); in instrumentInst() 67 instrumentArithmetic(Context, llvm::cast<InstArithmetic>(Instr)); in instrumentInst() 70 instrumentBr(Context, llvm::cast<InstBr>(Instr)); in instrumentInst() 73 instrumentCall(Context, llvm::cast<InstCall>(Instr)); in instrumentInst() 76 instrumentCast(Context, llvm::cast<InstCast>(Instr)); in instrumentInst() 79 instrumentExtractElement(Context, llvm::cast<InstExtractElement>(Instr)); in instrumentInst() 82 instrumentFcmp(Context, llvm::cast<InstFcmp>(Instr)); in instrumentInst() 85 instrumentIcmp(Context, llvm::cast<InstIcmp>(Instr)); in instrumentInst() 88 instrumentInsertElement(Context, llvm::cast<InstInsertElement>(Instr)); in instrumentInst() 91 instrumentIntrinsic(Context, llvm::cast<InstIntrinsic>(Instr)); in instrumentInst() [all …]
|
/external/openscreen/ |
D | BUILD.gn | 12 "cast/common:certificate", 13 "cast/common:channel", 14 "cast/common:public", 15 "cast/receiver:channel", 16 "cast/sender:channel", 17 "cast/streaming:receiver", 18 "cast/streaming:sender", 59 "cast/standalone_receiver:cast_receiver", 60 "cast/standalone_sender:cast_sender", 70 "cast/common:unittests", [all …]
|
/external/llvm-project/llvm/test/CodeGen/AArch64/ |
D | arm64-memset-inline.ll | 60 %cast = bitcast [4 x i8]* %buf to i8* 61 call void @llvm.memset.p0i8.i32(i8* %cast, i8 0, i32 4, i1 false) 62 call void @something(i8* %cast) 71 %cast = bitcast [8 x i8]* %buf to i8* 72 call void @llvm.memset.p0i8.i32(i8* %cast, i8 0, i32 8, i1 false) 73 call void @something(i8* %cast) 83 %cast = bitcast [12 x i8]* %buf to i8* 84 call void @llvm.memset.p0i8.i32(i8* %cast, i8 0, i32 12, i1 false) 85 call void @something(i8* %cast) 96 %cast = bitcast [16 x i8]* %buf to i8* [all …]
|
/external/python/cffi/c/ |
D | test_c.py | 108 x = cast(p, -65 + 17*256) 112 x = cast(p, -66 + (1<<199)*256) 115 assert (x == cast(p, -66)) is True 116 assert (x != cast(p, -66)) is False 118 assert (x == cast(q, -66)) is True 119 assert (x != cast(q, -66)) is False 132 assert int(cast(p, min)) == min 133 assert int(cast(p, max)) == max 134 assert int(cast(p, min - 1)) == max 135 assert int(cast(p, max + 1)) == min [all …]
|
/external/angle/src/libGLESv2/ |
D | cl_stubs.cpp | 74 return device->cast<Device>().getInfo(param_name, param_value_size, param_value, in GetDeviceInfo() 84 return in_device->cast<Device>().createSubDevices(properties, num_devices, out_devices, in CreateSubDevices() 90 Device &dev = device->cast<Device>(); in RetainDevice() 100 Device &dev = device->cast<Device>(); in ReleaseDevice() 159 context->cast<Context>().retain(); in RetainContext() 165 Context &ctx = context->cast<Context>(); in ReleaseContext() 179 return context->cast<Context>().getInfo(param_name, param_value_size, param_value, in GetContextInfo() 197 return context->cast<Context>().createCommandQueueWithProperties(device, properties, errorCode); in CreateCommandQueueWithProperties() 202 command_queue->cast<CommandQueue>().retain(); in RetainCommandQueue() 208 CommandQueue &queue = command_queue->cast<CommandQueue>(); in ReleaseCommandQueue() [all …]
|
/external/openscreen/cast/receiver/channel/ |
D | device_auth_namespace_handler.cc | 20 using ::cast::channel::AuthChallenge; 21 using ::cast::channel::AuthError; 22 using ::cast::channel::AuthResponse; 23 using ::cast::channel::CastMessage; 24 using ::cast::channel::DeviceAuthMessage; 25 using ::cast::channel::HashAlgorithm; 26 using ::cast::channel::SignatureAlgorithm; 29 namespace cast { namespace 42 ::cast::channel::CastMessage_ProtocolVersion_CASTV2_1_0); in GenerateErrorMessage() 44 response.set_payload_type(::cast::channel::CastMessage_PayloadType_BINARY); in GenerateErrorMessage() [all …]
|