pub fn read_u32(value: u64, page: u32) -> u32 {
    match page {
        0 => value as u32,
        1 => (value >> 32) as u32,
        _ => 0_u32,
    }
}
/// Get the first half or second half of u64.
///
/// # Arguments
///
/// * `value` - The origin value to get u32 from.
/// * `page` - Value is 0 or 1, determines which half to return.
///
/// # Examples
///
/// ```rust
/// extern crate util;
/// use util::num_ops::read_u32;
///
/// let value = read_u32(0x2000_1000_0000, 1);
/// assert!(value == 0x2000);
/// ```
Get the first half or second half of u64.
Get the first half or second half of u64 .
pub fn read_u32(value: u64, page: u32) -> u32 {
    match page {
        0 => value as u32,
        1 => (value >> 32) as u32,
        _ => 0_u32,
    }
}
pub fn read_u32 ( value : u64 , page : u32 ) -> u32 { match page { 0 => value as u32 , 1 => ( value >> 32 ) as u32 , _ => 0_u32 , } }
Get the first half or second half of u64.
Get the first half or second half of u64 .
value
u64
page
u32
value
u64
page
u32
examples
```rust
extern crate util;
use util::num_ops::read_u32.


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