|
|
@@ -33,8 +33,8 @@ enum DynamicMemBufStatus : int { kMemBufIdle, kMemBufUsed }; |
|
|
// Alloc memory aligned according to 512 bytes.
|
|
|
// Alloc memory aligned according to 512 bytes.
|
|
|
static const size_t DYNAMIC_MEM_ALIGN_SIZE = 512;
|
|
|
static const size_t DYNAMIC_MEM_ALIGN_SIZE = 512;
|
|
|
|
|
|
|
|
|
// The minimum unit size (500M) of memory block used for dynamic extend.
|
|
|
|
|
|
static const size_t DYNAMIC_MEM_ALLOC_UNIT_SIZE = 500 << 20;
|
|
|
|
|
|
|
|
|
// The minimum unit size (1G) of memory block used for dynamic extend.
|
|
|
|
|
|
static const size_t DYNAMIC_MEM_ALLOC_UNIT_SIZE = 1024 << 20;
|
|
|
|
|
|
|
|
|
// The Comparator of device address from small to large.
|
|
|
// The Comparator of device address from small to large.
|
|
|
struct DeviceAddrCmp {
|
|
|
struct DeviceAddrCmp {
|
|
|
|