1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-01 06:46:55 +03:00

Adding mcs_basic_types.h

For now it consists of only:

using int128_t = __int128;
using uint128_t = unsigned __int128;

All new privitive data types should go into this file in the future.
This commit is contained in:
Alexander Barkov
2020-11-06 18:05:50 +04:00
committed by Roman Nozdrin
parent 916950d1e9
commit d5c6645ba1
36 changed files with 138 additions and 133 deletions

View File

@ -160,10 +160,6 @@ const int32_t MIN_TIMESTAMP_VALUE = 0;
namespace dataconvert
{
// WIP MCOL-641
using int128_t = __int128;
using uint128_t = unsigned __int128;
enum CalpontDateTimeFormat
{
CALPONTDATE_ENUM = 1, // date format is: "YYYY-MM-DD"
@ -1474,7 +1470,7 @@ inline bool greaterThan128(int128_t a, int128_t b)
return a > b;
}
// Naive __int128 version of strtoll
// Naive int128_t version of strtoll
inline int128_t strtoll128(const char* data, bool& saturate, char** ep)
{
int128_t res = 0;