Searched refs:bytes (Results 1 - 25 of 47) sorted by relevance

12

/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...]
H A Dwchar_test.cpp35 char bytes[] = { 'h', 'e', 'l', 'l', 'o', '\0' }; local
36 EXPECT_EQ(0U, mbrlen(&bytes[0], 0, NULL));
37 EXPECT_EQ(1U, mbrlen(&bytes[0], 1, NULL));
39 EXPECT_EQ(1U, mbrlen(&bytes[4], 1, NULL));
40 EXPECT_EQ(0U, mbrlen(&bytes[5], 1, NULL));
50 char bytes[MB_LEN_MAX]; local
53 EXPECT_EQ(1, wctomb(bytes, L'\0'));
54 EXPECT_EQ(1U, wcrtomb(bytes, L'\0', NULL));
57 memset(bytes, 0, sizeof(bytes));
121 char bytes[BUFSIZ]; local
[all...]
/bionic/libc/kernel/uapi/linux/netfilter/
H A 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(__u32)); } while(0)
54 #define SCTP_CHUNKMAP_CLEAR(chunkmap,type) do { (chunkmap)[type / bytes(__u32)] &= ~(1 << (type % bytes(__u32))); } while(0)
56 ({ ((chunkmap)[type / bytes(__u32)] & (1 << (type % bytes(__u32)))) ? 1 : 0; \
H A Dxt_set.h76 struct ip_set_counter_match0 bytes; member in struct:xt_set_info_match_v3
92 struct ip_set_counter_match bytes; member in struct:xt_set_info_match_v4
/bionic/libc/versioner-dependencies/common/kernel_uapi/linux/netfilter/
H A 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(__u32)); } while(0)
54 #define SCTP_CHUNKMAP_CLEAR(chunkmap,type) do { (chunkmap)[type / bytes(__u32)] &= ~(1 << (type % bytes(__u32))); } while(0)
56 ({ ((chunkmap)[type / bytes(__u32)] & (1 << (type % bytes(__u32)))) ? 1 : 0; \
H A Dxt_set.h76 struct ip_set_counter_match0 bytes; member in struct:xt_set_info_match_v3
92 struct ip_set_counter_match bytes; member in struct:xt_set_info_match_v4
/bionic/libc/arch-mips/string/
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; variable
[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; variable
[all...]
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...]
/bionic/libc/arch-x86/silvermont/string/
H A 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/malloc_debug/
H A Dmalloc_debug.cpp76 void* debug_memalign(size_t alignment, size_t bytes);
77 void* debug_realloc(void* pointer, size_t bytes);
78 void* debug_calloc(size_t nmemb, size_t bytes);
88 void* debug_pvalloc(size_t bytes);
320 size_t bytes = internal_malloc_usable_size(pointer); local
322 bytes = (bytes < fill_bytes) ? bytes : fill_bytes;
323 memset(pointer, g_debug->config().fill_alloc_value, bytes);
345 size_t bytes; local
412 debug_memalign(size_t alignment, size_t bytes) argument
471 size_t bytes = internal_malloc_usable_size(pointer); local
484 debug_realloc(void* pointer, size_t bytes) argument
573 size_t bytes = internal_malloc_usable_size(new_pointer); local
590 debug_calloc(size_t nmemb, size_t bytes) argument
[all...]
H A DFreeTrackData.cpp71 size_t bytes = header->usable_size; local
72 bytes = (bytes < debug_->config().fill_on_free_bytes) ? bytes
74 while (bytes > 0) {
75 size_t bytes_to_cmp = (bytes < cmp_mem_.size()) ? bytes : cmp_mem_.size();
80 bytes -= bytes_to_cmp;
/bionic/libc/arch-x86_64/string/
H A 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/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) {
H A Dmalloc_common.cpp113 extern "C" void* malloc(size_t bytes) { argument
116 return _malloc(bytes);
118 return Malloc(malloc)(bytes);
129 extern "C" void* memalign(size_t alignment, size_t bytes) { argument
132 return _memalign(alignment, bytes);
134 return Malloc(memalign)(alignment, bytes);
145 extern "C" void* realloc(void* old_mem, size_t bytes) { argument
148 return _realloc(old_mem, bytes);
150 return Malloc(realloc)(old_mem, bytes);
154 extern "C" void* pvalloc(size_t bytes) { argument
162 valloc(size_t bytes) argument
[all...]
/bionic/libc/kernel/uapi/linux/
H A Dgen_stats.h37 __u64 bytes; member in struct:gnet_stats_basic
42 __u64 bytes; member in struct:gnet_stats_basic_packed
/bionic/libc/versioner-dependencies/common/kernel_uapi/linux/
H A Dgen_stats.h37 __u64 bytes; member in struct:gnet_stats_basic
42 __u64 bytes; member in struct:gnet_stats_basic_packed
/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/libc/arch-x86/atom/string/
H A 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/mtd/
H A Dubi-user.h72 __s64 bytes; member in struct:ubi_mkvol_req
82 __s64 bytes; member in struct:ubi_rsvol_req
101 __s32 bytes; member in struct:ubi_leb_change_req
/bionic/libc/versioner-dependencies/common/kernel_uapi/mtd/
H A Dubi-user.h72 __s64 bytes; member in struct:ubi_mkvol_req
82 __s64 bytes; member in struct:ubi_rsvol_req
101 __s32 bytes; member in struct:ubi_leb_change_req
/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/libc/upstream-openbsd/lib/libc/crypt/
H A Dchacha_private.h89 chacha_encrypt_bytes(chacha_ctx *x,const u8 *m,u8 *c,u32 bytes) argument
97 if (!bytes) return;
117 if (bytes < 64) {
118 for (i = 0;i < bytes;++i) tmp[i] = m[i];
188 /* stopping at 2^70 bytes per nonce is user's responsibility */
208 if (bytes <= 64) {
209 if (bytes < 64) {
210 for (i = 0;i < bytes;++i) ctarget[i] = c[i];
216 bytes -= 64;
/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/kernel/uapi/drm/
H A Domap_drm.h45 uint32_t bytes; member in union:omap_gem_size

Completed in 717 milliseconds

12