mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-10 17:01:24 +12:00
to_be()
This commit is contained in:
parent
b6f8700b8b
commit
0baf295c1b
1 changed files with 6 additions and 0 deletions
|
@ -540,6 +540,12 @@ template<typename T, typename T1, T1 value> struct _se<be_t<T>, T1, value> : pub
|
||||||
#define se32(x) _se<u32, decltype(x), x>::value
|
#define se32(x) _se<u32, decltype(x), x>::value
|
||||||
#define se64(x) _se<u64, decltype(x), x>::value
|
#define se64(x) _se<u64, decltype(x), x>::value
|
||||||
|
|
||||||
|
template<typename T>
|
||||||
|
__forceinline static const be_t<T> to_be(const T value)
|
||||||
|
{
|
||||||
|
return be_t<T>::MakeFromLE(value);
|
||||||
|
}
|
||||||
|
|
||||||
template<typename T> __forceinline static u8 Read8(T& f)
|
template<typename T> __forceinline static u8 Read8(T& f)
|
||||||
{
|
{
|
||||||
u8 ret;
|
u8 ret;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue