fn size_to_order(size: usize) -> usize {
        let mut size = (size + PAGE_SIZE - 1) / PAGE_SIZE;

        size -= 1;
        size |= size >> 1;
        size |= size >> 2;
        size |= size >> 4;
        size |= size >> 8;
        size |= size >> 16;
        size |= size >> 32;
        size += 1;

        63 - size.leading_zeros() as usize
    }
/// Converts a size to an order.
Converts a size to an order.
Converts a size to an order .
fn size_to_order(size: usize) -> usize {
        let mut size = (size + PAGE_SIZE - 1) / PAGE_SIZE;
        size -= 1;
        size |= size >> 1;
        size |= size >> 2;
        size |= size >> 4;
        size |= size >> 8;
        size |= size >> 16;
        size |= size >> 32;
        size += 1;
        63 - size.leading_zeros() as usize
    }
fn size_to_order ( size : usize ) -> usize { let mut size = ( size + PAGE_SIZE - 1 ) / PAGE_SIZE ; size -= 1 ; size |= size >> 1 ; size |= size >> 2 ; size |= size >> 4 ; size |= size >> 8 ; size |= size >> 16 ; size |= size >> 32 ; size += 1 ; 63 - size . leading_zeros ( ) as usize }
Converts a size to an order.
Converts a size to an order .
size
usize
size
usize