mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 09:13:39 +01:00
more on endian types
This commit is contained in:
1 parent
47e1c8143a
commit
f5dc650fd3
1 file changed
+9
-2
@@ -134,8 +134,15 @@ public:
|
||||
return *this;
|
||||
}
|
||||
|
||||
template <typename S>
|
||||
operator S() const { return (S)swap(); }
|
||||
operator long() const { return (long)swap(); }
|
||||
operator s16() const { return (s16)swap(); }
|
||||
operator u16() const { return (u16)swap(); }
|
||||
operator s32() const { return (s32)swap(); }
|
||||
operator u32() const { return (u32)swap(); }
|
||||
operator s64() const { return (s64)swap(); }
|
||||
operator u64() const { return (u64)swap(); }
|
||||
operator float() const { return (float)swap(); }
|
||||
operator double() const { return (double)swap(); }
|
||||
|
||||
|
||||
// v / 5
|
||||
|
||||
Reference in new issue
Block a user