tensorflow/core/common_runtime/gpu/gpu_virtual_mem_allocator.cc
// Rounds value up to the specified power of two alignment.
Rounds value up to the specified power of two alignment.
Rounds value up to the specified power of two alignment .
size_t AlignUp(size_t value, size_t alignment) {
  DCHECK_EQ(alignment & (alignment - 1), 0)
      << "Alignment must be a power of two; alignment=" << alignment;
  return (value + alignment - 1) & ~(alignment - 1);
}
size_t AlignUp ( size_t value , size_t alignment ) { DCHECK_EQ ( alignment & ( alignment - 1 ) , 0 ) << " " << alignment ; return ( value + alignment - 1 ) & ~ ( alignment - 1 ) ; }
Rounds value up to the specified power of two alignment.
Rounds value up to the specified power of two alignment .