mirror of https://github.com/PCSX2/pcsx2.git
Clang: Format GS.h
This commit is contained in:
parent
7717450044
commit
b843989719
18
pcsx2/GS.h
18
pcsx2/GS.h
|
@ -503,13 +503,16 @@ alignas(32) extern MTGS_BufferedData RingBuffer;
|
||||||
|
|
||||||
// FIXME: These belong in common with other memcpy tools. Will move them there later if no one
|
// FIXME: These belong in common with other memcpy tools. Will move them there later if no one
|
||||||
// else beats me to it. --air
|
// else beats me to it. --air
|
||||||
inline void MemCopy_WrappedDest( const u128* src, u128* destBase, uint& destStart, uint destSize, uint len ) {
|
inline void MemCopy_WrappedDest(const u128* src, u128* destBase, uint& destStart, uint destSize, uint len)
|
||||||
|
{
|
||||||
uint endpos = destStart + len;
|
uint endpos = destStart + len;
|
||||||
if ( endpos < destSize ) {
|
if (endpos < destSize)
|
||||||
|
{
|
||||||
memcpy(&destBase[destStart], src, len * 16);
|
memcpy(&destBase[destStart], src, len * 16);
|
||||||
destStart += len;
|
destStart += len;
|
||||||
}
|
}
|
||||||
else {
|
else
|
||||||
|
{
|
||||||
uint firstcopylen = destSize - destStart;
|
uint firstcopylen = destSize - destStart;
|
||||||
memcpy(&destBase[destStart], src, firstcopylen * 16);
|
memcpy(&destBase[destStart], src, firstcopylen * 16);
|
||||||
destStart = endpos % destSize;
|
destStart = endpos % destSize;
|
||||||
|
@ -517,13 +520,16 @@ inline void MemCopy_WrappedDest( const u128* src, u128* destBase, uint& destStar
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void MemCopy_WrappedSrc( const u128* srcBase, uint& srcStart, uint srcSize, u128* dest, uint len ) {
|
inline void MemCopy_WrappedSrc(const u128* srcBase, uint& srcStart, uint srcSize, u128* dest, uint len)
|
||||||
|
{
|
||||||
uint endpos = srcStart + len;
|
uint endpos = srcStart + len;
|
||||||
if ( endpos < srcSize ) {
|
if (endpos < srcSize)
|
||||||
|
{
|
||||||
memcpy(dest, &srcBase[srcStart], len * 16);
|
memcpy(dest, &srcBase[srcStart], len * 16);
|
||||||
srcStart += len;
|
srcStart += len;
|
||||||
}
|
}
|
||||||
else {
|
else
|
||||||
|
{
|
||||||
uint firstcopylen = srcSize - srcStart;
|
uint firstcopylen = srcSize - srcStart;
|
||||||
memcpy(dest, &srcBase[srcStart], firstcopylen * 16);
|
memcpy(dest, &srcBase[srcStart], firstcopylen * 16);
|
||||||
srcStart = endpos % srcSize;
|
srcStart = endpos % srcSize;
|
||||||
|
|
Loading…
Reference in New Issue