File tree Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -217,10 +217,6 @@ template <unsigned Bits, bool Signed> class Integral final {
217217 return Integral (Value.V );
218218 }
219219
220- static bool inRange (int64_t Value, unsigned NumBits) {
221- return CheckRange<ReprT, Min, Max>(Value);
222- }
223-
224220 static bool increment (Integral A, Integral *R) {
225221 return add (A, Integral (ReprT (1 )), A.bitWidth (), R);
226222 }
@@ -323,13 +319,6 @@ template <unsigned Bits, bool Signed> class Integral final {
323319 return false ;
324320 }
325321 }
326- template <typename T, T Min, T Max> static bool CheckRange (int64_t V) {
327- if constexpr (std::is_signed_v<T>) {
328- return Min <= V && V <= Max;
329- } else {
330- return V >= 0 && static_cast <uint64_t >(V) <= Max;
331- }
332- }
333322};
334323
335324template <unsigned Bits, bool Signed>
You can’t perform that action at this time.
0 commit comments