0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-27 22:38:21 +02:00

ircd: Start a 128bit conditional typedef section in stdinc.h.

This commit is contained in:
Jason Volk 2019-03-21 16:23:40 -07:00
parent 4ae283b9c6
commit a9b098a280

View file

@ -137,13 +137,27 @@ namespace std
//
// libircd API
//
// Some items imported into our namespace.
//
// 128 bit integer support
#if !defined(HAVE_INT128_T) || !defined(HAVE_UINT128_T)
namespace ircd
{
using int128_t = signed __int128;
using uint128_t = unsigned __int128;
#if defined(HAVE___INT128_T) && defined(HAVE__UINT128_T)
using int128_t = __int128_t;
using uint128_t = __uint128_t;
#elif defined(HAVE___INT128)
using int128_t = signed __int128;
using uint128_t = unsigned __int128;
#else
#error "Missing 128 bit integer types on this platform."
#endif
}
#endif
namespace ircd
{
using std::get;
using std::end;
using std::begin;