pub fn write_u32(value: u32, page: u32) -> u64 {
    match page {
        0 => u64::from(value),
        1 => u64::from(value) << 32,
        _ => 0_u64,
    }
}
/// Write the given u32 to the first or second half in u64,
/// returns the u64 value.
///
/// # Arguments
///
/// * `value` - The origin u32 value.
/// * `page` - Value is 0 or 1, determines which half to write.
///
/// # Examples
///
/// ```rust
/// extern crate util;
/// use util::num_ops::write_u32;
///
/// let value = write_u32(0x1000_0000, 1);
/// assert!(value == 0x1000_0000_0000_0000);
/// ```
Write the given u32 to the first or second half in u64,
returns the u64 value.
Write the given u32 to the first or second half in u64 returns the u64 value .
pub fn write_u32(value: u32, page: u32) -> u64 {
    match page {
        0 => u64::from(value),
        1 => u64::from(value) << 32,
        _ => 0_u64,
    }
}
pub fn write_u32 ( value : u32 , page : u32 ) -> u64 { match page { 0 => u64 :: from ( value ) , 1 => u64 :: from ( value ) << 32 , _ => 0_u64 , } }
Write the given u32 to the first or second half in u64,
returns the u64 value.
Write the given u32 to the first or second half in u64 returns the u64 value .
value
u32
page
u32
value
u32
page
u32
examples
```rust
extern crate util;
use util::num_ops::write_u32.


` ` ` rust extern crate util ; use util :: num_ops :: write_u32 .