From 8f94979e4c6fda4a86eb6d7b4fbe31c2020196ae Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Sun, 2 Jun 2024 03:02:19 +0800 Subject: [PATCH] some fix --- include/pocketpy/common.h | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/include/pocketpy/common.h b/include/pocketpy/common.h index 62254e82..c0924dd3 100644 --- a/include/pocketpy/common.h +++ b/include/pocketpy/common.h @@ -62,24 +62,6 @@ namespace pkpy{ namespace std = ::std; -template -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; using i64 = int64_t; // always 64-bit using f64 = double; // always 64-bit