Searched refs:safe_add (Results 1 - 5 of 5) sorted by relevance

/bionic/linker/
H A Dlinker_mapped_file_fragment.cpp50 CHECK(safe_add(&offset, base_offset, elf_offset));
55 CHECK(safe_add(&end_offset, offset, size));
56 CHECK(safe_add(&end_offset, end_offset, page_offset(offset)));
H A Dlinker_utils.h58 bool safe_add(off64_t* out, off64_t a, size_t b);
H A Dlinker_utils.cpp178 bool safe_add(off64_t* out, off64_t a, size_t b) { function
H A Dlinker_phdr.cpp299 safe_add(&range_start, file_offset_, offset) &&
300 safe_add(&range_end, range_start, size) &&
/bionic/linker/tests/
H A Dlinker_utils_test.cpp115 TEST(linker_utils, safe_add) {
117 ASSERT_FALSE(safe_add(&val, INT64_MAX-20, 21U));
119 ASSERT_TRUE(safe_add(&val, INT64_MAX-42, 42U));
121 ASSERT_TRUE(safe_add(&val, 2000, 42U));

Completed in 52 milliseconds