10 lines
198 B
C++
10 lines
198 B
C++
#pragma once
|
|
#include <stdint.h>
|
|
|
|
namespace Utilities
|
|
{
|
|
inline uint64_t get_blocks_from_size(uint64_t blocksize, uint64_t size)
|
|
{
|
|
return (size + (blocksize - 1)) / blocksize;
|
|
}
|
|
} |