Home
last modified time | relevance | path

Searched refs:bytes (Results 1 – 25 of 28) sorted by relevance

12

/bionic/tests/
Duchar_test.cpp83 char bytes[MB_LEN_MAX]; in TEST() local
84 EXPECT_EQ(1U, c16rtomb(bytes, L'\0', NULL)); in TEST()
92 char bytes[MB_LEN_MAX]; in TEST() local
94 memset(bytes, 0, sizeof(bytes)); in TEST()
95 EXPECT_EQ(1U, c16rtomb(bytes, L'h', NULL)); in TEST()
96 EXPECT_EQ('h', bytes[0]); in TEST()
102 memset(bytes, 0, sizeof(bytes)); in TEST()
103 EXPECT_EQ(1U, c16rtomb(bytes, L'h', NULL)); in TEST()
104 EXPECT_EQ('h', bytes[0]); in TEST()
106 memset(bytes, 0, sizeof(bytes)); in TEST()
[all …]
Dwchar_test.cpp33 char bytes[] = { 'h', 'e', 'l', 'l', 'o', '\0' }; in TEST() local
34 EXPECT_EQ(0U, mbrlen(&bytes[0], 0, NULL)); in TEST()
35 EXPECT_EQ(1U, mbrlen(&bytes[0], 1, NULL)); in TEST()
37 EXPECT_EQ(1U, mbrlen(&bytes[4], 1, NULL)); in TEST()
38 EXPECT_EQ(0U, mbrlen(&bytes[5], 1, NULL)); in TEST()
48 char bytes[MB_LEN_MAX]; in TEST() local
51 EXPECT_EQ(1, wctomb(bytes, L'\0')); in TEST()
52 EXPECT_EQ(1U, wcrtomb(bytes, L'\0', NULL)); in TEST()
55 memset(bytes, 0, sizeof(bytes)); in TEST()
56 EXPECT_EQ(1, wctomb(bytes, L'h')); in TEST()
[all …]
/bionic/libc/arch-x86/silvermont/string/
Dsse4-memcmp-slm.S177 jz L(0bytes)
184 jz L(0bytes)
191 jz L(0bytes)
198 jz L(0bytes)
205 jz L(0bytes)
209 je L(0bytes)
222 L(0bytes):
324 L(16bytes):
329 L(12bytes):
334 L(8bytes):
[all …]
/bionic/libc/arch-x86_64/string/
Dsse4-memcmp-slm.S753 jnc L(16bytes)
758 jnc L(16bytes)
763 jnc L(16bytes)
767 jmp L(16bytes)
772 jmp L(16bytes)
776 jmp L(16bytes)
780 jmp L(16bytes)
784 jmp L(16bytes)
788 jmp L(16bytes)
792 jmp L(16bytes)
[all …]
/bionic/libc/kernel/uapi/linux/netfilter/
Dxt_sctp.h51 #define bytes(type) (sizeof(type) * 8) macro
52 #define SCTP_CHUNKMAP_SET(chunkmap,type) do { (chunkmap)[type / bytes(__u32)] |= 1 << (type % bytes
54 …SCTP_CHUNKMAP_CLEAR(chunkmap,type) do { (chunkmap)[type / bytes(__u32)] &= ~(1 << (type % bytes(__…
56 ({ ((chunkmap)[type / bytes(__u32)] & (1 << (type % bytes(__u32)))) ? 1 : 0; \
Dxt_set.h76 struct ip_set_counter_match0 bytes; member
92 struct ip_set_counter_match bytes; member
/bionic/libc/malloc_debug/
Dmalloc_debug.cpp75 void* debug_memalign(size_t alignment, size_t bytes);
76 void* debug_realloc(void* pointer, size_t bytes);
77 void* debug_calloc(size_t nmemb, size_t bytes);
86 void* debug_pvalloc(size_t bytes);
315 size_t bytes = debug_malloc_usable_size(pointer); in debug_malloc() local
317 bytes = (bytes < fill_bytes) ? bytes : fill_bytes; in debug_malloc()
318 memset(pointer, g_debug->config().fill_alloc_value, bytes); in debug_malloc()
329 size_t bytes; in debug_free() local
360 bytes = header->usable_size; in debug_free()
362 bytes = g_dispatch->malloc_usable_size(pointer); in debug_free()
[all …]
DFreeTrackData.cpp76 size_t bytes = header->usable_size; in VerifyAndFree() local
77 bytes = (bytes < debug.config().fill_on_free_bytes) ? bytes : debug.config().fill_on_free_bytes; in VerifyAndFree()
78 while (bytes > 0) { in VerifyAndFree()
79 size_t bytes_to_cmp = (bytes < cmp_mem_.size()) ? bytes : cmp_mem_.size(); in VerifyAndFree()
84 bytes -= bytes_to_cmp; in VerifyAndFree()
DREADME.md44 in the log indicating what bytes changed.
49 If SIZE\_BYTES is present, it indicates the number of bytes in the guard.
50 The default is 32 bytes, the max bytes is 16384. SIZE\_BYTES will be
51 padded so that it is a multiple of 8 bytes on 32 bit systems and 16 bytes
72 in the log indicating what bytes changed.
74 If SIZE\_BYTES is present, it indicates the number of bytes in the guard.
75 The default is 32 bytes, the max bytes is 16384.
91 If SIZE\_BYTES is present, it indicates the number of bytes in both guards.
92 The default is 32 bytes, the max bytes is 16384.
127 filled with the value 0xeb. When doing a realloc to a larger size, the bytes
[all …]
/bionic/libc/bionic/
Djemalloc_wrapper.cpp23 void* je_pvalloc(size_t bytes) { in je_pvalloc() argument
25 size_t size = BIONIC_ALIGN(bytes, pagesize); in je_pvalloc()
26 if (size < bytes) { in je_pvalloc()
Dmalloc_common.cpp104 extern "C" void* malloc(size_t bytes) { in malloc() argument
107 return _malloc(bytes); in malloc()
109 return Malloc(malloc)(bytes); in malloc()
120 extern "C" void* memalign(size_t alignment, size_t bytes) { in memalign() argument
123 return _memalign(alignment, bytes); in memalign()
125 return Malloc(memalign)(alignment, bytes); in memalign()
136 extern "C" void* realloc(void* old_mem, size_t bytes) { in realloc() argument
139 return _realloc(old_mem, bytes); in realloc()
141 return Malloc(realloc)(old_mem, bytes); in realloc()
145 extern "C" void* pvalloc(size_t bytes) { in pvalloc() argument
[all …]
/bionic/libc/upstream-netbsd/lib/libc/isc/
Dev_streams.c49 static void consume(evStream *str, size_t bytes);
233 consume(evStream *str, size_t bytes) { in consume() argument
234 while (bytes > 0U) { in consume()
235 if (bytes < (size_t)str->iovCur->iov_len) { in consume()
236 str->iovCur->iov_len -= bytes; in consume()
238 ((u_char *)str->iovCur->iov_base + bytes); in consume()
239 str->ioDone += bytes; in consume()
240 bytes = 0; in consume()
242 bytes -= str->iovCur->iov_len; in consume()
272 int bytes; in writable() local
[all …]
/bionic/libc/arch-x86/atom/string/
Dssse3-memcmp-atom.S1834 je L(8bytes)
1837 je L(9bytes)
1839 je L(10bytes)
1841 je L(11bytes)
1843 je L(12bytes)
1845 je L(13bytes)
1847 je L(14bytes)
1848 jmp L(15bytes)
1850 jmp L(12bytes)
1853 je L(10bytes)
[all …]
/bionic/libc/kernel/uapi/linux/
Dgen_stats.h36 __u64 bytes; member
41 __u64 bytes; member
Dblktrace_api.h114 __u32 bytes; member
Dtelephony.h185 unsigned int bytes; member
Drds.h147 uint64_t bytes; member
Dxfrm.h82 __u64 bytes; member
Dsoundcard.h424 int bytes; member
449 int bytes; member
/bionic/libc/kernel/uapi/mtd/
Dubi-user.h72 __s64 bytes; member
82 __s64 bytes; member
101 __s32 bytes; member
/bionic/linker/
Dlinker_block_allocator.cpp32 uint8_t bytes[PAGE_SIZE - 16] __attribute__((aligned(16))); member
79 ssize_t offset = reinterpret_cast<uint8_t*>(block) - page->bytes; in free()
118 FreeBlockInfo* first_block = reinterpret_cast<FreeBlockInfo*>(page->bytes); in create_new_page()
/bionic/libc/upstream-openbsd/lib/libc/crypt/
Dchacha_private.h89 chacha_encrypt_bytes(chacha_ctx *x,const u8 *m,u8 *c,u32 bytes) in chacha_encrypt_bytes() argument
97 if (!bytes) return; in chacha_encrypt_bytes()
117 if (bytes < 64) { in chacha_encrypt_bytes()
118 for (i = 0;i < bytes;++i) tmp[i] = m[i]; in chacha_encrypt_bytes()
208 if (bytes <= 64) { in chacha_encrypt_bytes()
209 if (bytes < 64) { in chacha_encrypt_bytes()
210 for (i = 0;i < bytes;++i) ctarget[i] = c[i]; in chacha_encrypt_bytes()
216 bytes -= 64; in chacha_encrypt_bytes()
/bionic/tools/relocation_packer/src/
Delf_file_unittest.cc52 size_t bytes; in OpenRelocsTestFile() local
54 bytes = fread(buffer, 1, sizeof(buffer), testfile); in OpenRelocsTestFile()
55 ASSERT_EQ(bytes, fwrite(buffer, 1, bytes, temporary)); in OpenRelocsTestFile()
56 } while (bytes > 0); in OpenRelocsTestFile()
Delf_file.cc572 size_t bytes = dynamics.size() * sizeof(dynamics[0]); in AdjustDynamicSectionForHole() local
573 RewriteSectionData(dynamic_section, section_data, bytes); in AdjustDynamicSectionForHole()
787 const size_t bytes = packed.size() * sizeof(packed[0]); in PackTypedRelocations() local
788 ResizeSection(elf_, relocations_section_, bytes, in PackTypedRelocations()
790 RewriteSectionData(relocations_section_, packed_data, bytes); in PackTypedRelocations()
/bionic/libc/kernel/uapi/drm/
Domap_drm.h42 uint32_t bytes; member

12