1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +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

@ -12,6 +12,7 @@
#include <stdint.h>
#include <stdexcept>
#include <cstring>
#include "mcs_basic_types.h"
namespace static_any
{
@ -127,8 +128,8 @@ namespace anyimpl
#define BIG_POLICY(TYPE) template<> struct \
choose_policy<TYPE> { typedef big_any_policy<TYPE> type; };
BIG_POLICY(__int128);
BIG_POLICY(unsigned __int128);
BIG_POLICY(int128_t);
BIG_POLICY(uint128_t);
/// Specializations for small types.
#define SMALL_POLICY(TYPE) template<> struct \

View File

@ -29,9 +29,7 @@
#include <stdint.h>
#include <string.h>
using int128_t = __int128;
using uint128_t = unsigned __int128;
#include "mcs_basic_types.h"
namespace utils
{

View File

@ -0,0 +1,28 @@
/*
Copyright (C) 2020 MariaDB Corporation
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; version 2 of
the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301, USA.
*/
#ifndef MCS_BASIC_TYPES_H_INCLUDED
#define MCS_BASIC_TYPES_H_INCLUDED
using int128_t = __int128;
using uint128_t = unsigned __int128;
#endif // MCS_BASIC_TYPES_H_INCLUDED
// vim:ts=2 sw=2:

View File

@ -19,9 +19,7 @@
#define WIDE_DECIMAL_UTILS_H
#include <cstdint>
using int128_t = __int128;
using uint128_t = unsigned __int128;
#include "mcs_basic_types.h"
namespace utils
{