Searched defs:bytes (Results 1 - 25 of 58) sorted by relevance

123

/bionic/tests/
H A Duchar_test.cpp83 char bytes[MB_LEN_MAX]; local
84 EXPECT_EQ(1U, c16rtomb(bytes, L'\0', NULL));
92 char bytes[MB_LEN_MAX]; local
94 memset(bytes, 0, sizeof(bytes));
95 EXPECT_EQ(1U, c16rtomb(bytes, L'h', NULL));
96 EXPECT_EQ('h', bytes[0]);
102 memset(bytes, 0, sizeof(bytes));
103 EXPECT_EQ(1U, c16rtomb(bytes,
123 char bytes[MB_LEN_MAX]; local
139 char bytes[MB_LEN_MAX]; local
281 char bytes[MB_LEN_MAX]; local
[all...]
/bionic/libc/bionic/
H A Djemalloc_wrapper.cpp24 void* je_pvalloc(size_t bytes) { argument
26 size_t size = __BIONIC_ALIGN(bytes, pagesize);
27 if (size < bytes) {
/bionic/benchmarks/tests/
H A Dinterface_test.cpp118 ssize_t bytes = TEMP_FAILURE_RETRY(read(fd_, buffer, sizeof(buffer) - 1)); local
119 if (bytes == -1 && errno == EAGAIN) {
122 ASSERT_NE(-1, bytes);
123 if (bytes == 0) {
126 buffer[bytes] = '\0';
/bionic/libc/kernel/uapi/linux/
H A Dgen_stats.h34 __u64 bytes; member in struct:gnet_stats_basic
38 __u64 bytes; member in struct:gnet_stats_basic_packed
/bionic/libc/kernel/uapi/linux/netfilter/
H A Dxt_set.h65 struct ip_set_counter_match0 bytes; member in struct:xt_set_info_match_v3
78 struct ip_set_counter_match bytes; member in struct:xt_set_info_match_v4
H A Dxt_sctp.h45 #define bytes(type) (sizeof(type) * 8) macro
46 #define SCTP_CHUNKMAP_SET(chunkmap,type) do { (chunkmap)[type / bytes(__u32)] |= 1 << (type % bytes(__u32)); } while(0)
47 #define SCTP_CHUNKMAP_CLEAR(chunkmap,type) do { (chunkmap)[type / bytes(__u32)] &= ~(1 << (type % bytes(__u32))); } while(0)
49 ({ ((chunkmap)[type / bytes(__u32)] & (1 << (type % bytes(__u32)))) ? 1 : 0; \
/bionic/libc/versioner-dependencies/common/kernel_uapi/linux/
H A Dgen_stats.h34 __u64 bytes; member in struct:gnet_stats_basic
38 __u64 bytes; member in struct:gnet_stats_basic_packed
/bionic/libc/versioner-dependencies/common/kernel_uapi/linux/netfilter/
H A Dxt_set.h65 struct ip_set_counter_match0 bytes; member in struct:xt_set_info_match_v3
78 struct ip_set_counter_match bytes; member in struct:xt_set_info_match_v4
H A Dxt_sctp.h45 #define bytes(type) (sizeof(type) * 8) macro
46 #define SCTP_CHUNKMAP_SET(chunkmap,type) do { (chunkmap)[type / bytes(__u32)] |= 1 << (type % bytes(__u32)); } while(0)
47 #define SCTP_CHUNKMAP_CLEAR(chunkmap,type) do { (chunkmap)[type / bytes(__u32)] &= ~(1 << (type % bytes(__u32))); } while(0)
49 ({ ((chunkmap)[type / bytes(__u32)] & (1 << (type % bytes(__u32)))) ? 1 : 0; \
/bionic/linker/
H A Dlinker_block_allocator.cpp44 uint8_t bytes[PAGE_SIZE - 16] __attribute__((aligned(16))); member in struct:LinkerBlockAllocatorPage
91 ssize_t offset = reinterpret_cast<uint8_t*>(block) - page->bytes;
128 FreeBlockInfo* first_block = reinterpret_cast<FreeBlockInfo*>(page->bytes);
/bionic/tools/versioner/dependencies/common/kernel_uapi/linux/
H A Dgen_stats.h34 __u64 bytes; member in struct:gnet_stats_basic
38 __u64 bytes; member in struct:gnet_stats_basic_packed
/bionic/tools/versioner/dependencies/common/kernel_uapi/linux/netfilter/
H A Dxt_set.h65 struct ip_set_counter_match0 bytes; member in struct:xt_set_info_match_v3
78 struct ip_set_counter_match bytes; member in struct:xt_set_info_match_v4
H A Dxt_sctp.h45 #define bytes(type) (sizeof(type) * 8) macro
46 #define SCTP_CHUNKMAP_SET(chunkmap,type) do { (chunkmap)[type / bytes(__u32)] |= 1 << (type % bytes(__u32)); } while(0)
47 #define SCTP_CHUNKMAP_CLEAR(chunkmap,type) do { (chunkmap)[type / bytes(__u32)] &= ~(1 << (type % bytes(__u32))); } while(0)
49 ({ ((chunkmap)[type / bytes(__u32)] & (1 << (type % bytes(__u32)))) ? 1 : 0; \
/bionic/libc/malloc_debug/
H A DRecordData.cpp142 ssize_t bytes = write(dump_fd, line.c_str(), line.length()); local
143 if (bytes == -1 || static_cast<size_t>(bytes) != line.length()) {
H A DPointerData.cpp277 size_t bytes = (usable_size < g_debug->config().fill_on_free_bytes()) local
281 while (bytes > 0) {
282 size_t bytes_to_cmp = (bytes < g_cmp_mem.size()) ? bytes : g_cmp_mem.size();
286 bytes -= bytes_to_cmp;
/bionic/libc/upstream-netbsd/lib/libc/isc/
H A Dev_streams.c49 static void consume(evStream *str, size_t bytes);
233 consume(evStream *str, size_t bytes) { argument
234 while (bytes > 0U) {
235 if (bytes < (size_t)str->iovCur->iov_len) {
236 str->iovCur->iov_len -= bytes;
238 ((u_char *)str->iovCur->iov_base + bytes);
239 str->ioDone += bytes;
240 bytes = 0;
242 bytes -= str->iovCur->iov_len;
268 /* Dribble out some bytes o
272 int bytes; local
295 int bytes; local
[all...]
/bionic/tools/relocation_packer/src/
H A Delf_file_unittest.cc52 size_t bytes; local
54 bytes = fread(buffer, 1, sizeof(buffer), testfile);
55 ASSERT_EQ(bytes, fwrite(buffer, 1, bytes, temporary));
56 } while (bytes > 0);
/bionic/libc/arch-mips/string/
H A Dmemcmp.c108 /* This code is called when aligning a pointer, there are remaining bytes
140 unsigned long words, unsigned long bytes)
211 /* mop up any remaining bytes. */
212 return do_bytes (a, b, bytes);
217 unsigned long words, unsigned long bytes)
219 return do_bytes (a, b, (sizeof (reg_t) * words) + bytes);
226 unsigned long words, unsigned long bytes)
308 /* mop up any remaining bytes. */
309 return do_bytes (a, b, bytes);
314 unsigned long bytes, word local
139 unaligned_words(const struct ulw *a, const reg_t *b, unsigned long words, unsigned long bytes) argument
216 unaligned_words(const reg_t *a, const reg_t *b, unsigned long words, unsigned long bytes) argument
225 aligned_words(const reg_t *a, const reg_t *b, unsigned long words, unsigned long bytes) argument
[all...]
H A Dmemcpy.c86 /* This code is called when aligning a pointer, there are remaining bytes
106 /* This code is called to copy only remaining bytes within word or doubleword */
148 unsigned long words, unsigned long bytes, void *ret)
194 /* mop up any remaining bytes. */
195 return do_bytes_remaining (a, b, bytes, ret);
201 unsigned long words, unsigned long bytes, void *ret)
229 /* mop up any remaining bytes */
230 return do_bytes_remaining (a, b, bytes, ret);
238 unsigned long words, unsigned long bytes, void *ret)
284 /* mop up any remaining bytes
147 unaligned_words(struct ulw *a, const reg_t * b, unsigned long words, unsigned long bytes, void *ret) argument
200 unaligned_words(reg_t * a, const reg_t * b, unsigned long words, unsigned long bytes, void *ret) argument
237 aligned_words(reg_t * a, const reg_t * b, unsigned long words, unsigned long bytes, void *ret) argument
291 unsigned long bytes, words; local
[all...]
H A Dmemmove.c86 /* This code is called when aligning a pointer, there are remaining bytes
186 unsigned long words, unsigned long bytes, void *ret)
219 /* mop up any remaining bytes. */
220 return do_bytes_aligned (a, b, bytes, ret);
225 unsigned long words, unsigned long bytes, void *ret)
258 /* mop up any remaining bytes. */
259 return do_bytes_backward (a, b, bytes, ret);
266 unsigned long words, unsigned long bytes, void *ret)
268 return do_bytes_aligned (a, b, (sizeof (reg_t) * words) + bytes, ret);
273 unsigned long words, unsigned long bytes, voi
185 unaligned_words_forward(struct ulw *a, const reg_t * b, unsigned long words, unsigned long bytes, void *ret) argument
224 unaligned_words_backward(struct ulw *a, const reg_t * b, unsigned long words, unsigned long bytes, void *ret) argument
265 unaligned_words_forward(reg_t * a, const reg_t * b, unsigned long words, unsigned long bytes, void *ret) argument
272 unaligned_words_backward(reg_t * a, const reg_t * b, unsigned long words, unsigned long bytes, void *ret) argument
307 aligned_words_forward(reg_t * a, const reg_t * b, unsigned long words, unsigned long bytes, void *ret) argument
347 aligned_words_backward(reg_t * a, const reg_t * b, unsigned long words, unsigned long bytes, void *ret) argument
388 unsigned long bytes, words; local
[all...]
/bionic/libc/kernel/uapi/drm/
H A Domap_drm.h40 __u32 bytes; member in union:omap_gem_size
/bionic/libc/kernel/uapi/mtd/
H A Dubi-user.h62 __s64 bytes; member in struct:ubi_mkvol_req
70 __s64 bytes; member in struct:ubi_rsvol_req
85 __s32 bytes; member in struct:ubi_leb_change_req
/bionic/libc/malloc_hooks/
H A Dmalloc_hooks.cpp61 void* hooks_memalign(size_t alignment, size_t bytes);
62 void* hooks_aligned_alloc(size_t alignment, size_t bytes);
63 void* hooks_realloc(void* pointer, size_t bytes);
64 void* hooks_calloc(size_t nmemb, size_t bytes);
74 void* hooks_pvalloc(size_t bytes);
78 static void* default_malloc_hook(size_t bytes, const void*) { argument
79 return g_dispatch->malloc(bytes);
82 static void* default_realloc_hook(void* pointer, size_t bytes, const void*) { argument
83 return g_dispatch->realloc(pointer, bytes);
90 static void* default_memalign_hook(size_t alignment, size_t bytes, cons argument
139 hooks_memalign(size_t alignment, size_t bytes) argument
146 hooks_realloc(void* pointer, size_t bytes) argument
153 hooks_calloc(size_t nmemb, size_t bytes) argument
220 hooks_pvalloc(size_t bytes) argument
[all...]
/bionic/libc/stdio/
H A Dvfscanf.cpp343 size_t bytes = 0; local
345 if (bytes == MB_CUR_MAX) {
349 buf[bytes++] = *fp->_p;
353 nconv = mbrtowc(wcp, buf, bytes, &mbs);
360 nread += bytes;
363 bytes = 0;
366 if (bytes != 0) {
432 size_t bytes = 0; local
434 if (bytes == MB_CUR_MAX) {
438 buf[bytes
[all...]
/bionic/libc/versioner-dependencies/common/kernel_uapi/drm/
H A Domap_drm.h40 __u32 bytes; member in union:omap_gem_size

Completed in 699 milliseconds

123