Logo Search packages:      
Sourcecode: gdcm version File versions

static INLINE int int_ceildivpow2 ( int  a,
int  b 
) [static]

Divide an integer by a power of 2 and round upwards

Returns:
Returns a divided by 2^b

Definition at line 92 of file int.h.

Referenced by pi_create(), tcd_decode_tile(), tcd_init_encode(), tcd_malloc_decode(), and tcd_malloc_encode().

                                                {
      return (a + (1 << b) - 1) >> b;
}


Generated by  Doxygen 1.6.0   Back to index