/external/chromium_org/v8/src/ |
platform-cygwin.cc | 60 time_t tv = static_cast<time_t>(floor(time/msPerSecond)); 74 return static_cast<double>((mktime(loc) - utc) * msPerSecond - 303 ASSERT(IsAligned(alignment, static_cast<intptr_t>(OS::AllocateAlignment()))); 305 static_cast<intptr_t>(OS::AllocateAlignment())); 308 Address base = RoundUp(static_cast<Address>(address), alignment); 316 ASSERT(base == static_cast<Address>(address)); 369 UpdateAllocatedSpaceLimits(base, static_cast<int>(size)); 472 uint64_t seed = static_cast<uint64_t>(TimeCurrentMillis()); 473 srandom(static_cast<unsigned int>(seed));
|
bignum.cc | 70 bigits_[i] = static_cast<Chunk>(value & kBigitMask); 263 DoubleChunk product = static_cast<DoubleChunk>(factor) * bigits_[i] + carry; 264 bigits_[i] = static_cast<Chunk>(product & kBigitMask); 269 bigits_[used_digits_] = static_cast<Chunk>(carry & kBigitMask); 290 bigits_[i] = static_cast<Chunk>(tmp & kBigitMask); 296 bigits_[used_digits_] = static_cast<Chunk>(carry & kBigitMask); 379 accumulator += static_cast<DoubleChunk>(chunk1) * chunk2; 383 bigits_[i] = static_cast<Chunk>(accumulator) & kBigitMask; 394 accumulator += static_cast<DoubleChunk>(chunk1) * chunk2; 401 bigits_[i] = static_cast<Chunk>(accumulator) & kBigitMask [all...] |
/external/clang/lib/AST/ |
NestedNameSpecifier.cpp | 128 return isa<NamespaceDecl>(static_cast<NamedDecl *>(Specifier))? Namespace 145 return dyn_cast<NamespaceDecl>(static_cast<NamedDecl *>(Specifier)); 154 return dyn_cast<NamespaceAliasDecl>(static_cast<NamedDecl *>(Specifier)); 333 memcpy(&Raw, static_cast<char *>(Data) + Offset, sizeof(unsigned)); 341 memcpy(&Result, static_cast<char *>(Data) + Offset, sizeof(void*)); 407 char *NewBuffer = static_cast<char *>(malloc(NewCapacity)); 456 Buffer = static_cast<char *>(malloc(BufferCapacity)); 495 Buffer = static_cast<char *>(malloc(BufferSize)); 612 Buffer = static_cast<char *>(Other.getOpaqueData());
|
/external/clang/lib/Sema/ |
SemaAttr.cpp | 111 delete static_cast<PragmaPackStack*>(PackContext); 120 PragmaPackStack *Stack = static_cast<PragmaPackStack*>(PackContext); 144 PragmaPackStack *Context = static_cast<PragmaPackStack*>(PackContext); 188 Expr *Alignment = static_cast<Expr *>(alignment); 212 PragmaPackStack *Context = static_cast<PragmaPackStack*>(PackContext); 342 VisStack *Stack = static_cast<VisStack*>(VisContext); 355 delete static_cast<VisStack*>(VisContext); 364 VisStack *Stack = static_cast<VisStack*>(S.VisContext); 422 VisStack *Stack = static_cast<VisStack*>(VisContext);
|
/external/open-vcdiff/src/ |
blockhash.cc | 71 hash_table_mask_ = static_cast<uint32_t>(table_size - 1); 99 static_cast<int>(dictionary_size)); 162 static_cast<int>(source_size_ / kBlockSize); // round down 201 AddAllBlocksThroughIndex(static_cast<int>(source_size_)); 205 if (end_index > static_cast<int>(source_size_)) { 223 int last_legal_hash_index = static_cast<int>(source_size() - kBlockSize); 328 if (static_cast<size_t>(block_number) >= GetNumberOfBlocks()) { 406 static_cast<int>(target_candidate_start - target_start); 431 static_cast<int>(limit_bytes_to_right));
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/ |
__split_buffer | 84 _LIBCPP_INLINE_VISIBILITY size_type size() const {return static_cast<size_type>(__end_ - __begin_);} 86 _LIBCPP_INLINE_VISIBILITY size_type capacity() const {return static_cast<size_type>(__end_cap() - __first_);} 87 _LIBCPP_INLINE_VISIBILITY size_type __front_spare() const {return static_cast<size_type>(__begin_ - __first_);} 88 _LIBCPP_INLINE_VISIBILITY size_type __back_spare() const {return static_cast<size_type>(__end_cap() - __end_);} 495 size_type __c = max<size_type>(2 * static_cast<size_t>(__end_cap() - __first_), 1); 526 size_type __c = max<size_type>(2 * static_cast<size_t>(__end_cap() - __first_), 1); 559 size_type __c = max<size_type>(2 * static_cast<size_t>(__end_cap() - __first_), 1); 590 size_type __c = max<size_type>(2 * static_cast<size_t>(__end_cap() - __first_), 1); 623 size_type __c = max<size_type>(2 * static_cast<size_t>(__end_cap() - __first_), 1);
|
/ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/test/utils/basic_cstring/ |
basic_cstring.hpp | 60 enum npos_type { npos = static_cast<size_type>(-1) }; 221 return static_cast<value_type>(0); 517 return static_cast<size_type>(npos); 529 return it == last ? static_cast<size_type>(npos) : it - begin(); 539 return static_cast<size_type>(npos); 551 return it == last ? static_cast<size_type>(npos) : static_cast<size_type>(it - begin()); 690 return source.is_empty() ? static_cast<string_value_type>(0) : *source.begin(); 705 return source.is_empty() ? static_cast<string_value_type>(0) : *(source.end()-1);
|
/device/generic/goldfish/opengl/system/egl/ |
egl.cpp | 127 egl_surface_t* s( static_cast<egl_surface_t*>(surface) ); \ 624 if (static_cast<ANativeWindow*>(win)->common.magic != ANDROID_NATIVE_WINDOW_MAGIC) { 629 &s_display, config, surfaceType, static_cast<ANativeWindow*>(win)); 710 egl_surface_t* surface(static_cast<egl_surface_t*>(eglSurface)); 721 egl_surface_t* surface( static_cast<egl_surface_t*>(eglSurface) ); 809 egl_surface_t* surface( static_cast<egl_surface_t*>(eglSurface) ); 847 egl_surface_t* draw(static_cast<egl_surface_t*>(ctx->draw)); 869 shareCtx = static_cast<EGLContext_t*>(share_context); 898 EGLContext_t * context = static_cast<EGLContext_t*>(ctx); 926 EGLContext_t * context = static_cast<EGLContext_t*>(ctx) [all...] |
/external/chromium/chrome/browser/download/ |
download_util.cc | 414 float start_pos = static_cast<float>(kStartAngleDegrees); 417 start_pos = static_cast<float>(start_angle); 419 sweep_angle = static_cast<float>(kMaxDegrees / 100.0 * percent_done); 427 if (sweep_angle < static_cast<float>(kMaxDegrees - 1)) { 490 canvas->SaveLayerAlpha(static_cast<int>(255.0 * opacity), complete_bounds); 526 canvas->SaveLayerAlpha(static_cast<int>(255.0 * opacity), complete_bounds); 593 views::WidgetGtk* widget = static_cast<views::WidgetGtk*>( 614 static_cast<int>(download->start_time().ToTimeT())); 648 static_cast<int>(download->PercentComplete())); 650 static_cast<int>(download->received_bytes())) [all...] |
/external/chromium/net/http/ |
http_auth_handler_ntlm_portable.cc | 183 return static_cast<char*>(buf) + data_len; 215 uint8* cursor = static_cast<uint8*>(buf); 228 uint16 x = (static_cast<uint16>(buf[0])) | 229 (static_cast<uint16>(buf[1]) << 8); 235 uint32 x = (static_cast<uint32>(buf[0])) | 236 (static_cast<uint32>(buf[1]) << 8) | 237 (static_cast<uint32>(buf[2]) << 16) | 238 (static_cast<uint32>(buf[3]) << 24); 298 passbuf = static_cast<uint8*>(malloc(len * 2)); 605 memcpy(static_cast<uint8*>(*out_buf) + offset, lm_resp, LM_RESP_LEN) [all...] |
/external/chromium/third_party/libjingle/source/talk/base/ |
stringencode.cc | 120 buffer[bufpos+1] = hex_encode((static_cast<unsigned char>(ch) >> 4) & 0xF); 121 buffer[bufpos+2] = hex_encode((static_cast<unsigned char>(ch) ) & 0xF); 271 buffer[0] = static_cast<unsigned char>(value); 275 buffer[0] = 0xC0 | static_cast<unsigned char>(value >> 6); 276 buffer[1] = 0x80 | static_cast<unsigned char>(value & 0x3F); 280 buffer[0] = 0xE0 | static_cast<unsigned char>(value >> 12); 281 buffer[1] = 0x80 | static_cast<unsigned char>((value >> 6) & 0x3F); 282 buffer[2] = 0x80 | static_cast<unsigned char>(value & 0x3F); 286 buffer[0] = 0xF0 | static_cast<unsigned char>(value >> 18); 287 buffer[1] = 0x80 | static_cast<unsigned char>((value >> 12) & 0x3F) [all...] |
/external/chromium_org/chrome/browser/prerender/ |
prerender_local_predictor.cc | 116 for (int i = 0; i < static_cast<int>(request_->candidate_urls_.size()); i++) 276 for (int i = 0; i < static_cast<int>(request_->candidate_urls_.size()); i++) { 382 for (int i = 0; i < static_cast<int>(issued_prerenders_.size()); i++) { 406 if (static_cast<int>(visit_history_->size()) > kVisitHistoryPruneThreshold) { 437 for (int i = 0; i < static_cast<int>(visits.size()); i++) { 452 if (i == static_cast<int>(visits.size()) - 1 || 474 double priority = static_cast<double>(it->second) / 475 static_cast<double>(num_occurrences_of_current_visit); 504 DCHECK_GE(static_cast<int>(info->candidate_urls_.size()), 1); 692 while (static_cast<int>(issued_prerenders_.size()) < num_prerenders [all...] |
/external/chromium_org/net/http/ |
http_auth_handler_ntlm_portable.cc | 184 return static_cast<char*>(buf) + data_len; 216 uint8* cursor = static_cast<uint8*>(buf); 229 uint16 x = (static_cast<uint16>(buf[0])) | 230 (static_cast<uint16>(buf[1]) << 8); 236 uint32 x = (static_cast<uint32>(buf[0])) | 237 (static_cast<uint32>(buf[1]) << 8) | 238 (static_cast<uint32>(buf[2]) << 16) | 239 (static_cast<uint32>(buf[3]) << 24); 285 passbuf = static_cast<uint8*>(malloc(len * 2)); 592 memcpy(static_cast<uint8*>(*out_buf) + offset, lm_resp, LM_RESP_LEN) [all...] |
/external/chromium_org/skia/ext/ |
image_operations.cc | 30 return static_cast<int>(ceil(val)); 33 return static_cast<int>(floor(val)); 58 float xpi = x * static_cast<float>(M_PI); 84 const float xpi = x * static_cast<float>(M_PI); 189 float scale_x = static_cast<float>(dest_width) / 190 static_cast<float>(src_full_width); 191 float scale_y = static_cast<float>(dest_height) / 192 static_cast<float>(src_full_height); 250 float src_pixel = (static_cast<float>(dest_subset_i) + 0.5f) * inv_scale; 268 ((static_cast<float>(cur_filter_pixel) + 0.5f) - src_pixel) [all...] |
/external/chromium_org/third_party/WebKit/Source/wtf/ |
CheckedArithmetic.h | 145 return static_cast<Target>(value) <= std::numeric_limits<Target>::max(); 148 return value <= static_cast<Source>(std::numeric_limits<Target>::max()); 157 return value <= static_cast<Source>(std::numeric_limits<Target>::max()); 280 if (static_cast<ResultType>(lhs) == std::numeric_limits<ResultType>::min() || static_cast<ResultType>(rhs) == std::numeric_limits<ResultType>::min()) 346 result = static_cast<ResultType>(temp); 357 result = static_cast<ResultType>(temp); 368 result = static_cast<ResultType>(temp); 374 return static_cast<int64_t>(lhs) == static_cast<int64_t>(rhs) [all...] |
/external/chromium_org/third_party/libjingle/source/talk/base/ |
stringencode.cc | 100 buffer[bufpos+1] = hex_encode((static_cast<unsigned char>(ch) >> 4) & 0xF); 101 buffer[bufpos+2] = hex_encode((static_cast<unsigned char>(ch) ) & 0xF); 251 buffer[0] = static_cast<unsigned char>(value); 255 buffer[0] = 0xC0 | static_cast<unsigned char>(value >> 6); 256 buffer[1] = 0x80 | static_cast<unsigned char>(value & 0x3F); 260 buffer[0] = 0xE0 | static_cast<unsigned char>(value >> 12); 261 buffer[1] = 0x80 | static_cast<unsigned char>((value >> 6) & 0x3F); 262 buffer[2] = 0x80 | static_cast<unsigned char>(value & 0x3F); 266 buffer[0] = 0xF0 | static_cast<unsigned char>(value >> 18); 267 buffer[1] = 0x80 | static_cast<unsigned char>((value >> 12) & 0x3F) [all...] |
/external/chromium_org/third_party/protobuf/src/google/protobuf/ |
wire_format_lite_inl.h | 59 *value = static_cast<int32>(temp); 68 *value = static_cast<int64>(temp); 119 *value = static_cast<int32>(temp); 128 *value = static_cast<int64>(temp); 164 *value = static_cast<int>(temp); 189 *value = static_cast<int32>(temp); 199 *value = static_cast<int64>(temp); 426 output->WriteVarint64(static_cast<uint64>(value)); 454 output->WriteLittleEndian32(static_cast<uint32>(value)); 458 output->WriteLittleEndian64(static_cast<uint64>(value)) [all...] |
/external/chromium_org/third_party/re2/re2/ |
regexp.h | 313 RegexpOp op() { return static_cast<RegexpOp>(op_); } 316 enum ParseFlags parse_flags() { return static_cast<ParseFlags>(parse_flags_); } 491 if (n < 0 || static_cast<uint16>(n) != n) 611 return static_cast<Regexp::ParseFlags>(static_cast<int>(a) | static_cast<int>(b)); 616 return static_cast<Regexp::ParseFlags>(static_cast<int>(a) ^ static_cast<int>(b)); 621 return static_cast<Regexp::ParseFlags>(static_cast<int>(a) & static_cast<int>(b)) [all...] |
/external/chromium_org/ui/views/widget/ |
root_view.cc | 37 static_cast<View*>(NULL), 38 static_cast<View*>(NULL)) { 155 ui::TouchEvent touch_event(*event, static_cast<View*>(this), 175 ui::TouchEvent touch_event(*event, static_cast<View*>(this), 215 ui::GestureEvent handler_event(*event, static_cast<View*>(this), handler); 251 ui::GestureEvent gesture_event(*event, static_cast<View*>(this), 289 ui::GestureEvent gesture_event(*event, static_cast<View*>(this), 390 ui::MouseEvent mouse_pressed_event(event, static_cast<View*>(this), 412 ui::MouseEvent mouse_pressed_event(event, static_cast<View*>(this), 467 ui::MouseEvent mouse_event(event, static_cast<View*>(this) [all...] |
/external/chromium_org/v8/test/cctest/ |
test-assembler-x64.cc | 96 byte* buffer = static_cast<byte*>(OS::Allocate(Assembler::kMinimalBufferSize, 100 Assembler assm(Isolate::Current(), buffer, static_cast<int>(actual_size)); 119 byte* buffer = static_cast<byte*>(OS::Allocate(Assembler::kMinimalBufferSize, 123 Assembler assm(Isolate::Current(), buffer, static_cast<int>(actual_size)); 152 byte* buffer = static_cast<byte*>(OS::Allocate(Assembler::kMinimalBufferSize, 156 Assembler assm(Isolate::Current(), buffer, static_cast<int>(actual_size)); 175 byte* buffer = static_cast<byte*>(OS::Allocate(Assembler::kMinimalBufferSize, 179 Assembler assm(Isolate::Current(), buffer, static_cast<int>(actual_size)); 204 byte* buffer = static_cast<byte*>(OS::Allocate(Assembler::kMinimalBufferSize, 208 Assembler assm(Isolate::Current(), buffer, static_cast<int>(actual_size)) [all...] |
/external/clang/test/CXX/drs/ |
dr1xx.cpp | 326 enum E2 { e2 } y = static_cast<E2>(x), z = static_cast<E2>(e1); 400 int *q = static_cast<int*>(p); 401 int *qc = static_cast<int*>(cp); // expected-error {{casts away qualifiers}} 402 int *qv = static_cast<int*>(vp); // expected-error {{casts away qualifiers}} 403 int *qcv = static_cast<int*>(cvp); // expected-error {{casts away qualifiers}} 404 const int *cq = static_cast<const int*>(p); 405 const int *cqc = static_cast<const int*>(cp); 406 const int *cqv = static_cast<const int*>(vp); // expected-error {{casts away qualifiers}} 407 const int *cqcv = static_cast<const int*>(cvp); // expected-error {{casts away qualifiers} [all...] |
/external/protobuf/src/google/protobuf/ |
wire_format_lite_inl.h | 60 *value = static_cast<int32>(temp); 69 *value = static_cast<int64>(temp); 120 *value = static_cast<int32>(temp); 129 *value = static_cast<int64>(temp); 165 *value = static_cast<int>(temp); 190 *value = static_cast<int32>(temp); 200 *value = static_cast<int64>(temp); 413 output->WriteVarint64(static_cast<uint64>(value)); 441 output->WriteLittleEndian32(static_cast<uint32>(value)); 445 output->WriteLittleEndian64(static_cast<uint64>(value)) [all...] |
/external/regex-re2/re2/ |
regexp.h | 313 RegexpOp op() { return static_cast<RegexpOp>(op_); } 316 enum ParseFlags parse_flags() { return static_cast<ParseFlags>(parse_flags_); } 491 if (n < 0 || static_cast<uint16>(n) != n) 611 return static_cast<Regexp::ParseFlags>(static_cast<int>(a) | static_cast<int>(b)); 616 return static_cast<Regexp::ParseFlags>(static_cast<int>(a) ^ static_cast<int>(b)); 621 return static_cast<Regexp::ParseFlags>(static_cast<int>(a) & static_cast<int>(b)) [all...] |
/external/v8/src/ |
bignum.cc | 69 bigits_[i] = static_cast<Chunk>(value & kBigitMask); 262 DoubleChunk product = static_cast<DoubleChunk>(factor) * bigits_[i] + carry; 263 bigits_[i] = static_cast<Chunk>(product & kBigitMask); 268 bigits_[used_digits_] = static_cast<Chunk>(carry & kBigitMask); 289 bigits_[i] = static_cast<Chunk>(tmp & kBigitMask); 295 bigits_[used_digits_] = static_cast<Chunk>(carry & kBigitMask); 378 accumulator += static_cast<DoubleChunk>(chunk1) * chunk2; 382 bigits_[i] = static_cast<Chunk>(accumulator) & kBigitMask; 393 accumulator += static_cast<DoubleChunk>(chunk1) * chunk2; 400 bigits_[i] = static_cast<Chunk>(accumulator) & kBigitMask [all...] |
platform-macos.cc | 100 srandom(static_cast<unsigned int>(seed)); 305 time_t tv = static_cast<time_t>(floor(time/msPerSecond)); 316 return static_cast<double>(t->tm_gmtoff * msPerSecond - 363 ASSERT(IsAligned(alignment, static_cast<intptr_t>(OS::AllocateAlignment()))); 365 static_cast<intptr_t>(OS::AllocateAlignment())); 374 Address base = static_cast<Address>(reservation); 380 size_t prefix_size = static_cast<size_t>(aligned_base - base); 396 address_ = static_cast<void*>(aligned_base); 544 pthread_attr_setstacksize(&attr, static_cast<size_t>(stack_size_)); 579 static_cast<int>(strtol(buffer, NULL, 10)); // NOLIN [all...] |