unsafe fn dense_increase_mx(&mut self, mx: u32) -> &mut [u32] {
        let ptr = (self.0.tiny & !3) as *mut S;
        let n = 1 + mx/32 + mx/128;

        let oldcap = (*ptr).cap;
        let newptr = std::alloc::realloc(ptr as *mut u8,
                                         layout_for_num_u32(oldcap),
                                         bytes_for_num_u32(n)) as *mut S;
        if newptr as usize == 0 {
            std::alloc::handle_alloc_error(layout_for_num_u32(n));
        }
        (*newptr).cap = n;
        self.0.tiny = newptr as usize | 2;
        match self.internal_mut() {
            InternalMut::Dense { a, .. } => {
                for i in oldcap as usize .. a.len() {
                    a[i] = 0;
                }
                a
            }
            _ => unreachable!(),
        }
    }
/// This requires that we currently be a dense!
This requires that we currently be a dense!
This requires that we currently be a dense!
unsafe fn dense_increase_mx(&mut self, mx: u32) -> &mut [u32] {
        let ptr = (self.0.tiny & !3) as *mut S;
        let n = 1 + mx/32 + mx/128;
        let oldcap = (*ptr).cap;
        let newptr = std::alloc::realloc(ptr as *mut u8,
                                         layout_for_num_u32(oldcap),
                                         bytes_for_num_u32(n)) as *mut S;
        if newptr as usize == 0 {
            std::alloc::handle_alloc_error(layout_for_num_u32(n));
        }
        (*newptr).cap = n;
        self.0.tiny = newptr as usize | 2;
        match self.internal_mut() {
            InternalMut::Dense { a, .. } => {
                for i in oldcap as usize .. a.len() {
                    a[i] = 0;
                }
                a
            }
            _ => unreachable!(),
        }
    }
unsafe fn dense_increase_mx ( & mut self , mx : u32 ) -> & mut [ u32 ] { let ptr = ( self . 0 . tiny & ! 3 ) as * mut S ; let n = 1 + mx / 32 + mx / 128 ; let oldcap = ( * ptr ) . cap ; let newptr = std :: alloc :: realloc ( ptr as * mut u8 , layout_for_num_u32 ( oldcap ) , bytes_for_num_u32 ( n ) ) as * mut S ; if newptr as usize == 0 { std :: alloc :: handle_alloc_error ( layout_for_num_u32 ( n ) ) ; } ( * newptr ) . cap = n ; self . 0 . tiny = newptr as usize | 2 ; match self . internal_mut ( ) { InternalMut :: Dense { a , .. } => { for i in oldcap as usize .. a . len ( ) { a [ i ] = 0 ; } a } _ => unreachable ! ( ) , } }
This requires that we currently be a dense!
This requires that we currently be a dense!
&mut self
mx
u32
&mut self
mx
u32