This commit is contained in:
blueloveTH 2024-06-02 03:02:19 +08:00
parent 060e4b8c1f
commit 8f94979e4c

View File

@ -62,24 +62,6 @@ namespace pkpy{
namespace std = ::std;
template <size_t T>
struct NumberTraits;
template <>
struct NumberTraits<4> {
using int_t = int32_t;
static constexpr int_t kMaxSmallInt = (1 << 28) - 1;
static constexpr int_t kMinSmallInt = 0;
};
template <>
struct NumberTraits<8> {
using int_t = int64_t;
static constexpr int_t kMaxSmallInt = (1ll << 60) - 1;
static constexpr int_t kMinSmallInt = 0;
};
using Number = NumberTraits<sizeof(void*)>;
using i64 = int64_t; // always 64-bit
using f64 = double; // always 64-bit