Merge pull request #28371 from taosdata/fix/TD-30667-3.0
fix(query)[TD-30667]. Fix compilation with AVX instructions on older GCC versions
This commit is contained in:
commit
12b39b077c
|
@ -156,9 +156,9 @@ int32_t getWordLength(char type);
|
||||||
int32_t tsDecompressIntImpl_Hw(const char *const input, const int32_t nelements, char *const output, const char type);
|
int32_t tsDecompressIntImpl_Hw(const char *const input, const int32_t nelements, char *const output, const char type);
|
||||||
int32_t tsDecompressFloatImpAvx2(const char *input, int32_t nelements, char *output);
|
int32_t tsDecompressFloatImpAvx2(const char *input, int32_t nelements, char *output);
|
||||||
int32_t tsDecompressDoubleImpAvx2(const char *input, int32_t nelements, char *output);
|
int32_t tsDecompressDoubleImpAvx2(const char *input, int32_t nelements, char *output);
|
||||||
void tsDecompressTimestampAvx2(const char *input, int32_t nelements, char *output, bool bigEndian);
|
|
||||||
#endif
|
#endif
|
||||||
#ifdef __AVX512VL__
|
#ifdef __AVX512VL__
|
||||||
|
void tsDecompressTimestampAvx2(const char *input, int32_t nelements, char *output, bool bigEndian);
|
||||||
void tsDecompressTimestampAvx512(const char *const input, const int32_t nelements, char *const output, bool bigEndian);
|
void tsDecompressTimestampAvx512(const char *const input, const int32_t nelements, char *const output, bool bigEndian);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -449,7 +449,9 @@ int32_t tsDecompressDoubleImpAvx2(const char *input, const int32_t nelements, ch
|
||||||
}
|
}
|
||||||
return (int32_t)(out - output);
|
return (int32_t)(out - output);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if __AVX512VL__
|
||||||
// decode two timestamps in one loop.
|
// decode two timestamps in one loop.
|
||||||
void tsDecompressTimestampAvx2(const char *const input, const int32_t nelements, char *const output, bool bigEndian) {
|
void tsDecompressTimestampAvx2(const char *const input, const int32_t nelements, char *const output, bool bigEndian) {
|
||||||
int64_t *ostream = (int64_t *)output;
|
int64_t *ostream = (int64_t *)output;
|
||||||
|
@ -588,9 +590,7 @@ void tsDecompressTimestampAvx2(const char *const input, const int32_t nelements,
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
#if __AVX512VL__
|
|
||||||
void tsDecompressTimestampAvx512(const char *const input, const int32_t nelements, char *const output,
|
void tsDecompressTimestampAvx512(const char *const input, const int32_t nelements, char *const output,
|
||||||
bool UNUSED_PARAM(bigEndian)) {
|
bool UNUSED_PARAM(bigEndian)) {
|
||||||
int64_t *ostream = (int64_t *)output;
|
int64_t *ostream = (int64_t *)output;
|
||||||
|
|
Loading…
Reference in New Issue