vyre 0.4.0

GPU compute intermediate representation with a standard operation library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
// U32 byte-swap operation module.

// Backend-specific lowering for U32 byte swap.



// CPU reference kernel for `buffer.byte_swap_u32`.

/// Reverse the byte order of a `u32`.
#[must_use]
pub const fn byte_swap_u32(value: u32) -> u32 {
    value.swap_bytes()
}