mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 13:31:27 +12:00
vm::ptr refactoring (operators improved)
vm::pptr, vm::bpptr added for PS3 is_le_t added sizeof32() added (32-bit sizeof macro)
This commit is contained in:
parent
8c62a893a9
commit
3064560027
22 changed files with 321 additions and 422 deletions
|
@ -888,6 +888,14 @@ template<typename T> struct le_t
|
|||
//}
|
||||
};
|
||||
|
||||
template<typename T> struct is_le_t : public std::integral_constant<bool, false>
|
||||
{
|
||||
};
|
||||
|
||||
template<typename T> struct is_le_t<le_t<T>> : public std::integral_constant<bool, true>
|
||||
{
|
||||
};
|
||||
|
||||
template<typename T> struct to_le
|
||||
{
|
||||
using type = std::conditional_t<std::is_arithmetic<T>::value || std::is_enum<T>::value, le_t<T>, T>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue