/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/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/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-7.0/llvm/lib/IR/ |
D | Instruction.cpp | 102 cast<OverflowingBinaryOperator>(this)->setHasNoUnsignedWrap(b); in setHasNoUnsignedWrap() 106 cast<OverflowingBinaryOperator>(this)->setHasNoSignedWrap(b); in setHasNoSignedWrap() 110 cast<PossiblyExactOperator>(this)->setIsExact(b); in setIsExact() 114 return cast<OverflowingBinaryOperator>(this)->hasNoUnsignedWrap(); in hasNoUnsignedWrap() 118 return cast<OverflowingBinaryOperator>(this)->hasNoSignedWrap(); in hasNoSignedWrap() 127 cast<OverflowingBinaryOperator>(this)->setHasNoUnsignedWrap(false); in dropPoisonGeneratingFlags() 128 cast<OverflowingBinaryOperator>(this)->setHasNoSignedWrap(false); in dropPoisonGeneratingFlags() 135 cast<PossiblyExactOperator>(this)->setIsExact(false); in dropPoisonGeneratingFlags() 139 cast<GetElementPtrInst>(this)->setIsInBounds(false); in dropPoisonGeneratingFlags() 145 return cast<PossiblyExactOperator>(this)->isExact(); in isExact() [all …]
|
/external/tensorflow/tensorflow/python/training/ |
D | ftrl.py | 162 math_ops.cast(self._learning_rate_tensor, var.dtype.base_dtype), 163 math_ops.cast(self._l1_regularization_strength_tensor, 165 math_ops.cast(self._l2_regularization_strength_tensor, 167 math_ops.cast(self._learning_rate_power_tensor, var.dtype.base_dtype), 175 math_ops.cast(self._learning_rate_tensor, var.dtype.base_dtype), 176 math_ops.cast(self._l1_regularization_strength_tensor, 178 math_ops.cast(self._l2_regularization_strength_tensor, 180 math_ops.cast(self._l2_shrinkage_regularization_strength_tensor, 182 math_ops.cast(self._learning_rate_power_tensor, var.dtype.base_dtype), 194 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/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/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/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/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 instrumentIntrinsicCall(Context, llvm::cast<InstIntrinsicCall>(Instr)); in instrumentInst() [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/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/ |
D | IntrinsicInst.h | 62 return isa<CallInst>(V) && classof(cast<CallInst>(V)); in classof() 81 return cast<DILocalVariable>(getRawVariable()); in getVariable() 85 return cast<DIExpression>(getRawExpression()); in getExpression() 89 return cast<MetadataAsValue>(getArgOperand(1))->getMetadata(); in getRawVariable() 93 return cast<MetadataAsValue>(getArgOperand(2))->getMetadata(); in getRawExpression() 113 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V)); in classof() 129 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V)); in classof() 145 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V)); in classof() 162 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V)); in classof() 171 return cast<DILabel>(getRawVariable()); in getLabel() [all …]
|
/external/skia/third_party/skcms/src/ |
D | Transform_inl.h | 106 SI D cast(const S& v) { in cast() function 131 SI U16 to_fixed(F f) { return cast<U16>(f + 0.5f); } in to_fixed() 133 SI U32 to_fixed(F f) { return (U32)cast<I32>(f + 0.5f); } in to_fixed() 165 U32 wide = cast<U32>(half); in F_from_Half() 199 return cast<U16>(if_then_else(em < 0x38800000, (U32)F0 in Half_from_F() 250 F roundtrip = cast<F>(cast<I32>(x)); in floor_() 267 F e = cast<F>(bits) * (1.0f / (1<<23)); in approx_log2() 290 I32 bits = cast<I32>((1.0f * (1<<23)) * (x + 121.274057500f in approx_exp2() 611 return cast<F>(v) * (1/255.0f); in F_from_U8() 619 return cast<F>(lo|hi) * (1/65535.0f); in F_from_U16_BE() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/ |
D | FunctionComparator.cpp | 265 const auto *SeqR = cast<ConstantDataSequential>(R); in cmpConstants() 279 const APInt &LInt = cast<ConstantInt>(L)->getValue(); in cmpConstants() 280 const APInt &RInt = cast<ConstantInt>(R)->getValue(); in cmpConstants() 284 const APFloat &LAPF = cast<ConstantFP>(L)->getValueAPF(); in cmpConstants() 285 const APFloat &RAPF = cast<ConstantFP>(R)->getValueAPF(); in cmpConstants() 289 const ConstantArray *LA = cast<ConstantArray>(L); in cmpConstants() 290 const ConstantArray *RA = cast<ConstantArray>(R); in cmpConstants() 291 uint64_t NumElementsL = cast<ArrayType>(TyL)->getNumElements(); in cmpConstants() 292 uint64_t NumElementsR = cast<ArrayType>(TyR)->getNumElements(); in cmpConstants() 296 if (int Res = cmpConstants(cast<Constant>(LA->getOperand(i)), in cmpConstants() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/InstSimplify/ |
D | bitcast-vector-fold.ll | 82 %cast = bitcast i64 -1 to <2 x float> 83 ret <2 x float> %cast 91 %cast = bitcast i128 -1 to <2 x double> 92 ret <2 x double> %cast 99 %cast = bitcast i32 -1 to <1 x float> 100 ret <1 x float> %cast 107 %cast = bitcast <1 x i32 ><i32 -1> to float 108 ret float %cast 115 %cast = bitcast <2 x i32 ><i32 -1, i32 -1> to double 116 ret double %cast [all …]
|
/external/mesa3d/src/compiler/nir/ |
D | nir_deref.c | 30 is_trivial_deref_cast(nir_deref_instr *cast) in is_trivial_deref_cast() argument 32 nir_deref_instr *parent = nir_src_as_deref(cast->parent); in is_trivial_deref_cast() 36 return cast->modes == parent->modes && in is_trivial_deref_cast() 37 cast->type == parent->type && in is_trivial_deref_cast() 38 cast->dest.ssa.num_components == parent->dest.ssa.num_components && in is_trivial_deref_cast() 39 cast->dest.ssa.bit_size == parent->dest.ssa.bit_size; in is_trivial_deref_cast() 261 return deref->cast.ptr_stride; in nir_deref_instr_array_stride() 690 new_deref->cast.ptr_stride = deref->cast.ptr_stride; in rematerialize_deref_in_block() 822 is_trivial_array_deref_cast(nir_deref_instr *cast) in is_trivial_array_deref_cast() argument 824 assert(is_trivial_deref_cast(cast)); in is_trivial_array_deref_cast() [all …]
|
/external/python/cffi/testing/cffi1/ |
D | test_new_ffi_1.py | 139 p = ffi.cast(c_decl, min) 143 p = ffi.cast(c_decl, max) 145 p = ffi.cast(c_decl, long(max)) 147 q = ffi.cast(c_decl, min - 1) 149 q = ffi.cast(c_decl, long(min - 1)) 208 p = ffi.new("int[4]", [ffi.cast("int", -5)]) 247 assert p[0] == ffi.cast("int *", a) 249 p = ffi.cast("int *", a) 257 p = ffi.cast("int*", 0) 260 assert p == ffi.cast("int*", 0) [all …]
|
/external/eigen/blas/ |
D | double.cpp | 26 …*incx==1 && *incy==1) return (make_vector(x,*n).cast<double>().cwiseProduct(make_vector(y,*n).c… in BLASFUNC() 27 …x>0 && *incy>0) return (make_vector(x,*n,*incx).cast<double>().cwiseProduct(make_vector(y,*n,*incy… in BLASFUNC() 28 …y>0) return (make_vector(x,*n,-*incx).reverse().cast<double>().cwiseProduct(make_vector(y,*n,*incy… in BLASFUNC() 29 …& *incy<0) return (make_vector(x,*n,*incx).cast<double>().cwiseProduct(make_vector(y,*n,-*incy).re… in BLASFUNC() 30 …return (make_vector(x,*n,-*incx).reverse().cast<double>().cwiseProduct(make_vector(y,*n,-*incy).re… in BLASFUNC()
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/AArch64/ |
D | tbi.ll | 11 %cast = inttoptr i64 %and to i32* 12 %load = load i32, i32* %cast 22 %cast = inttoptr i64 %and to i32* 23 %gep = getelementptr i32, i32* %cast, i64 4 34 %cast = inttoptr i64 %and to i32* 35 %load = load i32, i32* %cast 44 %cast = inttoptr i64 %and to i64* 45 %load = load i64, i64* %cast 54 %cast = inttoptr i64 %and to i32* 55 store i32 %v, i32* %cast [all …]
|
/external/swiftshader/src/Reactor/ |
D | Traits.hpp | 86 static Bool cast(bool); 92 static Byte cast(uint8_t); 98 static SByte cast(int8_t); 104 static Short cast(int16_t); 110 static UShort cast(uint16_t); 116 static Int cast(int32_t); 122 static UInt cast(uint32_t); 128 static Float cast(float); 134 static Float4 cast(float[4]); 158 static inline type cast(const T *v); // implemented in Traits.inl [all …]
|
/external/lua/src/ |
D | lopcodes.h | 89 #define GET_OPCODE(i) (cast(OpCode, ((i)>>POS_OP) & MASK1(SIZE_OP,0))) 91 ((cast(Instruction, o)<<POS_OP)&MASK1(SIZE_OP,POS_OP)))) 93 #define getarg(i,pos,size) (cast(int, ((i)>>pos) & MASK1(size,0))) 95 ((cast(Instruction, v)<<pos)&MASK1(size,pos)))) 113 #define SETARG_sBx(i,b) SETARG_Bx((i),cast(unsigned int, (b)+MAXARG_sBx)) 116 #define CREATE_ABC(o,a,b,c) ((cast(Instruction, o)<<POS_OP) \ 117 | (cast(Instruction, a)<<POS_A) \ 118 | (cast(Instruction, b)<<POS_B) \ 119 | (cast(Instruction, c)<<POS_C)) 121 #define CREATE_ABx(o,a,bc) ((cast(Instruction, o)<<POS_OP) \ [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/SystemZ/ |
D | tdc-04.ll | 11 %cast = bitcast float %x to i32 12 %res = icmp slt i32 %cast, 0 21 %cast = bitcast float %x to i32 22 %res = icmp sgt i32 %cast, -1 31 %cast = bitcast double %x to i64 32 %res = icmp slt i64 %cast, 0 41 %cast = bitcast double %x to i64 42 %res = icmp sgt i64 %cast, -1 51 %cast = bitcast fp128 %x to i128 52 %res = icmp slt i128 %cast, 0 [all …]
|
/external/llvm/test/CodeGen/SystemZ/ |
D | tdc-04.ll | 11 %cast = bitcast float %x to i32 12 %res = icmp slt i32 %cast, 0 21 %cast = bitcast float %x to i32 22 %res = icmp sgt i32 %cast, -1 31 %cast = bitcast double %x to i64 32 %res = icmp slt i64 %cast, 0 41 %cast = bitcast double %x to i64 42 %res = icmp sgt i64 %cast, -1 51 %cast = bitcast fp128 %x to i128 52 %res = icmp slt i128 %cast, 0 [all …]
|
/external/clang/lib/Analysis/ |
D | ThreadSafetyLogical.cpp | 50 return RNeg ? RightOrOperator(cast<And>(RHS)) in implies() 51 : RightAndOperator(cast<And>(RHS)); in implies() 57 return RNeg ? RightAndOperator(cast<Or>(RHS)) in implies() 58 : RightOrOperator(cast<Or>(RHS)); in implies() 62 return implies(LHS, LNeg, cast<Not>(RHS)->exp(), !RNeg); in implies() 75 return LNeg ? LeftAndOperator(cast<And>(LHS)) in implies() 76 : LeftOrOperator(cast<And>(LHS)); in implies() 82 return LNeg ? LeftOrOperator(cast<Or>(LHS)) in implies() 83 : LeftAndOperator(cast<Or>(LHS)); in implies() 87 return implies(cast<Not>(LHS)->exp(), !LNeg, RHS, RNeg); in implies() [all …]
|
/external/tensorflow/tensorflow/compiler/xla/python/ |
D | types.h | 163 static handle cast(xla::Status src, return_value_policy /* policy */, 180 static handle cast(xla::StatusOr<T> src, return_value_policy policy, 185 return value_conv::cast(std::forward<xla::StatusOr<T>>(src).ValueOrDie(), 270 getattr(handle, "input_batch_dimension").cast<xla::int64>()); 272 getattr(handle, "input_feature_dimension").cast<xla::int64>()); 274 getattr(handle, "output_batch_dimension").cast<xla::int64>()); 276 getattr(handle, "output_feature_dimension").cast<xla::int64>()); 278 getattr(handle, "kernel_input_feature_dimension").cast<xla::int64>()); 280 getattr(handle, "kernel_output_feature_dimension").cast<xla::int64>()); 283 .cast<std::vector<xla::int64>>(); [all …]
|