Home
last modified time | relevance | path

Searched refs:transmute (Results 1 – 25 of 120) sorted by relevance

12345

/third_party/rust/crates/bindgen/bindgen-tests/tests/expectations/tests/
Dissue-816.rs118 ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) in bit_1()
124 let val: u32 = ::std::mem::transmute(val); in set_bit_1()
131 ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) in bit_2()
137 let val: u32 = ::std::mem::transmute(val); in set_bit_2()
144 ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) in bit_3()
150 let val: u32 = ::std::mem::transmute(val); in set_bit_3()
157 ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) in bit_4()
163 let val: u32 = ::std::mem::transmute(val); in set_bit_4()
170 ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) in bit_5()
176 let val: u32 = ::std::mem::transmute(val); in set_bit_5()
[all …]
Dbitfield-32bit-overflow.rs117 ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u8) in m0()
123 let val: u8 = ::std::mem::transmute(val); in set_m0()
130 ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u8) in m1()
136 let val: u8 = ::std::mem::transmute(val); in set_m1()
143 ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u8) in m2()
149 let val: u8 = ::std::mem::transmute(val); in set_m2()
156 ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u8) in m3()
162 let val: u8 = ::std::mem::transmute(val); in set_m3()
169 ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u8) in m4()
175 let val: u8 = ::std::mem::transmute(val); in set_m4()
[all …]
Dbitfield_align.rs133 ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) in b1()
139 let val: u32 = ::std::mem::transmute(val); in set_b1()
146 ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) in b2()
152 let val: u32 = ::std::mem::transmute(val); in set_b2()
159 ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) in b3()
165 let val: u32 = ::std::mem::transmute(val); in set_b3()
172 ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) in b4()
178 let val: u32 = ::std::mem::transmute(val); in set_b4()
185 ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) in b5()
191 let val: u32 = ::std::mem::transmute(val); in set_b5()
[all …]
Dissue-1947.rs158 ::std::mem::transmute(self._bitfield_1.get(0usize, 10u8) as u16) in MADZ()
164 let val: u16 = ::std::mem::transmute(val); in set_MADZ()
171 ::std::mem::transmute(self._bitfield_1.get(10usize, 2u8) as u16) in MAI0()
177 let val: u16 = ::std::mem::transmute(val); in set_MAI0()
184 ::std::mem::transmute(self._bitfield_1.get(12usize, 2u8) as u16) in MAI1()
190 let val: u16 = ::std::mem::transmute(val); in set_MAI1()
197 ::std::mem::transmute(self._bitfield_1.get(14usize, 2u8) as u16) in MAI2()
203 let val: u16 = ::std::mem::transmute(val); in set_MAI2()
217 let MADZ: u16 = unsafe { ::std::mem::transmute(MADZ) };
221 let MAI0: u16 = unsafe { ::std::mem::transmute(MAI0) };
[all …]
Dtimex.rs182 ::std::mem::transmute(self._bitfield_1.get(0usize, 32u8) as u32) in a()
188 let val: u32 = ::std::mem::transmute(val); in set_a()
195 ::std::mem::transmute(self._bitfield_1.get(32usize, 32u8) as u32) in b()
201 let val: u32 = ::std::mem::transmute(val); in set_b()
208 ::std::mem::transmute(self._bitfield_1.get(64usize, 32u8) as u32) in c()
214 let val: u32 = ::std::mem::transmute(val); in set_c()
221 ::std::mem::transmute(self._bitfield_1.get(96usize, 32u8) as u32) in d()
227 let val: u32 = ::std::mem::transmute(val); in set_d()
234 ::std::mem::transmute(self._bitfield_1.get(128usize, 32u8) as u32) in e()
240 let val: u32 = ::std::mem::transmute(val); in set_e()
[all …]
Dstruct_with_bitfields.rs133 ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) in a()
139 let val: u16 = ::std::mem::transmute(val); in set_a()
146 ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u16) in b()
152 let val: u16 = ::std::mem::transmute(val); in set_b()
159 ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u16) in c()
165 let val: u16 = ::std::mem::transmute(val); in set_c()
172 ::std::mem::transmute(self._bitfield_1.get(6usize, 2u8) as u16) in d()
178 let val: u16 = ::std::mem::transmute(val); in set_d()
192 let a: u16 = unsafe { ::std::mem::transmute(a) };
196 let b: u16 = unsafe { ::std::mem::transmute(b) };
[all …]
Dbitfield_pragma_packed.rs117 ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u8) in a()
123 let val: u8 = ::std::mem::transmute(val); in set_a()
130 ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u8) in b()
136 let val: u8 = ::std::mem::transmute(val); in set_b()
143 ::std::mem::transmute(self._bitfield_1.get(2usize, 6u8) as u8) in c()
149 let val: u8 = ::std::mem::transmute(val); in set_c()
156 ::std::mem::transmute(self._bitfield_1.get(8usize, 16u8) as u16) in d()
162 let val: u16 = ::std::mem::transmute(val); in set_d()
169 ::std::mem::transmute(self._bitfield_1.get(24usize, 8u8) as u8) in e()
175 let val: u8 = ::std::mem::transmute(val); in set_e()
[all …]
Dweird_bitfields.rs298 ::std::mem::transmute(self._bitfield_1.get(0usize, 16u8) as u32) in bitTest()
304 let val: u32 = ::std::mem::transmute(val); in set_bitTest()
311 ::std::mem::transmute(self._bitfield_1.get(16usize, 15u8) as u32) in bitTest2()
317 let val: u32 = ::std::mem::transmute(val); in set_bitTest2()
329 let bitTest: u32 = unsafe { ::std::mem::transmute(bitTest) };
333 let bitTest2: u32 = unsafe { ::std::mem::transmute(bitTest2) };
341 ::std::mem::transmute(self._bitfield_2.get(0usize, 3u8) as u32) in mFillOpacitySource()
347 let val: u32 = ::std::mem::transmute(val); in set_mFillOpacitySource()
354 ::std::mem::transmute(self._bitfield_2.get(3usize, 3u8) as u32) in mStrokeOpacitySource()
360 let val: u32 = ::std::mem::transmute(val); in set_mStrokeOpacitySource()
[all …]
Dlayout_mbuf.rs278 ::std::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u32) in l2_type()
284 let val: u32 = ::std::mem::transmute(val); in set_l2_type()
291 ::std::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u32) in l3_type()
297 let val: u32 = ::std::mem::transmute(val); in set_l3_type()
304 ::std::mem::transmute(self._bitfield_1.get(8usize, 4u8) as u32) in l4_type()
310 let val: u32 = ::std::mem::transmute(val); in set_l4_type()
317 ::std::mem::transmute(self._bitfield_1.get(12usize, 4u8) as u32) in tun_type()
323 let val: u32 = ::std::mem::transmute(val); in set_tun_type()
330 ::std::mem::transmute(self._bitfield_1.get(16usize, 4u8) as u32) in inner_l2_type()
336 let val: u32 = ::std::mem::transmute(val); in set_inner_l2_type()
[all …]
Dlayout_mbuf_1_0.rs103 ::std::mem::transmute(self) in as_ref()
107 ::std::mem::transmute(self) in as_mut()
330 ::std::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u32) in l2_type()
336 let val: u32 = ::std::mem::transmute(val); in set_l2_type()
343 ::std::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u32) in l3_type()
349 let val: u32 = ::std::mem::transmute(val); in set_l3_type()
356 ::std::mem::transmute(self._bitfield_1.get(8usize, 4u8) as u32) in l4_type()
362 let val: u32 = ::std::mem::transmute(val); in set_l4_type()
369 ::std::mem::transmute(self._bitfield_1.get(12usize, 4u8) as u32) in tun_type()
375 let val: u32 = ::std::mem::transmute(val); in set_tun_type()
[all …]
Dissue-739-pointer-wide-bitfield.rs119 ::std::mem::transmute(self._bitfield_1.get(0usize, 64u8) as u64) in m_bitfield()
125 let val: u64 = ::std::mem::transmute(val); in set_m_bitfield()
132 ::std::mem::transmute(self._bitfield_1.get(64usize, 64u8) as u64) in m_bar()
138 let val: u64 = ::std::mem::transmute(val); in set_m_bar()
145 ::std::mem::transmute(self._bitfield_1.get(128usize, 1u8) as u64) in foo()
151 let val: u64 = ::std::mem::transmute(val); in set_foo()
158 ::std::mem::transmute(self._bitfield_1.get(192usize, 64u8) as u64) in bar()
164 let val: u64 = ::std::mem::transmute(val); in set_bar()
178 let m_bitfield: u64 = unsafe { ::std::mem::transmute(m_bitfield) };
182 let m_bar: u64 = unsafe { ::std::mem::transmute(m_bar) };
[all …]
Dpacked-bitfield.rs117 ::std::mem::transmute(self._bitfield_1.get(0usize, 5u8) as u8) in day()
123 let val: u8 = ::std::mem::transmute(val); in set_day()
130 ::std::mem::transmute(self._bitfield_1.get(5usize, 4u8) as u8) in month()
136 let val: u8 = ::std::mem::transmute(val); in set_month()
143 ::std::mem::transmute(self._bitfield_1.get(9usize, 15u8) as u16) in year()
149 let val: u16 = ::std::mem::transmute(val); in set_year()
162 let day: u8 = unsafe { ::std::mem::transmute(day) };
166 let month: u8 = unsafe { ::std::mem::transmute(month) };
170 let year: u16 = unsafe { ::std::mem::transmute(year) };
Dbitfield-large.rs118 ::std::mem::transmute(self._bitfield_1.get(0usize, 128u8) as u128) in x()
124 let val: u128 = ::std::mem::transmute(val); in set_x()
133 let x: u128 = unsafe { ::std::mem::transmute(x) };
163 ::std::mem::transmute(self._bitfield_1.get(0usize, 80u8) as u128) in x()
169 let val: u128 = ::std::mem::transmute(val); in set_x()
176 ::std::mem::transmute(self._bitfield_1.get(80usize, 48u8) as u128) in y()
182 let val: u128 = ::std::mem::transmute(val); in set_y()
194 let x: u128 = unsafe { ::std::mem::transmute(x) };
198 let y: u128 = unsafe { ::std::mem::transmute(y) };
Dprivate_fields.rs161 ::std::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u32) in a()
167 let val: u32 = ::std::mem::transmute(val); in set_a()
174 ::std::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u32) in b()
180 let val: u32 = ::std::mem::transmute(val); in set_b()
192 let a: u32 = unsafe { ::std::mem::transmute(a) };
196 let b: u32 = unsafe { ::std::mem::transmute(b) };
227 ::std::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u32) in a()
233 let val: u32 = ::std::mem::transmute(val); in set_a()
240 ::std::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u32) in b()
246 let val: u32 = ::std::mem::transmute(val); in set_b()
[all …]
Dunion_bitfield_1_0.rs103 ::std::mem::transmute(self) in as_ref()
107 ::std::mem::transmute(self) in as_mut()
166 ::std::mem::transmute( in derp()
174 let val: u32 = ::std::mem::transmute(val); in set_derp()
185 let derp: u32 = unsafe { ::std::mem::transmute(derp) };
220 ::std::mem::transmute( in foo()
228 let val: u32 = ::std::mem::transmute(val); in set_foo()
235 ::std::mem::transmute( in bar()
243 let val: u8 = ::std::mem::transmute(val); in set_bar()
255 let foo: u32 = unsafe { ::std::mem::transmute(foo) };
[all …]
Dunion_bitfield.rs127 ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) in derp()
133 let val: u32 = ::std::mem::transmute(val); in set_derp()
144 let derp: u32 = unsafe { ::std::mem::transmute(derp) };
183 ::std::mem::transmute(self._bitfield_1.get(0usize, 31u8) as u32) in foo()
189 let val: u32 = ::std::mem::transmute(val); in set_foo()
196 ::std::mem::transmute(self._bitfield_1.get(31usize, 1u8) as u8) in bar()
202 let val: u8 = ::std::mem::transmute(val); in set_bar()
214 let foo: u32 = unsafe { ::std::mem::transmute(foo) };
218 let bar: u8 = unsafe { ::std::mem::transmute(bar) };
Dlayout_align.rs202 ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) in link_duplex()
208 let val: u16 = ::std::mem::transmute(val); in set_link_duplex()
215 ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u16) in link_autoneg()
221 let val: u16 = ::std::mem::transmute(val); in set_link_autoneg()
228 ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u16) in link_status()
234 let val: u16 = ::std::mem::transmute(val); in set_link_status()
248 unsafe { ::std::mem::transmute(link_duplex) };
253 unsafe { ::std::mem::transmute(link_autoneg) };
258 unsafe { ::std::mem::transmute(link_status) };
Dlayout_eth_conf_1_0.rs103 ::std::mem::transmute(self) in as_ref()
107 ::std::mem::transmute(self) in as_mut()
272 ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) in header_split()
278 let val: u16 = ::std::mem::transmute(val); in set_header_split()
285 ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u16) in hw_ip_checksum()
291 let val: u16 = ::std::mem::transmute(val); in set_hw_ip_checksum()
298 ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u16) in hw_vlan_filter()
304 let val: u16 = ::std::mem::transmute(val); in set_hw_vlan_filter()
311 ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u16) in hw_vlan_strip()
317 let val: u16 = ::std::mem::transmute(val); in set_hw_vlan_strip()
[all …]
Dbitfield_method_mangling.rs118 ::std::mem::transmute(self._bitfield_1.get(0usize, 24u8) as u32) in pad3()
124 let val: u32 = ::std::mem::transmute(val); in set_pad3()
131 ::std::mem::transmute(self._bitfield_1.get(24usize, 8u8) as u32) in type_()
137 let val: u32 = ::std::mem::transmute(val); in set_type()
149 let pad3: u32 = unsafe { ::std::mem::transmute(pad3) };
153 let type_: u32 = unsafe { ::std::mem::transmute(type_) };
Donly_bitfields.rs117 ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u8) in a()
123 let val: u8 = ::std::mem::transmute(val); in set_a()
130 ::std::mem::transmute(self._bitfield_1.get(1usize, 7u8) as u8) in b()
136 let val: u8 = ::std::mem::transmute(val); in set_b()
148 let a: u8 = unsafe { ::std::mem::transmute(a) };
152 let b: u8 = unsafe { ::std::mem::transmute(b) };
Dunion_with_anon_struct_bitfield_1_0.rs103 ::std::mem::transmute(self) in as_ref()
107 ::std::mem::transmute(self) in as_mut()
173 ::std::mem::transmute(self._bitfield_1.get(0usize, 7u8) as u32) in b()
179 let val: u32 = ::std::mem::transmute(val); in set_b()
186 ::std::mem::transmute(self._bitfield_1.get(7usize, 25u8) as u32) in c()
192 let val: u32 = ::std::mem::transmute(val); in set_c()
204 let b: u32 = unsafe { ::std::mem::transmute(b) };
208 let c: u32 = unsafe { ::std::mem::transmute(c) };
Dlayout_eth_conf.rs224 ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) in header_split()
230 let val: u16 = ::std::mem::transmute(val); in set_header_split()
237 ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u16) in hw_ip_checksum()
243 let val: u16 = ::std::mem::transmute(val); in set_hw_ip_checksum()
250 ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u16) in hw_vlan_filter()
256 let val: u16 = ::std::mem::transmute(val); in set_hw_vlan_filter()
263 ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u16) in hw_vlan_strip()
269 let val: u16 = ::std::mem::transmute(val); in set_hw_vlan_strip()
276 ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u16) in hw_vlan_extend()
282 let val: u16 = ::std::mem::transmute(val); in set_hw_vlan_extend()
[all …]
/third_party/rust/crates/rustix/src/backend/libc/net/
Dext.rs27 unsafe { core::mem::transmute(addr) } in in_addr_s_addr()
37 unsafe { core::mem::transmute(addr) } in in_addr_s_addr()
50 unsafe { core::mem::transmute(s_addr) } in in_addr_new()
59 unsafe { core::mem::transmute(s_addr) } in in_addr_new()
72 unsafe { core::mem::transmute(addr) }
81 unsafe { core::mem::transmute(addr) }
94 unsafe { core::mem::transmute(s6_addr) }
103 unsafe { core::mem::transmute(s6_addr) }
116 let addr: sockaddr_in6 = unsafe { core::mem::transmute(addr) }; in sockaddr_in6_sin6_scope_id()
126 let addr: sockaddr_in6 = unsafe { core::mem::transmute(addr) }; in sockaddr_in6_sin6_scope_id()
[all …]
/third_party/rust/crates/rustix/src/backend/linux_raw/
Dvdso_wrappers.rs20 use core::mem::{transmute, MaybeUninit};
35 let callee = match transmute(CLOCK_GETTIME.load(Relaxed)) { in clock_gettime()
73 let callee = match transmute(CLOCK_GETTIME.load(Relaxed)) { in clock_gettime_dynamic()
88 use super::{transmute, ArgReg, Relaxed, RetReg, SyscallNumber, A0, A1, A2, A3, A4, A5, R0};
93 let callee = match transmute(super::SYSCALL.load(Relaxed)) { in syscall0()
105 let callee = match transmute(super::SYSCALL.load(Relaxed)) { in syscall1()
117 let callee = match transmute(super::SYSCALL.load(Relaxed)) { in syscall1_noreturn()
130 let callee = match transmute(super::SYSCALL.load(Relaxed)) { in syscall2()
144 let callee = match transmute(super::SYSCALL.load(Relaxed)) { in syscall3()
159 let callee = match transmute(super::SYSCALL.load(Relaxed)) { in syscall4()
[all …]
/third_party/rust/crates/bindgen/bindgen-tests/tests/expectations/tests/libclang-9/
Dlayout_align.rs257 ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) in link_duplex()
263 let val: u16 = ::std::mem::transmute(val); in set_link_duplex()
270 ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u16) in link_autoneg()
276 let val: u16 = ::std::mem::transmute(val); in set_link_autoneg()
283 ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u16) in link_status()
289 let val: u16 = ::std::mem::transmute(val); in set_link_status()
303 unsafe { ::std::mem::transmute(link_duplex) };
308 unsafe { ::std::mem::transmute(link_autoneg) };
313 unsafe { ::std::mem::transmute(link_status) };

12345