Constants.h 871 字节
Newer Older
Z
zhiru 已提交
1 2 3 4 5 6 7
/*******************************************************************************
 * Copyright 上海赜睿信息科技有限公司(Zilliz) - All Rights Reserved
 * Unauthorized copying of this file, via any medium is strictly prohibited.
 * Proprietary and confidential.
 ******************************************************************************/
#pragma once

S
starlord 已提交
8 9
#include <stdint.h>

Z
zhiru 已提交
10 11 12 13
namespace zilliz {
namespace milvus {
namespace engine {

S
starlord 已提交
14 15 16 17
constexpr uint64_t K = 1024UL;
constexpr uint64_t M = K * K;
constexpr uint64_t G = K * M;
constexpr uint64_t T = K * G;
Z
zhiru 已提交
18

S
starlord 已提交
19
constexpr uint64_t MAX_TABLE_FILE_MEM = 128 * M;
Z
zhiru 已提交
20

J
jinhai 已提交
21
constexpr int VECTOR_TYPE_SIZE = sizeof(float);
Z
zhiru 已提交
22

S
starlord 已提交
23 24 25 26
static constexpr uint64_t ONE_KB = K;
static constexpr uint64_t ONE_MB = ONE_KB*ONE_KB;
static constexpr uint64_t ONE_GB = ONE_KB*ONE_MB;

Z
zhiru 已提交
27 28 29
} // namespace engine
} // namespace milvus
} // namespace zilliz