Skip to content

Commit

Permalink
adds traits for (u)int128 template handling
Browse files Browse the repository at this point in the history
  • Loading branch information
eyck committed Feb 16, 2023
1 parent 061b788 commit 8a2fe18
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/iss/interp/vm_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ template<> class __make_unsigned_selector<__int128 unsigned, false, false> {
public:
typedef unsigned __int128 __type;
};
template<> struct is_signed<int128_t> { static constexpr bool value = true;};
template<> struct is_signed<uint128_t> { static constexpr bool value = false;};
template<> struct is_unsigned<int128_t> { static constexpr bool value = false;};
template<> struct is_unsigned<uint128_t> { static constexpr bool value = true;};
}
#endif

Expand Down

0 comments on commit 8a2fe18

Please sign in to comment.