/external/clang/test/PCH/ |
cxx-chain-function-template.cpp | 9 T cast(U u) { function 14 cast<float>(1); 22 cast<CXXRecordDecl>(1.0f); 28 cast<CXXRecordDecl>(1.0f);
|
/external/eigen/blas/ |
double.cpp | 26 if(*incx==1 && *incy==1) return (make_vector(x,*n).cast<double>().cwiseProduct(make_vector(y,*n).cast<double>())).sum(); 27 else if(*incx>0 && *incy>0) return (make_vector(x,*n,*incx).cast<double>().cwiseProduct(make_vector(y,*n,*incy).cast<double>())).sum(); 28 else if(*incx<0 && *incy>0) return (make_vector(x,*n,-*incx).reverse().cast<double>().cwiseProduct(make_vector(y,*n,*incy).cast<double>())).sum(); 29 else if(*incx>0 && *incy<0) return (make_vector(x,*n,*incx).cast<double>().cwiseProduct(make_vector(y,*n,-*incy).reverse().cast<double>())).sum(); 30 else if(*incx<0 && *incy<0) return (make_vector(x,*n,-*incx).reverse().cast<double>().cwiseProduct(make_vector(y,*n,-*incy).reverse().cast<double>())).sum() [all...] |
/external/swiftshader/third_party/subzero/crosstest/ |
test_cast.cpp | 1 //===- subzero/crosstest/test_cast.cpp - Cast operator tests --------------===// 10 // Implementation for crosstesting cast operations. 22 ToType __attribute__((noinline)) cast(FromType a) { function 32 ToType __attribute__((noinline)) cast(int i, FromType a, int j) { function 46 // cast<A,B>() to be instantiated in the resulting bitcode file for 49 static ToType f(bool a) { return cast<bool, ToType>(a); } 50 static ToType f(myint8_t a) { return cast<myint8_t, ToType>(a); } 51 static ToType f(uint8_t a) { return cast<uint8_t, ToType>(a); } 52 static ToType f(int16_t a) { return cast<int16_t, ToType>(a); } 53 static ToType f(uint16_t a) { return cast<uint16_t, ToType>(a); [all...] |
test_cast.h | 10 // This file declares the function prototypes used for crosstesting cast 22 template <typename FromType, typename ToType> ToType cast(FromType a); 27 // Overloaded cast and castBits functions take two extra integer argument to 30 ToType cast(int i, FromType a, int j);
|
/external/clang/lib/Analysis/ |
ThreadSafetyLogical.cpp | 50 return RNeg ? RightOrOperator(cast<And>(RHS)) 51 : RightAndOperator(cast<And>(RHS)); 57 return RNeg ? RightAndOperator(cast<Or>(RHS)) 58 : RightOrOperator(cast<Or>(RHS)); 62 return implies(LHS, LNeg, cast<Not>(RHS)->exp(), !RNeg); 75 return LNeg ? LeftAndOperator(cast<And>(LHS)) 76 : LeftOrOperator(cast<And>(LHS)); 82 return LNeg ? LeftOrOperator(cast<Or>(LHS)) 83 : LeftAndOperator(cast<Or>(LHS)); 87 return implies(cast<Not>(LHS)->exp(), !LNeg, RHS, RNeg) [all...] |
/external/deqp/scripts/opengl/ |
gen_es_direct_init.py | 28 cast = "(%s)" % getFunctionTypeName(command.name) 30 cast = "" 32 cast,
|
/external/eigen/doc/snippets/ |
MatrixBase_cast.cpp | 3 cout << md + mf.cast<double>() << endl;
|
/external/swiftshader/third_party/LLVM/lib/VMCore/ |
Instruction.cpp | 198 return LI->isVolatile() == cast<LoadInst>(I)->isVolatile() && 199 LI->getAlignment() == cast<LoadInst>(I)->getAlignment() && 200 LI->getOrdering() == cast<LoadInst>(I)->getOrdering() && 201 LI->getSynchScope() == cast<LoadInst>(I)->getSynchScope(); 203 return SI->isVolatile() == cast<StoreInst>(I)->isVolatile() && 204 SI->getAlignment() == cast<StoreInst>(I)->getAlignment() && 205 SI->getOrdering() == cast<StoreInst>(I)->getOrdering() && 206 SI->getSynchScope() == cast<StoreInst>(I)->getSynchScope(); 208 return CI->getPredicate() == cast<CmpInst>(I)->getPredicate(); 210 return CI->isTailCall() == cast<CallInst>(I)->isTailCall() & [all...] |
/external/llvm/include/llvm/IR/ |
IntrinsicInst.h | 35 /// This allows the standard isa/dyncast/cast functionality to work with calls 47 // Methods for support type inquiry through isa, cast, and dyn_cast: 54 return isa<CallInst>(V) && classof(cast<CallInst>(V)); 66 // Methods for support type inquiry through isa, cast, and dyn_cast: 76 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V)); 85 return cast<DILocalVariable>(getRawVariable()); 88 return cast<DIExpression>(getRawExpression()); 92 return cast<MetadataAsValue>(getArgOperand(1))->getMetadata(); 95 return cast<MetadataAsValue>(getArgOperand(2))->getMetadata(); 98 // Methods for support type inquiry through isa, cast, and dyn_cast [all...] |
/external/tensorflow/tensorflow/python/training/ |
ftrl.py | 156 math_ops.cast(self._learning_rate_tensor, var.dtype.base_dtype), 157 math_ops.cast(self._l1_regularization_strength_tensor, 159 math_ops.cast(self._l2_regularization_strength_tensor, 161 math_ops.cast(self._learning_rate_power_tensor, var.dtype.base_dtype), 169 math_ops.cast(self._learning_rate_tensor, var.dtype.base_dtype), 170 math_ops.cast(self._l1_regularization_strength_tensor, 172 math_ops.cast(self._l2_regularization_strength_tensor, 174 math_ops.cast(self._l2_shrinkage_regularization_strength_tensor, 176 math_ops.cast(self._learning_rate_power_tensor, var.dtype.base_dtype), 188 math_ops.cast(self._learning_rate_tensor, var.dtype.base_dtype) [all...] |
rmsprop.py | 150 math_ops.cast(self._learning_rate_tensor, var.dtype.base_dtype), 151 math_ops.cast(self._decay_tensor, var.dtype.base_dtype), 152 math_ops.cast(self._momentum_tensor, var.dtype.base_dtype), 153 math_ops.cast(self._epsilon_tensor, var.dtype.base_dtype), 161 math_ops.cast(self._learning_rate_tensor, var.dtype.base_dtype), 162 math_ops.cast(self._decay_tensor, var.dtype.base_dtype), 163 math_ops.cast(self._momentum_tensor, var.dtype.base_dtype), 164 math_ops.cast(self._epsilon_tensor, var.dtype.base_dtype), 178 math_ops.cast(self._learning_rate_tensor, grad.dtype.base_dtype), 179 math_ops.cast(self._decay_tensor, grad.dtype.base_dtype) [all...] |
/external/swiftshader/third_party/subzero/src/ |
IceInstrumentation.cpp | 64 instrumentAlloca(Context, llvm::cast<InstAlloca>(Instr)); 67 instrumentArithmetic(Context, llvm::cast<InstArithmetic>(Instr)); 70 instrumentBr(Context, llvm::cast<InstBr>(Instr)); 73 instrumentCall(Context, llvm::cast<InstCall>(Instr)); 75 case Inst::Cast: 76 instrumentCast(Context, llvm::cast<InstCast>(Instr)); 79 instrumentExtractElement(Context, llvm::cast<InstExtractElement>(Instr)); 82 instrumentFcmp(Context, llvm::cast<InstFcmp>(Instr)); 85 instrumentIcmp(Context, llvm::cast<InstIcmp>(Instr)); 88 instrumentInsertElement(Context, llvm::cast<InstInsertElement>(Instr)) [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Lua/src/ |
lfunc.h | 14 #define sizeCclosure(n) (cast(int, sizeof(CClosure)) + \ 15 cast(int, sizeof(TValue)*((n)-1))) 17 #define sizeLclosure(n) (cast(int, sizeof(LClosure)) + \ 18 cast(int, sizeof(TValue *)*((n)-1)))
|
/external/eigen/test/ |
mixingtypes.cpp | 52 Mat_d md = mf.template cast<double>(); 55 Mat_cd mcd = mcf.template cast<complex<double> >(); 58 Vec_d vd = vf.template cast<double>(); 60 Vec_cd vcd = vcf.template cast<complex<double> >(); 86 VERIFY_MIX_SCALAR(vf * scf , vf.template cast<complex<float> >() * scf); 87 VERIFY_MIX_SCALAR(scd * vd , scd * vd.template cast<complex<double> >()); 96 VERIFY_MIX_SCALAR(vf / scf , vf.template cast<complex<float> >() / scf); 97 VERIFY_MIX_SCALAR(vf.array() / scf, vf.template cast<complex<float> >().array() / scf); 98 VERIFY_MIX_SCALAR(scd / vd.array() , scd / vd.template cast<complex<double> >().array()); 103 VERIFY_MIX_SCALAR(vf.array() + scf, vf.template cast<complex<float> >().array() + scf) [all...] |
/external/v8/src/objects/ |
js-regexp-inl.h | 29 Smi* smi = Smi::cast(FixedArray::cast(data)->get(kTagIndex)); 47 Smi* smi = Smi::cast(FixedArray::cast(data)->get(kFlagsIndex)); 54 String* pattern = String::cast(FixedArray::cast(data)->get(kSourceIndex)); 68 return FixedArray::cast(data())->get(index); 75 FixedArray::cast(data())->set(index, value);
|
compilation-cache-inl.h | 38 Script* script(Script::cast(shared->script())); 39 hash ^= String::cast(script->source())->Hash(); 51 FixedArray* val = FixedArray::cast(object); 54 SharedFunctionInfo* shared = SharedFunctionInfo::cast(val->get(0)); 55 String* source = String::cast(val->get(1)); 63 return RegExpHash(String::cast(val->get(JSRegExp::kSourceIndex)), 64 Smi::cast(val->get(JSRegExp::kFlagsIndex)));
|
name-inl.h | 69 return String::cast(this)->SlowEquals(String::cast(other)); 78 return String::SlowEquals(isolate, Handle<String>::cast(one), 79 Handle<String>::cast(two)); 95 return String::cast(this)->ComputeAndSetHash( 100 return IsSymbol() && Symbol::cast(this)->is_interesting_symbol(); 104 return this->IsSymbol() && Symbol::cast(this)->is_private(); 109 this->IsSymbol() && Symbol::cast(this)->is_private_field(); 115 return IsString() && String::cast(this)->AsArrayIndex(index);
|
/external/llvm/lib/IR/ |
Instruction.cpp | 100 cast<OverflowingBinaryOperator>(this)->setHasNoUnsignedWrap(b); 104 cast<OverflowingBinaryOperator>(this)->setHasNoSignedWrap(b); 108 cast<PossiblyExactOperator>(this)->setIsExact(b); 112 return cast<OverflowingBinaryOperator>(this)->hasNoUnsignedWrap(); 116 return cast<OverflowingBinaryOperator>(this)->hasNoSignedWrap(); 120 return cast<PossiblyExactOperator>(this)->isExact(); 128 cast<FPMathOperator>(this)->setHasUnsafeAlgebra(B); 135 cast<FPMathOperator>(this)->setHasNoNaNs(B); 142 cast<FPMathOperator>(this)->setHasNoInfs(B); 150 cast<FPMathOperator>(this)->setHasNoSignedZeros(B) [all...] |
/external/tensorflow/tensorflow/contrib/opt/python/training/ |
sign_decay.py | 56 remaining_steps = math_ops.cast( 57 decay_steps, dtypes.int32) - math_ops.cast(global_step, dtypes.int32) 58 decayed = (math_ops.cast(remaining_steps, dtypes.float32) / 59 math_ops.cast(decay_steps, dtypes.float32)) 97 completed_fraction = (math_ops.cast(global_step, dtypes.float32) / 98 math_ops.cast(decay_steps, dtypes.float32)) 148 num = math_ops.mod(num_periods * math_ops.cast(global_step, dtypes.float32), 150 fraction = num / math_ops.cast(decay_steps, dtypes.float32) 154 tmp = (math_ops.cast(num_periods * global_step, dtypes.float32) / 155 math_ops.cast(decay_steps, dtypes.float32) [all...] |
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Coroutines/ |
CoroInstr.h | 57 return cast<ConstantInt>(getArgOperand(IndexArg)); 60 // Methods to support type inquiry through isa, cast, and dyn_cast: 65 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V)); 72 // Methods to support type inquiry through isa, cast, and dyn_cast: 77 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V)); 105 : cast<AllocaInst>(Arg->stripPointerCasts()); 118 auto *Inst = cast<Instruction>(Arg); 157 Result.Resumers = cast<ConstantArray>(Initializer); 161 return cast<Constant>(getArgOperand(InfoArg)->stripPointerCasts()); 167 return cast<Function>(getArgOperand(CoroutineArg)->stripPointerCasts()) [all...] |
/external/python/cpython3/Lib/ctypes/test/ |
test_cast.py | 12 ptr = cast(array, POINTER(c_int)) 16 ptr = cast(array, POINTER(c_short)) 28 ptr = cast(c_void_p(address), POINTER(c_int)) 31 ptr = cast(address, POINTER(c_int)) 40 p = cast(array, POINTER(c_char_p)) 52 p = cast((c_int * 4)(1, 2, 3, 4), POINTER(c_int)) 76 self.assertEqual(cast(cast(s, c_void_p), c_char_p).value, 82 self.assertEqual(cast(cast(s, c_void_p), c_wchar_p).value [all...] |
/external/guava/guava/src/com/google/common/collect/ |
MutableClassToInstanceMap.java | 67 cast(key, value); 73 return cast(type, put(type, value)); 78 return cast(type, get(type)); 81 private static <B, T extends B> T cast(Class<T> type, B value) { method in class:MutableClassToInstanceMap 82 return Primitives.wrap(type).cast(value);
|
/external/skia/third_party/skcms/src/ |
Transform_inl.h | 99 // (T)v is a cast when N == 1 and a bit-pun when N>1, 100 // so we use cast<T>(v) to actually cast or bit_pun<T>(v) to bit-pun. 102 SI D cast(const S& v) { function 125 // To serve both those ends, we use this function to_fixed() instead of direct cast(). 126 SI I32 to_fixed(F f) { return cast<I32>(f + 0.5f); } 147 U32 wide = cast<U32>(half); 179 return cast<U16>(if_then_else(em < 0x38800000, (U32)F0 216 // Round trip through integers with a truncating cast. 217 F roundtrip = cast<F>(cast<I32>(x)) [all...] |
/external/skqp/third_party/skcms/src/ |
Transform_inl.h | 99 // (T)v is a cast when N == 1 and a bit-pun when N>1, 100 // so we use cast<T>(v) to actually cast or bit_pun<T>(v) to bit-pun. 102 SI D cast(const S& v) { function 125 // To serve both those ends, we use this function to_fixed() instead of direct cast(). 126 SI I32 to_fixed(F f) { return cast<I32>(f + 0.5f); } 147 U32 wide = cast<U32>(half); 179 return cast<U16>(if_then_else(em < 0x38800000, (U32)F0 216 // Round trip through integers with a truncating cast. 217 F roundtrip = cast<F>(cast<I32>(x)) [all...] |
/dalvik/dexgen/src/com/android/dexgen/rop/cst/ |
CstByte.java | 49 byte cast = (byte) value; 51 if (cast != value) { 56 return make(cast);
|