mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-03 17:38:15 +00:00
Don't use std::aligned_storage
Don't need its limiting behaviour anyway
This commit is contained in:
parent
363811981d
commit
84abb9923a
@ -334,7 +334,10 @@ inline v128 operator~(const v128& other)
|
|||||||
template <typename T, std::size_t Align, std::size_t Size>
|
template <typename T, std::size_t Align, std::size_t Size>
|
||||||
struct se_storage
|
struct se_storage
|
||||||
{
|
{
|
||||||
using type = std::aligned_storage_t<Size, Align>;
|
struct type
|
||||||
|
{
|
||||||
|
alignas(Align) std::byte data[Size];
|
||||||
|
};
|
||||||
|
|
||||||
// Unoptimized generic byteswap for unaligned data
|
// Unoptimized generic byteswap for unaligned data
|
||||||
static void reverse(u8* dst, const u8* src)
|
static void reverse(u8* dst, const u8* src)
|
||||||
|
@ -770,7 +770,7 @@ struct value_hash
|
|||||||
template <template <typename> class TT, std::size_t S, std::size_t A = S>
|
template <template <typename> class TT, std::size_t S, std::size_t A = S>
|
||||||
struct alignas(A) any_pod
|
struct alignas(A) any_pod
|
||||||
{
|
{
|
||||||
std::aligned_storage_t<S, A> data;
|
alignas(A) std::byte data[S];
|
||||||
|
|
||||||
any_pod() = default;
|
any_pod() = default;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user