Home
last modified time | relevance | path

Searched refs:zeroed (Results 1 - 25 of 37) sorted by relevance

12

/third_party/rust/crates/bindgen/bindgen-integration/src/
H A Dlib.rs65 let mut first: bindings::bitfields::First = unsafe { mem::zeroed() }; in test_bitfields_first()
75 let mut second: bindings::bitfields::Second = unsafe { mem::zeroed() }; in test_bitfields_second()
84 let mut third: bindings::bitfields::Third = unsafe { mem::zeroed() }; in test_bitfields_third()
98 let mut fourth: bindings::bitfields::Fourth = unsafe { mem::zeroed() }; in test_bitfields_fourth()
110 let mut date: bindings::bitfields::Date2 = unsafe { mem::zeroed() }; in test_bitfields_date2()
123 let mut date: bindings::bitfields::Fifth = unsafe { mem::zeroed() }; in test_bitfields_fifth()
139 let mut date: bindings::bitfields::Sixth = unsafe { mem::zeroed() }; in test_bitfields_sixth()
153 let mut large: bindings::bitfields::Seventh = unsafe { mem::zeroed() }; in test_bitfields_seventh()
/third_party/skia/tests/
H A DArenaAllocTest.cpp44 int* zeroed = arena.makeArray<int>(10); in DEF_TEST() local
46 REPORTER_ASSERT(r, zeroed[i] == 0); in DEF_TEST()
69 int* zeroed = arena.makeArray<int>(10); in DEF_TEST() local
71 REPORTER_ASSERT(r, zeroed[i] == 0); in DEF_TEST()
95 int* zeroed = arena.makeArray<int>(10); in DEF_TEST() local
97 REPORTER_ASSERT(r, zeroed[i] == 0); in DEF_TEST()
/third_party/rust/crates/nix/test/sys/
H A Dtest_ioctl.rs218 let mut termios = unsafe { mem::zeroed() }; in test_ioctl_read_bad()
235 let termios: termios = unsafe { mem::zeroed() }; in test_ioctl_write_ptr_bad()
265 let data: v4l2_audio = unsafe { mem::zeroed() }; in test_ioctl_write_ptr()
286 let mut data: v4l2_audio = unsafe { mem::zeroed() }; in test_ioctl_read()
296 let mut data: v4l2_audio = unsafe { mem::zeroed() }; in test_ioctl_readwrite()
327 let data: [spi_ioc_transfer; 4] = unsafe { mem::zeroed() }; in test_ioctl_write_buf()
363 let mut termios = unsafe { mem::zeroed() }; in test_ioctl_read()
372 let termios: termios = unsafe { mem::zeroed() }; in test_ioctl_write_ptr()
H A Dtest_ptrace.rs63 let siginfo = unsafe { mem::zeroed() }; in test_ptrace_setsiginfo()
/third_party/rust/crates/libc/libc-test/test/
H A Dcmsg.rs34 let mut mhdr: msghdr = unsafe { mem::zeroed() }; in test_cmsg_firsthdr()
62 let mut mhdr: msghdr = unsafe { mem::zeroed() }; in test_cmsg_nxthdr()
/third_party/rust/crates/rustix/src/backend/libc/fs/
H A Ddir.rs55 use core::mem::zeroed;
292 d_name: zeroed(), in read_dirent()
294 __d_padding: zeroed(), in read_dirent()
313 let mut dirent: libc_dirent = zeroed(); in read_dirent()
H A Dsyscalls.rs1374 let mut result: Stat = unsafe { core::mem::zeroed() }; in statx_to_stat()
1452 let mut result: Stat = unsafe { core::mem::zeroed() }; in stat64_to_stat()
/third_party/rust/crates/nix/src/sys/socket/
H A Daddr.rs473 .. unsafe { mem::zeroed() } in from_std()
488 .. unsafe { mem::zeroed() } in from_std()
502 .. unsafe { mem::zeroed() } in new()
510 .. unsafe { mem::zeroed() } in new()
818 ..mem::zeroed() in new()
865 ..mem::zeroed() in new_abstract()
894 .. unsafe { mem::zeroed() } in new_unnamed()
1027 let mut su: libc::sockaddr_un = mem::zeroed(); in from_raw()
1272 sin_zero: unsafe { mem::zeroed() }, in new()
1348 ..unsafe { mem::zeroed() } in from()
[all...]
/third_party/rust/crates/nix/src/sys/
H A Dutsname.rs49 let mut ret = mem::MaybeUninit::zeroed(); in uname()
H A Depoll.rs61 unsafe { mem::zeroed::<EpollEvent>() } in empty()
H A Devent.rs240 ..unsafe { mem::zeroed() } in new()
H A Dwait.rs380 // Memory is zeroed rather than uninitialized, as not all platforms in waitid()
382 let mut siginfo: libc::siginfo_t = std::mem::zeroed(); in waitid()
H A Daio.rs146 // Use mem::zeroed instead of explicitly zeroing each field, because the in common_init()
149 // explicitly zeroed when allocated. in common_init()
150 let mut a = unsafe { mem::zeroed::<libc::aiocb>() }; in common_init()
/third_party/rust/crates/rustix/tests/fs/
H A Dstatfs.rs7 let t: StatFs = unsafe { std::mem::zeroed() }; in test_statfs_abi()
/third_party/ntfs-3g/ntfsprogs/
H A Dntfsfallocate.c497 s64 zeroed; in ntfs_inner_zero() local
511 zeroed = ntfs_pwrite(vol->dev, in ntfs_inner_zero()
515 if (zeroed != vol->cluster_size) { in ntfs_inner_zero()
548 /* Newly allocated clusters before initialized size need be zeroed */ in ntfs_merge_allocation()
/third_party/rust/crates/nix/src/
H A Difaddrs.rs54 /// members of the sockaddr_storage are "ok" with being zeroed out (there are
63 let mut dst_sock = mem::MaybeUninit::<libc::sockaddr_storage>::zeroed(); in workaround_xnu_bug()
H A Dsched.rs184 cpu_set: unsafe { mem::zeroed() }, in new()
/third_party/rust/crates/regex/bench/src/ffi/
H A Dtcl.rs117 let mut info: tcl_regexp_info = unsafe { mem::zeroed() }; in find_at()
/third_party/ffmpeg/libavcodec/
H A Daaccoder_twoloop.h523 int zeroed = 0; in search_for_quantizers_twoloop()
553 for (g = sce->ics.num_swb-1; g > 0 && zeroed < maxzeroed; g--) { in search_for_quantizers_twoloop()
563 zeroed++; in search_for_quantizers_twoloop()
568 if (zeroed) in search_for_quantizers_twoloop()
/third_party/rust/crates/nix/test/
H A Dtest_fcntl.rs396 mem::zeroed() // required for Linux/mips in test_ofd_write_lock()
434 mem::zeroed() // required for Linux/mips in test_ofd_read_lock()
/third_party/rust/crates/rustix/src/backend/libc/process/
H A Dtypes.rs406 let mut set = unsafe { core::mem::zeroed() };
/third_party/rust/crates/rust-openssl/openssl/src/x509/
H A Dmod.rs320 let mut ctx = mem::zeroed(); in x509v3_context()
336 // nodb case taken care of since we zeroed ctx above in x509v3_context()
915 ctx = mem::zeroed(); in new()
966 ctx = mem::zeroed(); in new_nid()
1418 let mut ctx = mem::zeroed(); in x509v3_context()
1429 // nodb case taken care of since we zeroed ctx above in x509v3_context()
/third_party/node/deps/openssl/config/archs/linux-armv4/asm/crypto/modes/
H A Dghashv8-armx.S120 @ r12 is zeroed just in time
/third_party/node/deps/openssl/config/archs/linux-armv4/asm_avx2/crypto/modes/
H A Dghashv8-armx.S120 @ r12 is zeroed just in time
/third_party/rust/crates/rustix/src/
H A Dio_uring.rs1056 $($field: unsafe { core::mem::zeroed() }),* in io_uring_layouts()

Completed in 18 milliseconds

12