diff --git a/src/common/inc/tdataformat.h b/src/common/inc/tdataformat.h index 0d4e2c7afebc107c2706187bb655ec3431e9f186..4bd0b43e774d54a6ff3b79cb63996f6a91d504e0 100644 --- a/src/common/inc/tdataformat.h +++ b/src/common/inc/tdataformat.h @@ -609,7 +609,6 @@ typedef void *SMemRow; #define SMEM_ROW_DATA 0x0U // SDataRow #define SMEM_ROW_KV 0x01U // SKVRow -#define SMEM_ROW_CONVERT 0x80U // SMemRow convert flag #define KVRatioKV (0.2f) // all bool #define KVRatioPredict (0.4f) @@ -619,12 +618,10 @@ typedef void *SMemRow; #define memRowType(r) ((*(uint8_t *)(r)) & 0x01) #define memRowSetType(r, t) ((*(uint8_t *)(r)) = (t)) // set the total byte in case of dirty memory -#define memRowSetConvert(r) ((*(uint8_t *)(r)) = (((*(uint8_t *)(r)) & 0x7F) | SMEM_ROW_CONVERT)) // highest bit #define isDataRowT(t) (SMEM_ROW_DATA == (((uint8_t)(t)) & 0x01)) #define isDataRow(r) (SMEM_ROW_DATA == memRowType(r)) #define isKvRowT(t) (SMEM_ROW_KV == (((uint8_t)(t)) & 0x01)) #define isKvRow(r) (SMEM_ROW_KV == memRowType(r)) -#define isNeedConvertRow(r) (((*(uint8_t *)(r)) & 0x80) == SMEM_ROW_CONVERT) #define isConvertToKvRow(k, d) ((k) < ((d)*KVRatioConvert)) #define isConvertToDataRow(k, d) ((k) > (d))