/external/clang/test/SemaCXX/ |
reinterpret-cast.cpp | 16 (void)reinterpret_cast<int>(i); 19 (void)reinterpret_cast<test>(e); 23 (void)reinterpret_cast<int*>(pi); 26 (void)reinterpret_cast<const int structure::*>(psi); 29 (void)reinterpret_cast<structure>(s); // expected-error {{reinterpret_cast from 'structure' to 'structure' is not allowed}} 32 (void)reinterpret_cast<float>(f); // expected-error {{reinterpret_cast from 'float' to 'float' is not allowed}} 38 void *vp = reinterpret_cast<void*>(testval); 39 intptr_t i = reinterpret_cast<intptr_t>(vp) [all...] |
vector-casts.cpp | 16 (void)reinterpret_cast<__v2si>(v4hi); 18 (void)reinterpret_cast<__v4hi>(v2si); 20 (void)reinterpret_cast<unsigned long long>(v2si); 22 (void)reinterpret_cast<__v2si>(ll); 25 (void)reinterpret_cast<S>(v2si); // expected-error {{reinterpret_cast from '__v2si' to 'S' is not allowed}} 27 (void)reinterpret_cast<__v2si>(s); // expected-error {{reinterpret_cast from 'S' to '__v2si' is not allowed}} 30 (void)reinterpret_cast<unsigned char>(v2si); // expected-error {{reinterpret_cast from vector '__v2si' to scalar 'unsigned char' of different size} [all...] |
overload-value-dep-arg.cpp | 11 return f(reinterpret_cast<unsigned long>(t));
|
reinterpret-fn-obj-pedantic.cpp | 7 void *vp = reinterpret_cast<void*>(fp); // expected-warning {{cast between pointer-to-function and pointer-to-object is an extension}} 8 (void)reinterpret_cast<fnptr>(vp); // expected-warning {{cast between pointer-to-function and pointer-to-object is an extension}}
|
warn-cast-align.cpp | 9 a = reinterpret_cast<char*>(P); 14 b = reinterpret_cast<short*>(P); 19 c = reinterpret_cast<int*>(P); 30 a = reinterpret_cast<char*>(P); 36 b = reinterpret_cast<short*>(P); 42 c = reinterpret_cast<int*>(P);
|
/external/clang/test/CodeGenCXX/ |
reinterpret-cast.cpp | 3 return reinterpret_cast<void *>(l); 7 return reinterpret_cast<unsigned long>(nullptr); 11 return reinterpret_cast<unsigned long>(p); 16 f4(reinterpret_cast<int*&>(u));
|
2004-03-08-ReinterpretCastCopy.cpp | 16 fn_type_a f = reinterpret_cast<fn_type_a>(&B::Method); 17 fn_type_b g = reinterpret_cast<fn_type_b>(f);
|
casts.cpp | 17 // reinterpret_cast to self 19 reinterpret_cast<PR5248::A&>(*a) = 17;
|
/external/clang/test/SemaObjCXX/ |
reinterpret-cast-objc-pointertype.mm | 9 return reinterpret_cast<CFStringRef>(fRef); 15 return reinterpret_cast<const NSString*>(fRef1); 22 return reinterpret_cast<const NSString*>(fRef2);
|
/external/skia/src/ports/ |
SkThread_win.cpp | 22 return _InterlockedIncrement(reinterpret_cast<LONG*>(addr)) - 1; 26 return _InterlockedDecrement(reinterpret_cast<LONG*>(addr)) + 1; 32 InitializeCriticalSection(reinterpret_cast<CRITICAL_SECTION*>(&fStorage)); 36 DeleteCriticalSection(reinterpret_cast<CRITICAL_SECTION*>(&fStorage)); 40 EnterCriticalSection(reinterpret_cast<CRITICAL_SECTION*>(&fStorage)); 44 LeaveCriticalSection(reinterpret_cast<CRITICAL_SECTION*>(&fStorage));
|
/external/clang/test/CXX/temp/temp.param/ |
p15-cxx0x.cpp | 17 (void)reinterpret_cast<X<int>>(x); // expected-error{{reinterpret_cast from}} 18 (void)reinterpret_cast<X<X<X<int>>>>(x); // expected-error{{reinterpret_cast from}}
|
/external/clang/test/CXX/expr/expr.post/expr.reinterpret.cast/ |
p1-0x.cpp | 11 int (&fr0)(int) = reinterpret_cast<int (&&)(int)>(f); 12 int &&ir0 = reinterpret_cast<int &&>(*ptr); 13 int &&ir1 = reinterpret_cast<int &&>(0); 14 int &&ir2 = reinterpret_cast<int &&>('a'); 15 int &&ir3 = reinterpret_cast<int &&>(xvalue<char>());
|
/external/webkit/Source/JavaScriptCore/API/ |
APICast.h | 54 return reinterpret_cast<JSC::ExecState*>(const_cast<OpaqueJSContext*>(c)); 60 return reinterpret_cast<JSC::ExecState*>(c); 68 JSC::JSCell* jsCell = reinterpret_cast<JSC::JSCell*>(const_cast<OpaqueJSValue*>(v)); 75 return JSC::JSValue::decode(reinterpret_cast<JSC::EncodedJSValue>(const_cast<OpaqueJSValue*>(v))); 84 JSC::JSCell* jsCell = reinterpret_cast<JSC::JSCell*>(const_cast<OpaqueJSValue*>(v)); 89 return JSC::JSValue::decode(reinterpret_cast<JSC::EncodedJSValue>(const_cast<OpaqueJSValue*>(v))); 95 return reinterpret_cast<JSC::JSObject*>(o); 100 return reinterpret_cast<JSC::PropertyNameArray*>(a); 105 return reinterpret_cast<JSC::JSGlobalData*>(const_cast<OpaqueJSContextGroup*>(g)); 114 return reinterpret_cast<JSValueRef>(JSC::jsAPIValueWrapper(exec, v).asCell()) [all...] |
/gdk/samples/PhotoEditor/jni/ |
convolution.cpp | 50 src_pixels = reinterpret_cast<char*>(src_pixels) + src_info->stride; 51 dst_pixels = reinterpret_cast<char*>(dst_pixels) + dst_info->stride; 58 pixel32_t* src = reinterpret_cast<pixel32_t*>(src_pixels); 59 uint32_t* src_prev = reinterpret_cast<uint32_t*> 60 (reinterpret_cast<char*>(src_pixels) - src_info->stride); 61 uint32_t* src_next = reinterpret_cast<uint32_t*> 62 (reinterpret_cast<char*>(src_pixels) + src_info->stride); 64 uint32_t* dst = reinterpret_cast<uint32_t*>(dst_pixels); 77 uint8_t* n1 = reinterpret_cast<uint8_t*>(src_prev - 1); 78 uint8_t* n2 = reinterpret_cast<uint8_t*>(src - 1) [all...] |
flip.cpp | 50 uint32_t* dst = reinterpret_cast<uint32_t*>(dst_pixels) + src_info.width - 1; 51 uint32_t* src = reinterpret_cast<uint32_t*>(src_pixels); 59 src_pixels = reinterpret_cast<char*>(src_pixels) + src_info.stride; 60 dst_pixels = reinterpret_cast<char*>(dst_pixels) + dst_info.stride; 86 dst_pixels = reinterpret_cast<char*>(dst_pixels) + dst_info.stride * (dst_info.height - 1); 88 uint32_t* dst = reinterpret_cast<uint32_t*>(dst_pixels); 89 uint32_t* src = reinterpret_cast<uint32_t*>(src_pixels); 97 src_pixels = reinterpret_cast<char*>(src_pixels) + src_info.stride; 98 dst_pixels = reinterpret_cast<char*>(dst_pixels) - dst_info.stride; 124 dst_pixels = reinterpret_cast<char*>(dst_pixels) + dst_info.stride * (dst_info.height - 1) [all...] |
/external/chromium/base/ |
atomicops_internals_atomicword_compat.h | 31 reinterpret_cast<volatile Atomic32*>(ptr), old_value, new_value); 37 reinterpret_cast<volatile Atomic32*>(ptr), new_value); 43 reinterpret_cast<volatile Atomic32*>(ptr), increment); 49 reinterpret_cast<volatile Atomic32*>(ptr), increment); 56 reinterpret_cast<volatile Atomic32*>(ptr), old_value, new_value); 63 reinterpret_cast<volatile Atomic32*>(ptr), old_value, new_value); 68 reinterpret_cast<volatile Atomic32*>(ptr), value); 73 reinterpret_cast<volatile Atomic32*>(ptr), value); 78 reinterpret_cast<volatile Atomic32*>(ptr), value); 83 reinterpret_cast<volatile const Atomic32*>(ptr)) [all...] |
/external/chromium/base/win/ |
wrapped_window_proc.cc | 21 reinterpret_cast<subtle::AtomicWord*>(&s_exception_filter), 22 reinterpret_cast<subtle::AtomicWord>(filter)); 23 return reinterpret_cast<WinProcExceptionFilter>(rv);
|
pe_image.cc | 40 return (*reinterpret_cast<const unsigned char*>(s1) - 41 *reinterpret_cast<const unsigned char*>(s2)); 50 EnumAllImportsStorage &storage = *reinterpret_cast<EnumAllImportsStorage*>( 63 EnumAllImportsStorage &storage = *reinterpret_cast<EnumAllImportsStorage*>( 76 return reinterpret_cast<PIMAGE_DOS_HEADER>(module_); 82 return reinterpret_cast<PIMAGE_NT_HEADERS>( 83 reinterpret_cast<char*>(dos_header) + dos_header->e_lfanew); 114 PBYTE target = reinterpret_cast<PBYTE>(address); 119 PBYTE start = reinterpret_cast<PBYTE>( 141 if (0 == _strnicmp(reinterpret_cast<LPCSTR>(section->Name), section_name [all...] |
/external/v8/src/ |
v8memory.h | 40 return *reinterpret_cast<uint8_t*>(addr); 44 return *reinterpret_cast<uint16_t*>(addr); 48 return *reinterpret_cast<uint32_t*>(addr); 52 return *reinterpret_cast<int32_t*>(addr); 56 return *reinterpret_cast<uint64_t*>(addr); 60 return *reinterpret_cast<int*>(addr); 64 return *reinterpret_cast<unsigned*>(addr); 68 return *reinterpret_cast<double*>(addr); 72 return *reinterpret_cast<Address*>(addr); 76 return *reinterpret_cast<Object**>(addr) [all...] |
/external/webkit/Source/WebCore/bindings/objc/ |
DOMImplementationFront.cpp | 34 return reinterpret_cast<DOMImplementationFront*>(document->implementation()); 39 return reinterpret_cast<DOMImplementationFront*>(wrapper->impl()); 44 reinterpret_cast<DOMImplementation*>(this)->ref(); 49 reinterpret_cast<DOMImplementation*>(this)->deref(); 54 return reinterpret_cast<const DOMImplementation*>(this)->hasFeature(feature, version); 59 return reinterpret_cast<DOMImplementation*>(this)->createDocumentType(qualifiedName, publicId, systemId, ec); 64 return reinterpret_cast<DOMImplementation*>(this)->createDocument(namespaceURI, qualifiedName, type, ec); 69 return reinterpret_cast<DOMImplementationFront*>(reinterpret_cast<DOMImplementation*>(this)->getInterface(feature)); 74 return reinterpret_cast<DOMImplementation*>(this)->createCSSStyleSheet(title, media, ec) [all...] |
/external/jmonkeyengine/engine/src/bullet-native/ |
com_jme3_bullet_joints_SixDofSpringJoint.cpp | 19 btGeneric6DofSpringConstraint* joint = reinterpret_cast<btGeneric6DofSpringConstraint*>(jointId); 31 btGeneric6DofSpringConstraint* joint = reinterpret_cast<btGeneric6DofSpringConstraint*>(jointId); 42 btGeneric6DofSpringConstraint* joint = reinterpret_cast<btGeneric6DofSpringConstraint*>(jointId); 53 btGeneric6DofSpringConstraint* joint = reinterpret_cast<btGeneric6DofSpringConstraint*>(jointId); 64 btGeneric6DofSpringConstraint* joint = reinterpret_cast<btGeneric6DofSpringConstraint*>(jointId); 79 btRigidBody* bodyA = reinterpret_cast<btRigidBody*>(bodyIdA); 80 btRigidBody* bodyB = reinterpret_cast<btRigidBody*>(bodyIdB); 89 return reinterpret_cast<jlong>(joint);
|
/external/qemu/elff/ |
elff_api.cc | 30 return reinterpret_cast<ELFF_HANDLE>(elf_file);
37 delete reinterpret_cast<ElfFile*>(handle);
49 return reinterpret_cast<ElfFile*>(handle)->is_exec();
63 if (reinterpret_cast<ElfFile*>(handle)->get_pc_address_info(address,
78 reinterpret_cast<ElfFile*>(handle)->free_pc_address_info(address_info);
|
/ndk/sources/host-tools/ndk-stack/elff/ |
elff_api.cc | 30 return reinterpret_cast<ELFF_HANDLE>(elf_file); 37 delete reinterpret_cast<ElfFile*>(handle); 49 return reinterpret_cast<ElfFile*>(handle)->is_exec(); 63 if (reinterpret_cast<ElfFile*>(handle)->get_pc_address_info(address, 78 reinterpret_cast<ElfFile*>(handle)->free_pc_address_info(address_info);
|
/external/v8/test/cctest/ |
test-circular-queue.cc | 25 Record* rec = reinterpret_cast<Record*>(scq.Enqueue()); 34 Record* rec = reinterpret_cast<Record*>(scq.Enqueue()); 40 Record* rec = reinterpret_cast<Record*>(scq.Enqueue()); 49 Record* rec = reinterpret_cast<Record*>(scq.StartDequeue()); 52 CHECK_EQ(rec, reinterpret_cast<Record*>(scq.StartDequeue())); 54 CHECK_NE(rec, reinterpret_cast<Record*>(scq.StartDequeue())); 66 Record* rec = reinterpret_cast<Record*>(scq.StartDequeue()); 69 CHECK_EQ(rec, reinterpret_cast<Record*>(scq.StartDequeue())); 71 CHECK_NE(rec, reinterpret_cast<Record*>(scq.StartDequeue())); 97 Record* rec = reinterpret_cast<Record*>(scq_->Enqueue()) [all...] |
/external/webkit/Source/WebKit/mac/WebCoreSupport/ |
WebSecurityOrigin.mm | 49 _private = reinterpret_cast<WebSecurityOriginPrivate *>(origin.get()); 56 return reinterpret_cast<SecurityOrigin*>(_private)->protocol(); 61 return reinterpret_cast<SecurityOrigin*>(_private)->host(); 66 return reinterpret_cast<SecurityOrigin*>(_private)->databaseIdentifier(); 77 return reinterpret_cast<SecurityOrigin*>(_private)->port(); 92 reinterpret_cast<SecurityOrigin*>(_private)->deref(); 103 reinterpret_cast<SecurityOrigin*>(_private)->deref(); 119 _private = reinterpret_cast<WebSecurityOriginPrivate *>(origin); 126 return reinterpret_cast<SecurityOrigin*>(_private); 166 return DatabaseTracker::tracker().usageForOrigin(reinterpret_cast<SecurityOrigin*>(_private)) [all...] |