/third_party/rust/crates/libc/src/unix/haiku/ |
H A D | mod.rs | 1466 len + ::mem::size_of::<usize>() - 1 & !(::mem::size_of::<usize>() - 1) 1472 if (*mhdr).msg_controllen as usize >= ::mem::size_of::<cmsghdr>() { in CMSG_FIRSTHDR() 1481 .offset(CMSG_ALIGN(::mem::size_of::<::cmsghdr>()) as isize) in CMSG_DATA() 1485 (CMSG_ALIGN(length as usize) + CMSG_ALIGN(::mem::size_of::<cmsghdr>())) 1490 CMSG_ALIGN(::mem::size_of::<cmsghdr>()) as ::c_uint + length in CMSG_LEN() 1499 + CMSG_ALIGN(::mem::size_of::<::cmsghdr>()); in CMSG_NXTHDR()
|
/third_party/rust/crates/libc/src/unix/bsd/freebsdlike/freebsd/ |
H A D | mod.rs | 3804 .offset(_ALIGN(::mem::size_of::<::cmsghdr>()) as isize) in CMSG_DATA() 3808 _ALIGN(::mem::size_of::<::cmsghdr>()) as ::c_uint + length in CMSG_LEN() 3818 + _ALIGN(::mem::size_of::<::cmsghdr>()); in CMSG_NXTHDR() 3830 (_ALIGN(::mem::size_of::<::cmsghdr>()) + _ALIGN(length as usize)) 3852 ::mem::size_of::<sockcred>() + ::mem::size_of::<::gid_t>() * ngrps in SOCKCREDSIZE() 3872 let bitset_bits = 8 * ::mem::size_of::<::c_long>(); in CPU_SET() 3879 let bitset_bits = 8 * ::mem::size_of::<::c_long>(); in CPU_CLR() 3886 let bitset_bits = 8 * ::mem::size_of::<::c_long>(); in CPU_ISSET() 3893 let cpuset_size = ::mem::size_of in CPU_COUNT() [all...] |
/third_party/rust/crates/libc/src/unix/linux_like/ |
H A D | mod.rs | 1515 len + ::mem::size_of::<usize>() - 1 & !(::mem::size_of::<usize>() - 1) 1521 if (*mhdr).msg_controllen as usize >= ::mem::size_of::<cmsghdr>() { in CMSG_FIRSTHDR() 1533 (CMSG_ALIGN(length as usize) + CMSG_ALIGN(::mem::size_of::<cmsghdr>())) 1538 CMSG_ALIGN(::mem::size_of::<cmsghdr>()) as ::c_uint + length in CMSG_LEN()
|
/third_party/rust/crates/bindgen/bindgen-tests/tests/expectations/tests/ |
H A D | struct_with_bitfields.rs | 109 ::std::mem::size_of::<bitfield>(), in bindgen_test_layout_bitfield()
|
H A D | bitfield_pragma_packed.rs | 103 ::std::mem::size_of::<Struct>(), in bindgen_test_layout_Struct()
|
H A D | weird_bitfields.rs | 128 ::std::mem::size_of::<Weird>(), in bindgen_test_layout_Weird()
|
H A D | issue-1947.rs | 114 ::std::mem::size_of::<V56AMDY>(), in bindgen_test_layout_V56AMDY()
|
/third_party/rust/crates/libc/src/unix/bsd/freebsdlike/freebsd/x86_64/ |
H A D | mod.rs | 309 pub const _ALIGNBYTES: usize = ::mem::size_of::<::c_long>() - 1;
|
/third_party/rust/crates/rustix/src/backend/linux_raw/process/ |
H A D | syscalls.rs | 12 ret_infallible, ret_usize, ret_usize_infallible, size_of, slice_just_addr, slice_mut, zero, 202 size_of::<RawCpuSet, _>(), 208 rest.write_bytes(0, core::mem::size_of::<RawCpuSet>() - size); 219 size_of::<RawCpuSet, _>(),
|
H A D | types.rs | 246 pub(crate) const CPU_SETSIZE: usize = 8 * core::mem::size_of::<RawCpuSet>();
|
/third_party/rust/crates/cxx/tests/ffi/ |
H A D | tests.cc | 323 std::qsort(s.data(), s.size(), rust::size_of<decltype(s)::value_type>(), in c_take_slice_r_sort() 770 ASSERT(rust::size_of<R>() == sizeof(size_t)); 772 ASSERT(rust::size_of<size_t>() == sizeof(size_t));
|
/third_party/rust/crates/rustix/src/backend/libc/fs/ |
H A D | syscalls.rs | 142 use core::mem::size_of; 784 assert_eq!(size_of::<c::loff_t>(), size_of::<u64>()); 1308 const SIZEOF_OPEN_HOW: usize = size_of::<OpenHow>(); 1762 times_size += size_of::<c::timespec>(); 1767 times_size += size_of::<c::timespec>();
|
/third_party/rust/crates/aho-corasick/src/packed/teddy/ |
H A D | runtime.rs | 192 self.buckets.len() * mem::size_of::<Vec<PatternID>>() in heap_bytes() 193 + num_patterns * mem::size_of::<PatternID>() in heap_bytes()
|
/third_party/rust/crates/memchr/src/memchr/x86/ |
H A D | sse2.rs | 1 use core::{arch::x86_64::*, cmp, mem::size_of}; 3 const VECTOR_SIZE: usize = size_of::<__m128i>();
|
H A D | avx.rs | 1 use core::{arch::x86_64::*, cmp, mem::size_of}; 5 const VECTOR_SIZE: usize = size_of::<__m256i>();
|
/third_party/rust/crates/nom/src/multi/ |
H A D | mod.rs | 396 MAX_INITIAL_CAPACITY_BYTES / crate::lib::std::mem::size_of::<O>().max(1); in many_m_n() 578 MAX_INITIAL_CAPACITY_BYTES / crate::lib::std::mem::size_of::<O>().max(1); in count()
|
/third_party/skia/third_party/externals/tint/src/writer/spirv/ |
H A D | builder.cc | 66 uint32_t size_of(const InstructionList& instructions) { in size_of() function 332 size += size_of(capabilities_); in total_size() 333 size += size_of(extensions_); in total_size() 334 size += size_of(ext_imports_); in total_size() 335 size += size_of(memory_model_); in total_size() 336 size += size_of(entry_points_); in total_size() 337 size += size_of(execution_modes_); in total_size() 338 size += size_of(debug_); in total_size() 339 size += size_of(annotations_); in total_size() 340 size += size_of(types in total_size() [all...] |
/third_party/rust/crates/libc/src/unix/bsd/netbsdlike/openbsd/ |
H A D | mod.rs | 1683 .offset(_ALIGN(::mem::size_of::<::cmsghdr>()) as isize) in CMSG_DATA() 1687 _ALIGN(::mem::size_of::<::cmsghdr>()) as ::c_uint + length in CMSG_LEN() 1697 + _ALIGN(::mem::size_of::<::cmsghdr>()); in CMSG_NXTHDR() 1709 (_ALIGN(::mem::size_of::<::cmsghdr>()) + _ALIGN(length as usize))
|
/third_party/rust/crates/nix/src/sys/socket/ |
H A D | mod.rs | 591 $crate::sys::socket::CMSG_SPACE(::std::mem::size_of::<$x>() as $crate::sys::socket::c_uint) 869 let n = len / mem::size_of::<RawFd>(); in decode_from() 1297 mem::size_of::<libc::cmsgcred>() in len() 1301 mem::size_of::<&[u8]>() + iv.len() in len() 2396 assert!(len <= mem::size_of::<sockaddr_storage>()); in sockaddr_storage_to_addr() 2404 assert!(len >= mem::size_of::<sockaddr_in>()); in sockaddr_storage_to_addr() 2412 assert!(len >= mem::size_of::<sockaddr_in6>()); in sockaddr_storage_to_addr()
|
H A D | addr.rs | 469 sin_len: mem::size_of::<libc::sockaddr_in>() as u8, in from_std() 482 sin6_len: mem::size_of::<libc::sockaddr_in6>() as u8, in from_std() 1036 mem::size_of::<libc::sockaddr_un>() as libc::socklen_t in from_raw() 1050 mem::size_of::<libc::sockaddr_un>() as libc::socklen_t in size() 1199 mem::size_of::<Self>() as libc::socklen_t in size() 1295 if l != mem::size_of::<libc::sockaddr_in>() as libc::socklen_t { in from_raw() 1344 sin_len: mem::size_of::<libc::sockaddr_in>() as u8, in from() 1414 if l != mem::size_of::<libc::sockaddr_in6>() as libc::socklen_t { in from_raw() 1462 sin6_len: mem::size_of::<libc::sockaddr_in6>() as u8, in from() 1554 || ulen > mem::size_of in from_raw() [all...] |
/third_party/rust/crates/libc/src/fuchsia/ |
H A D | mod.rs | 3245 if ((*cmsg).cmsg_len as ::size_t) < ::mem::size_of::<cmsghdr>() { in CMSG_NXTHDR() 3247 } else if __CMSG_NEXT(cmsg).add(::mem::size_of::<cmsghdr>()) in CMSG_NXTHDR() 3256 if (*mhdr).msg_controllen as ::size_t >= ::mem::size_of::<cmsghdr>() { in CMSG_FIRSTHDR() 3264 (len + ::mem::size_of::<::size_t>() - 1) 3265 & !(::mem::size_of::<::size_t>() - 1) 3269 (CMSG_ALIGN(len as ::size_t) + CMSG_ALIGN(::mem::size_of::<cmsghdr>())) 3274 (CMSG_ALIGN(::mem::size_of::<cmsghdr>()) + len as ::size_t) as ::c_uint in CMSG_LEN() 3328 ((unsafe { (*cmsg).cmsg_len as ::size_t } + ::mem::size_of::<::c_long>() - 1) in __CMSG_LEN() 3329 & !(::mem::size_of::<::c_long>() - 1)) as ::ssize_t in __CMSG_LEN()
|
/third_party/rust/crates/libc/src/unix/bsd/netbsdlike/netbsd/ |
H A D | mod.rs | 2333 .offset(_ALIGN(::mem::size_of::<::cmsghdr>()) as isize) in CMSG_DATA() 2337 _ALIGN(::mem::size_of::<::cmsghdr>()) as ::c_uint + length in CMSG_LEN() 2347 + _ALIGN(::mem::size_of::<::cmsghdr>()); in CMSG_NXTHDR() 2359 (_ALIGN(::mem::size_of::<::cmsghdr>()) + _ALIGN(length as usize)) 2376 ::mem::size_of::<sockcred>() + ::mem::size_of::<::gid_t>() * ngrps in SOCKCREDSIZE()
|
/third_party/rust/crates/nom/src/ |
H A D | internal.rs | 468 assert_eq!(crate::lib::std::mem::size_of::<$t>(), $sz);
|
/third_party/rust/crates/nix/test/sys/ |
H A D | test_socket.rs | 55 assert_eq!(mem::size_of::<sockaddr>(), ffi_size as usize); in test_inetv4_addr_roundtrip_sockaddr_storage_to_addr() 66 sockaddr_storage_to_addr(&storage, mem::size_of::<sockaddr_storage>()) in test_inetv4_addr_roundtrip_sockaddr_storage_to_addr() 150 assert_eq!(mem::size_of::<sockaddr_in6>(), ffi_size as usize); in test_inetv6_addr_roundtrip_sockaddr_storage_to_addr() 164 sockaddr_storage_to_addr(&storage, mem::size_of::<sockaddr_storage>()) in test_inetv6_addr_roundtrip_sockaddr_storage_to_addr()
|
/third_party/rust/crates/libc/src/unix/redox/ |
H A D | mod.rs | 89 ::core::mem::size_of::<sa_family_t>() - 90 ::core::mem::size_of::<c_ulong>()
|