]>
git.proxmox.com Git - rustc.git/blob - library/stdarch/crates/core_arch/src/arm/v6.rs
3 //! The reference is [ARMv6-M Architecture Reference Manual][armv6m].
6 //! http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0419c/index.
10 use stdarch_test
::assert_instr
;
12 /// Reverse the order of the bytes.
14 #[cfg_attr(test, assert_instr(rev))]
15 pub unsafe fn _rev_u16(x
: u16) -> u16 {
19 /// Reverse the order of the bytes.
21 #[cfg_attr(test, assert_instr(rev))]
22 pub unsafe fn _rev_u32(x
: u32) -> u32 {
28 use crate::core_arch
::arm
::v6
;
34 v6
::_rev_u16(0b0000_0000_1111_1111_u16),
35 0b1111_1111_0000_0000_u16
44 v6
::_rev_u32(0b0000_0000_1111_1111_0000_0000_1111_1111_u32),
45 0b1111_1111_0000_0000_1111_1111_0000_0000_u32