/external/elfutils/libdw/ |
dwarf_getarange_addr.c | 47 size_t idx = (l + u) / 2; local 48 if (addr < aranges->info[idx].addr) 49 u = idx; 50 else if (addr > aranges->info[idx].addr 51 && addr - aranges->info[idx].addr >= aranges->info[idx].length) 52 l = idx + 1; 54 return &aranges->info[idx];
|
/external/libcxx/test/std/strings/string.conversions/ |
stod.pass.cpp | 12 // double stod(const string& str, size_t *idx = 0); 13 // double stod(const wstring& str, size_t *idx = 0); 31 size_t idx = 0; local 32 assert(std::stod("10g", &idx) == 10); 33 assert(idx == 2); 34 idx = 0; 35 assert(std::stod(L"10g", &idx) == 10); 36 assert(idx == 2); 41 assert(std::stod("1.e60", &idx) == 1.e60); 42 assert(idx == 5) [all...] |
stof.pass.cpp | 16 // float stof(const string& str, size_t *idx = 0); 17 // float stof(const wstring& str, size_t *idx = 0); 35 size_t idx = 0; local 36 assert(std::stof("10g", &idx) == 10); 37 assert(idx == 2); 38 idx = 0; 39 assert(std::stof(L"10g", &idx) == 10); 40 assert(idx == 2); 42 idx = 0; 45 assert(std::stof("1.e60", &idx) == INFINITY) [all...] |
stoi.pass.cpp | 12 // int stoi(const string& str, size_t *idx = 0, int base = 10); 13 // int stoi(const wstring& str, size_t *idx = 0, int base = 10); 30 size_t idx = 0; local 31 assert(std::stoi("10g", &idx, 16) == 16); 32 assert(idx == 2); 33 idx = 0; 34 assert(std::stoi(L"10g", &idx, 16) == 16); 35 assert(idx == 2); 41 std::stoi("0x100000000", &idx, 16); 49 std::stoi(L"0x100000000", &idx, 16) [all...] |
stol.pass.cpp | 16 // long stol(const string& str, size_t *idx = 0, int base = 10); 17 // long stol(const wstring& str, size_t *idx = 0, int base = 10); 34 size_t idx = 0; local 35 assert(std::stol("10g", &idx, 16) == 16); 36 assert(idx == 2); 37 idx = 0; 38 assert(std::stol(L"10g", &idx, 16) == 16); 39 assert(idx == 2); 41 idx = 0; 44 std::stol("", &idx); [all...] |
stold.pass.cpp | 12 // long double stold(const string& str, size_t *idx = 0); 13 // long double stold(const wstring& str, size_t *idx = 0); 33 size_t idx = 0; local 34 assert(std::stold("10g", &idx) == 10); 35 assert(idx == 2); 36 idx = 0; 37 assert(std::stold(L"10g", &idx) == 10); 38 assert(idx == 2); 43 assert(std::stold("1.e60", &idx) == 1.e60L); 44 assert(idx == 5) [all...] |
stoll.pass.cpp | 16 // long long stoll(const string& str, size_t *idx = 0, int base = 10); 17 // long long stoll(const wstring& str, size_t *idx = 0, int base = 10); 34 size_t idx = 0; local 35 assert(std::stoll("10g", &idx, 16) == 16); 36 assert(idx == 2); 37 idx = 0; 38 assert(std::stoll(L"10g", &idx, 16) == 16); 39 assert(idx == 2); 41 idx = 0; 44 std::stoll("", &idx); [all...] |
stoul.pass.cpp | 16 // unsigned long stoul(const string& str, size_t *idx = 0, int base = 10); 17 // unsigned long stoul(const wstring& str, size_t *idx = 0, int base = 10); 32 size_t idx = 0; local 33 assert(std::stoul("10g", &idx, 16) == 16); 34 assert(idx == 2); 35 idx = 0; 36 assert(std::stoul(L"10g", &idx, 16) == 16); 37 assert(idx == 2); 39 idx = 0; 42 std::stoul("", &idx); [all...] |
stoull.pass.cpp | 16 // unsigned long long stoull(const string& str, size_t *idx = 0, int base = 10); 17 // unsigned long long stoull(const wstring& str, size_t *idx = 0, int base = 10); 32 size_t idx = 0; local 33 assert(std::stoull("10g", &idx, 16) == 16); 34 assert(idx == 2); 35 idx = 0; 36 assert(std::stoull(L"10g", &idx, 16) == 16); 37 assert(idx == 2); 39 idx = 0; 42 std::stoull("", &idx); [all...] |
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/strings/string.conversions/ |
stod.pass.cpp | 12 // double stod(const string& str, size_t *idx = 0); 13 // double stod(const wstring& str, size_t *idx = 0); 31 size_t idx = 0; local 32 assert(std::stod("10g", &idx) == 10); 33 assert(idx == 2); 34 idx = 0; 35 assert(std::stod(L"10g", &idx) == 10); 36 assert(idx == 2); 41 assert(std::stod("1.e60", &idx) == 1.e60); 42 assert(idx == 5) [all...] |
stof.pass.cpp | 16 // float stof(const string& str, size_t *idx = 0); 17 // float stof(const wstring& str, size_t *idx = 0); 35 size_t idx = 0; local 36 assert(std::stof("10g", &idx) == 10); 37 assert(idx == 2); 38 idx = 0; 39 assert(std::stof(L"10g", &idx) == 10); 40 assert(idx == 2); 42 idx = 0; 45 assert(std::stof("1.e60", &idx) == INFINITY) [all...] |
stoi.pass.cpp | 12 // int stoi(const string& str, size_t *idx = 0, int base = 10); 13 // int stoi(const wstring& str, size_t *idx = 0, int base = 10); 30 size_t idx = 0; local 31 assert(std::stoi("10g", &idx, 16) == 16); 32 assert(idx == 2); 33 idx = 0; 34 assert(std::stoi(L"10g", &idx, 16) == 16); 35 assert(idx == 2); 41 std::stoi("0x100000000", &idx, 16); 49 std::stoi(L"0x100000000", &idx, 16) [all...] |
stol.pass.cpp | 16 // long stol(const string& str, size_t *idx = 0, int base = 10); 17 // long stol(const wstring& str, size_t *idx = 0, int base = 10); 34 size_t idx = 0; local 35 assert(std::stol("10g", &idx, 16) == 16); 36 assert(idx == 2); 37 idx = 0; 38 assert(std::stol(L"10g", &idx, 16) == 16); 39 assert(idx == 2); 41 idx = 0; 44 std::stol("", &idx); [all...] |
stold.pass.cpp | 12 // long double stold(const string& str, size_t *idx = 0); 13 // long double stold(const wstring& str, size_t *idx = 0); 33 size_t idx = 0; local 34 assert(std::stold("10g", &idx) == 10); 35 assert(idx == 2); 36 idx = 0; 37 assert(std::stold(L"10g", &idx) == 10); 38 assert(idx == 2); 43 assert(std::stold("1.e60", &idx) == 1.e60L); 44 assert(idx == 5) [all...] |
stoll.pass.cpp | 16 // long long stoll(const string& str, size_t *idx = 0, int base = 10); 17 // long long stoll(const wstring& str, size_t *idx = 0, int base = 10); 34 size_t idx = 0; local 35 assert(std::stoll("10g", &idx, 16) == 16); 36 assert(idx == 2); 37 idx = 0; 38 assert(std::stoll(L"10g", &idx, 16) == 16); 39 assert(idx == 2); 41 idx = 0; 44 std::stoll("", &idx); [all...] |
stoul.pass.cpp | 16 // unsigned long stoul(const string& str, size_t *idx = 0, int base = 10); 17 // unsigned long stoul(const wstring& str, size_t *idx = 0, int base = 10); 32 size_t idx = 0; local 33 assert(std::stoul("10g", &idx, 16) == 16); 34 assert(idx == 2); 35 idx = 0; 36 assert(std::stoul(L"10g", &idx, 16) == 16); 37 assert(idx == 2); 39 idx = 0; 42 std::stoul("", &idx); [all...] |
stoull.pass.cpp | 16 // unsigned long long stoull(const string& str, size_t *idx = 0, int base = 10); 17 // unsigned long long stoull(const wstring& str, size_t *idx = 0, int base = 10); 32 size_t idx = 0; local 33 assert(std::stoull("10g", &idx, 16) == 16); 34 assert(idx == 2); 35 idx = 0; 36 assert(std::stoull(L"10g", &idx, 16) == 16); 37 assert(idx == 2); 39 idx = 0; 42 std::stoull("", &idx); [all...] |
/external/clang/tools/scan-build-py/tests/functional/src/ |
clean-one.c | 6 int idx = 0; local 8 for (idx = i; idx > 0; --idx) 10 i += idx;
|
/external/compiler-rt/test/asan/TestCases/Linux/ |
print_memory_profile_test.cc | 14 int idx = 0; local 16 sink[idx++] = new char[131000]; 18 sink[idx++] = new char[24000];
|
/external/elfutils/libdwfl/ |
dwfl_validate_address.c | 39 int idx = INTUSE(dwfl_module_relocate_address) (mod, &relative); local 40 if (idx < 0) 53 if (offset_idx != idx)
|
/external/elfutils/libebl/ |
eblsectionname.c | 60 int idx = section != SHN_XINDEX ? section : xsection; local 63 res = scnnames[idx]; 66 snprintf (buf, len, "%d", idx);
|
/external/elfutils/libelf/ |
elf_getshdrnum.c | 46 int idx; local 57 idx = elf->state.elf.scns_last->cnt; 58 if (idx != 0 65 *dst = 1 + elf->state.elf.scns_last->data[idx - 1].index;
|
/external/linux-kselftest/tools/testing/selftests/rcutorture/formal/srcu-cbmc/src/ |
simple_sync_srcu.c | 25 bool try_check_zero(struct srcu_struct *sp, int idx, int trycount); 31 int idx; local 42 idx = 1 ^ (sp->completed & 1); 46 assume(try_check_zero(sp, idx, trycount)); 50 assume(try_check_zero(sp, idx^1, trycount));
|
/frameworks/base/tools/aapt/ |
AaptUtil.h | 45 ssize_t idx = keyedVector.indexOfKey(key); local 46 if (idx < 0) { 47 idx = keyedVector.add(key, android::Vector<VALUE>()); 49 keyedVector.editValueAt(idx).add(value); 55 ssize_t idx = keyedVector.indexOfKey(key); local 56 if (idx < 0) { 57 idx = keyedVector.add(key, android::SortedVector<VALUE>()); 59 keyedVector.editValueAt(idx).add(value);
|
/external/compiler-rt/test/tsan/ |
bench_ten_mutexes.cc | 14 int idx = (i % kMutex); local 16 idx = kMutex - idx - 1; 17 pthread_mutex_lock(&mtx[idx]); 18 pthread_mutex_unlock(&mtx[idx]);
|