Searched defs:cast (Results 1 - 25 of 114) sorted by relevance

12345

/external/clang/test/PCH/
H A Dcxx-chain-function-template.cpp9 T cast(U u) { function
14 cast<float>(1);
22 cast<CXXRecordDecl>(1.0f);
28 cast<CXXRecordDecl>(1.0f);
/external/eigen/Eigen/src/plugins/
H A DCommonCwiseUnaryOps.h55 EIGEN_DOC_UNARY_ADDONS(cast,conversion function)
62 cast() const function
/external/guava/guava/src/com/google/common/collect/
H A DMutableClassToInstanceMap.java67 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);
H A DImmutableClassToInstanceMap.java91 mapBuilder.put(type, cast(type, value));
96 private static <B, T extends B> T cast(Class<T> type, B value) { method in class:ImmutableClassToInstanceMap.Builder
97 return Primitives.wrap(type).cast(value);
128 // Eclipse won't compile if we cast to the parameterized type.
129 ImmutableClassToInstanceMap<B> cast = (ImmutableClassToInstanceMap) map;
130 return cast;
/external/junit/src/main/java/org/junit/rules/
H A DExpectedExceptionMatcherBuilder.java32 return cast(matchers.get(0));
43 private Matcher<Throwable> cast(Matcher<?> singleMatcher) { method in class:ExpectedExceptionMatcherBuilder
/external/llvm/bindings/python/llvm/
H A Dbit_reader.py12 from ctypes import cast namespace
H A Ddisassembler.py20 from ctypes import cast namespace
101 buf = cast(c_char_p(source), POINTER(c_ubyte))
102 out_str = cast((c_byte * 255)(), c_char_p)
123 out_str = cast((c_byte * 255)(), c_char_p)
126 buf = cast(source_bytes, POINTER(c_ubyte * len(source))).contents
131 b = cast(addressof(buf) + offset, POINTER(c_ubyte))
/external/v8/src/
H A Dfield-type.cc37 FieldType* FieldType::Class(i::Map* map) { return FieldType::cast(map); }
45 FieldType* FieldType::cast(Object* object) { function in class:v8::internal::FieldType
54 i::Map* map = Map::cast(this);
H A Dcontexts-inl.h16 ScriptContextTable* ScriptContextTable::cast(Object* context) { function in class:v8::internal::ScriptContextTable
23 return Smi::cast(get(kUsedSlot))->value();
36 return Handle<Context>::cast(
42 Context* Context::cast(Object* context) { function in class:v8::internal::Context
48 JSFunction* Context::closure() { return JSFunction::cast(get(CLOSURE_INDEX)); }
63 return HeapObject::cast(get(EXTENSION_INDEX));
141 return type::cast(get(index)) == value; \
145 return type::cast(get(index)); \
H A Dtransitions-inl.h14 TransitionArray* TransitionArray::cast(Object* object) { function in class:v8::internal::TransitionArray
36 return FixedArray::cast(prototype_transitions);
59 return Name::cast(get(ToKeyIndex(transition_number)));
69 return TransitionArray::cast(raw_transitions)->GetKey(transition_number);
81 return Map::cast(get(ToTargetIndex(transition_number)));
92 return TransitionArray::cast(raw_transitions)->GetTarget(transition_number);
/external/clang/lib/CodeGen/
H A DAddress.h45 return llvm::cast<llvm::PointerType>(getPointer()->getType());
85 return llvm::cast<llvm::Constant>(Address::getPointer());
101 return ConstantAddress(llvm::cast<llvm::Constant>(addr.getPointer()),
109 template <class U> inline U cast(CodeGen::Address addr) { function in namespace:clang
/external/eigen/Eigen/src/Geometry/
H A DScaling.h90 inline UniformScaling<NewScalarType> cast() const function in class:Eigen::UniformScaling
H A DAngleAxis.h134 EIGEN_DEVICE_FUNC inline typename internal::cast_return_type<AngleAxis,AngleAxis<NewScalarType> >::type cast() const function in class:Eigen::AngleAxis
141 m_axis = other.axis().template cast<Scalar>();
H A DParametrizedLine.h114 ParametrizedLine<NewScalarType,AmbientDimAtCompileTime,Options> >::type cast() const function in class:Eigen::ParametrizedLine
124 m_origin = other.origin().template cast<Scalar>();
125 m_direction = other.direction().template cast<Scalar>();
H A DRotation2D.h142 EIGEN_DEVICE_FUNC inline typename internal::cast_return_type<Rotation2D,Rotation2D<NewScalarType> >::type cast() const function in class:Eigen::Rotation2D
H A DTranslation.h155 EIGEN_DEVICE_FUNC inline typename internal::cast_return_type<Translation,Translation<NewScalarType,Dim> >::type cast() const function in class:Eigen::Translation
161 { m_coeffs = other.vector().template cast<Scalar>(); }
/external/libchrome/base/numerics/
H A Dsafe_math.h106 return CheckedNumeric<T>::cast(*this).ValueUnsafe();
186 // These static methods behave like a convenience cast operator targeting
190 static CheckedNumeric<T> cast( function in class:base::internal::CheckedNumeric
198 static CheckedNumeric<T> cast( function in class:base::internal::CheckedNumeric
204 static const CheckedNumeric<T>& cast(const CheckedNumeric<T>& u) { return u; } function in class:base::internal::CheckedNumeric
252 *this = CheckedNumeric<T>::cast(*this) \
253 OP CheckedNumeric<typename UnderlyingType<Src>::type>::cast(rhs); \
265 return CheckedNumeric<Promotion>::cast(lhs) \
266 OP CheckedNumeric<Promotion>::cast(rhs); \
278 return CheckedNumeric<Promotion>::cast(lh
[all...]
/external/llvm/include/llvm/Support/
H A DCasting.h10 // This file defines the isa<X>(), cast<X>(), dyn_cast<X>(), cast_or_null<X>(),
138 // cast<x> Support Templates
144 // Calculate what type the 'cast' function should return, based on a requested
199 // This _is_ a simple type, just cast it.
212 // cast<X> - Return the argument parameter cast to the specified type. This
217 // cast<Instruction>(myVal)->getParent()
222 cast(const Y &Val) { function in namespace:llvm
223 assert(isa<X>(Val) && "cast<Ty>() argument of incompatible type!");
229 inline typename cast_retty<X, Y>::ret_type cast( function in namespace:llvm
236 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) { function in namespace:llvm
[all...]
/external/swiftshader/third_party/LLVM/include/llvm/Support/
H A DCasting.h10 // This file defines the isa<X>(), cast<X>(), dyn_cast<X>(), cast_or_null<X>(),
114 // cast<x> Support Templates
120 // Calculate what type the 'cast' function should return, based on a requested
175 // This _is_ a simple type, just cast it.
185 // cast<X> - Return the argument parameter cast to the specified type. This
190 // cast<Instruction>(myVal)->getParent()
193 inline typename cast_retty<X, Y>::ret_type cast(const Y &Val) { function in namespace:llvm
194 assert(isa<X>(Val) && "cast<Ty>() argument of incompatible type!");
199 // cast_or_null<X> - Functionally identical to cast, excep
[all...]
/external/v8/src/base/
H A Dsafe_math.h95 return CheckedNumeric<T>::cast(*this).ValueUnsafe();
167 // These static methods behave like a convenience cast operator targeting
171 static CheckedNumeric<T> cast( function in class:v8::base::internal::CheckedNumeric
179 static CheckedNumeric<T> cast( function in class:v8::base::internal::CheckedNumeric
185 static const CheckedNumeric<T>& cast(const CheckedNumeric<T>& u) { return u; } function in class:v8::base::internal::CheckedNumeric
223 *this = CheckedNumeric<T>::cast(*this) OP CheckedNumeric<Src>::cast(rhs); \
235 return CheckedNumeric<Promotion>::cast(lhs) \
236 OP CheckedNumeric<Promotion>::cast(rhs); \
246 return CheckedNumeric<Promotion>::cast(lh
[all...]
/external/llvm/include/llvm/ADT/
H A DPointerSumType.h92 typename HelperT::template Lookup<N>::PointerT cast() const { function in class:llvm::PointerSumType
/external/mesa3d/src/glsl/
H A Dloop_controls.cpp105 ir_rvalue *cast = local
109 iter = cast->constant_expression_value();
/external/skia/src/jumper/
H A DSkJumper_stages.cpp246 // (F)x means cast x to float in the portable path, but bit_cast x to float in the others.
249 SI F cast (U32 v) { return __builtin_convertvector((I32)v, F); } function
253 SI F cast (U32 v) { return (F)v; } function
352 *r = cast(wide & C(31<<11)) * C(1.0f / (31<<11));
353 *g = cast(wide & C(63<< 5)) * C(1.0f / (63<< 5));
354 *b = cast(wide & C(31<< 0)) * C(1.0f / (31<< 0));
505 // It's important for speed to explicitly cast(x) and cast(y),
508 r = cast(x) + 0.5_f + unaligned_load<F>(k->iota);
509 g = cast(
[all...]
/external/v8/src/wasm/
H A Dwasm-debug.cc30 return FixedArray::cast(offset_tables);
95 return Handle<WasmDebugInfo>::cast(arr);
100 FixedArray *arr = FixedArray::cast(object);
106 WasmDebugInfo *WasmDebugInfo::cast(Object *object) { function in class:WasmDebugInfo
112 return JSObject::cast(get(kWasmDebugInfoWasmObj));
127 ByteArray *offset_table = ByteArray::cast(offset_tables->get(func_index));
/external/autotest/client/common_lib/
H A Dsmogcheck_tpm.py28 c_ubyte, c_byte, byref, c_uint16, cast, create_string_buffer, c_uint64, \
108 vi.vendorSpecific = cast(pointer(vendorDetail), POINTER(c_ubyte))
383 byref(offset), pResult, cast(byref(versionInfo),
29 c_char_p, addressof, c_char, pointer namespace

Completed in 738 milliseconds

12345