Home
last modified time | relevance | path

Searched refs:beg (Results 1 – 25 of 55) sorted by relevance

123

/external/compiler-rt/lib/asan/
Dasan_poisoning.cc85 ShadowSegmentEndpoint beg(beg_addr); in __asan_poison_memory_region() local
87 if (beg.chunk == end.chunk) { in __asan_poison_memory_region()
88 CHECK(beg.offset < end.offset); in __asan_poison_memory_region()
89 s8 value = beg.value; in __asan_poison_memory_region()
94 if (beg.offset > 0) { in __asan_poison_memory_region()
95 *beg.chunk = Min(value, beg.offset); in __asan_poison_memory_region()
97 *beg.chunk = kAsanUserPoisonedMemoryMagic; in __asan_poison_memory_region()
102 CHECK(beg.chunk < end.chunk); in __asan_poison_memory_region()
103 if (beg.offset > 0) { in __asan_poison_memory_region()
105 if (beg.value == 0) { in __asan_poison_memory_region()
[all …]
Dasan_globals.cc44 PoisonShadow(g.beg + g_aligned_size, in PoisonRedZones()
51 PoisonShadowPartialRightRedzone(g.beg + g_aligned_down_size, in PoisonRedZones()
71 (void*)g.beg, g.size, (char*)g.name); in DescribeAddressIfGlobal()
84 (void*)g->beg, g->size, g->size_with_redzone, g->name, in RegisterGlobal()
87 CHECK(AddrIsInMem(g->beg)); in RegisterGlobal()
88 CHECK(AddrIsAlignedByGranularity(g->beg)); in RegisterGlobal()
107 CHECK(AddrIsInMem(g->beg)); in UnregisterGlobal()
108 CHECK(AddrIsAlignedByGranularity(g->beg)); in UnregisterGlobal()
110 PoisonShadow(g->beg, g->size_with_redzone, 0); in UnregisterGlobal()
120 CHECK(AddrIsInMem(g->beg)); in PoisonGlobalAndRedzones()
[all …]
Dasan_report.cc95 for (uptr p = g.beg; p < g.beg + g.size - 1; p++) { in PrintGlobalNameIfASCII()
98 if (*(char*)(g.beg + g.size - 1) != 0) return; in PrintGlobalNameIfASCII()
99 Printf(" '%s' is ascii string '%s'\n", g.name, (char*)g.beg); in PrintGlobalNameIfASCII()
103 if (addr < g.beg - kGlobalAndStackRedzone) return false; in DescribeAddressRelativeToGlobal()
104 if (addr >= g.beg + g.size_with_redzone) return false; in DescribeAddressRelativeToGlobal()
106 if (addr < g.beg) { in DescribeAddressRelativeToGlobal()
107 Printf("%zd bytes to the left", g.beg - addr); in DescribeAddressRelativeToGlobal()
108 } else if (addr >= g.beg + g.size) { in DescribeAddressRelativeToGlobal()
109 Printf("%zd bytes to the right", addr - (g.beg + g.size)); in DescribeAddressRelativeToGlobal()
111 Printf("%zd bytes inside", addr - g.beg); // Can it happen? in DescribeAddressRelativeToGlobal()
[all …]
Dasan_rtl.cc170 static void ReserveShadowMemoryRange(uptr beg, uptr end) { in ReserveShadowMemoryRange() argument
171 CHECK((beg % kPageSize) == 0); in ReserveShadowMemoryRange()
173 uptr size = end - beg + 1; in ReserveShadowMemoryRange()
174 void *res = MmapFixedNoReserve(beg, size); in ReserveShadowMemoryRange()
175 if (res != (void*)beg) { in ReserveShadowMemoryRange()
Dasan_allocator.cc308 uptr beg; member
313 return addr >= beg && addr < end; in InRange()
432 int beg = 0, end = n; in FindPageGroupUnlocked() local
433 while (beg < end) { in FindPageGroupUnlocked()
434 int med = (beg + end) / 2; in FindPageGroupUnlocked()
439 beg = med + 1; in FindPageGroupUnlocked()
445 if (beg >= n) in FindPageGroupUnlocked()
447 PageGroup *g = page_groups_[beg]; in FindPageGroupUnlocked()
477 uptr offset_from_beg = addr - g->beg; in FindChunkByAddr()
478 uptr this_chunk_addr = g->beg + in FindChunkByAddr()
[all …]
/external/v8/src/arm/
Dcpu-arm.cc74 register uint32_t beg asm("a1") = reinterpret_cast<uint32_t>(start); in FlushICache()
83 : "=r" (beg) in FlushICache()
84 : "0" (beg), "r" (end), "r" (flg), "r" (scno)); in FlushICache()
102 : "=r" (beg) in FlushICache()
103 : "0" (beg), "r" (end), "r" (flg), "r" (__ARM_NR_cacheflush) in FlushICache()
/external/compiler-rt/lib/tsan/rtl/
Dtsan_platform_linux.cc88 static void ProtectRange(uptr beg, uptr end) { in ProtectRange() argument
90 CHECK_LE(beg, end); in ProtectRange()
91 if (beg == end) in ProtectRange()
93 if (beg != (uptr)Mprotect(beg, end - beg)) { in ProtectRange()
94 TsanPrintf("FATAL: ThreadSanitizer can not protect [%zx,%zx]\n", beg, end); in ProtectRange()
/external/srec/portable/src/
DLCHAR.c160 LCHAR *beg, *end; in LCHARGetInt() local
165 for (beg = text; *beg != L('\0') && LISSPACE(*beg); ++beg); in LCHARGetInt()
166 if (beg == NULL) in LCHARGetInt()
169 for (end = beg; *end != L('\0') && !LISSPACE(*end); ++end); in LCHARGetInt()
175 rc = lstrtoi(beg, value, 10); in LCHARGetInt()
/external/oprofile/include/
Dsstream150 char_type* beg = stream;
169 if (way == ios::beg)
171 newoffi = beg - curi;
172 newoffo = beg - curo;
180 if (testin && newoffi + off + curi - beg >= 0 &&
181 endi - beg >= newoffi + off + curi - beg)
186 if (testout && newoffo + off + curo - beg >= 0 &&
187 endo - beg >= newoffo + off + curo - beg)
199 pos_type ret = seekoff(sp, ios::beg, which);
/external/mksh/src/
Dsh.h1274 char *end, *beg; /* end, begin of string */ member
1285 (xs).beg = alloc((xs).len + X_EXTRA, (xs).areap); \
1286 (xs).end = (xs).beg + (xs).len; \
1290 (xp) = (xs).beg; \
1307 #define Xfree(xs, xp) afree((xs).beg, (xs).areap)
1310 #define Xclose(xs, xp) aresize((xs).beg, (xp) - (xs).beg, (xs).areap)
1313 #define Xstring(xs, xp) ((xs).beg)
1316 #define Xlength(xs, xp) ((xp) - (xs).beg)
1317 #define Xsize(xs, xp) ((xs).end - (xs).beg)
1318 #define Xsavepos(xs, xp) ((xp) - (xs).beg)
[all …]
Deval.c341 char *beg, *end, *str; in expand() local
345 end = (beg = wdcopy(sp, ATEMP)) + in expand()
348 if (end < wdscan(beg, EOS)) in expand()
350 str = snptreef(NULL, 64, "%S", beg); in expand()
351 afree(beg, ATEMP); in expand()
382 char *beg, *mid, *end, *stg; in expand() local
385 beg = wdcopy(sp, ATEMP); in expand()
386 mid = beg + (wdscan(sp, ADELIM) - sp); in expand()
387 stg = beg + (wdscan(sp, CSUBST) - sp); in expand()
392 sp += mid - beg - 1; in expand()
[all …]
/external/qemu/distrib/zlib-1.2.3/
Ddeflate.c654 uInt beg = s->pending; /* start of bytes to update crc */ local
658 if (s->gzhead->hcrc && s->pending > beg)
659 strm->adler = crc32(strm->adler, s->pending_buf + beg,
660 s->pending - beg);
662 beg = s->pending;
669 if (s->gzhead->hcrc && s->pending > beg)
670 strm->adler = crc32(strm->adler, s->pending_buf + beg,
671 s->pending - beg);
682 uInt beg = s->pending; /* start of bytes to update crc */ local
687 if (s->gzhead->hcrc && s->pending > beg)
[all …]
Dinffast.c75 unsigned char FAR *beg; /* inflate()'s initial strm->next_out */ local
102 beg = out - (start - strm->avail_out);
186 op = (unsigned)(out - beg); /* max distance in output */
/external/stlport/test/unit/
Dstack_allocator.h33 State(char *beg, char *end) in State()
34 : m_beg(beg), m_end(end), m_cur(m_beg), m_isOk(true), m_swaped(false), m_nbAlloc(0), in State()
68 StackAllocator(char *beg, char *end) in StackAllocator()
69 : m_state(beg, end) {} in StackAllocator()
Dfstream_test.cpp164 f.seekg( 0, ios_base::beg ); in io()
200 f.seekg( 0, ios_base::beg ); in err()
254 is.seekg( p, ios_base::beg ); in tellg()
349 ss.seekg( 0, ios_base::beg ); in buf()
476 off = s.rdbuf()->pubseekoff(0, ios_base::beg); in seek()
496 ss.seekg( 0, ios_base::beg ); in rdbuf()
892 f.seekg( 0, ios_base::beg ); in null_buf()
Dsstream_test.cpp391 s.seekg( 6, ios::beg ); in seek()
398 is.seekg( 6, ios::beg ); in seek()
414 s.seekp( 0, ios::beg ); in seekp()
431 ss.seekg( 0, ios::beg ); in seek_gp()
/external/zlib/src/
Ddeflate.c765 uInt beg = s->pending; /* start of bytes to update crc */ local
769 if (s->gzhead->hcrc && s->pending > beg)
770 strm->adler = crc32(strm->adler, s->pending_buf + beg,
771 s->pending - beg);
773 beg = s->pending;
780 if (s->gzhead->hcrc && s->pending > beg)
781 strm->adler = crc32(strm->adler, s->pending_buf + beg,
782 s->pending - beg);
793 uInt beg = s->pending; /* start of bytes to update crc */ local
798 if (s->gzhead->hcrc && s->pending > beg)
[all …]
Dinffast.c75 unsigned char FAR *beg; /* inflate()'s initial strm->next_out */ local
102 beg = out - (start - strm->avail_out);
186 op = (unsigned)(out - beg); /* max distance in output */
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_symbolizer.h69 void addAddressRange(uptr beg, uptr end);
77 uptr beg; member
Dsanitizer_symbolizer.cc34 void LoadedModule::addAddressRange(uptr beg, uptr end) { in addAddressRange() argument
36 ranges_[n_ranges_].beg = beg; in addAddressRange()
43 if (ranges_[i].beg <= address && address < ranges_[i].end) in containsAddress()
/external/zlib/src/contrib/masmx64/
Dinffas8664.c89 /* 40 20 */ unsigned char FAR *beg; /* inflate()'s init next_out */ member
130 ar.beg = ar.out - (start - strm->avail_out);
/external/stlport/src/
Dnum_put.cpp128 char* beg = __write_integer_backward(bufend, flags, x); in __write_integer() local
129 return copy(beg, bufend, buf); in __write_integer()
/external/hyphenation/
Dsubstrings.pl33 $beg = $3;
43 $replbeg{$pat} = $beg - 1;
/external/astl/include/
Dstreambuf110 void setp(char_type* beg, char_type* end) {
111 if (end >= beg) {
112 mPutBeg = mPutCurr = beg;
/external/clang/include/clang/Analysis/Analyses/
DFormatString.h419 static PrintfSpecifier Parse(const char *beg, const char *end);
568 static ScanfSpecifier Parse(const char *beg, const char *end);
631 const char *beg, const char *end, const LangOptions &LO);
634 const char *beg, const char *end, const LangOptions &LO);

123