mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	Prefix all size_t with std::
done automatically by executing regex replace `([^:0-9a-zA-Z_])size_t([^0-9a-zA-Z_])` -> `$1std::size_t$2`
This commit is contained in:
		
							parent
							
								
									eca98eeb3e
								
							
						
					
					
						commit
						7d8f115185
					
				
					 158 changed files with 669 additions and 634 deletions
				
			
		|  | @ -97,7 +97,7 @@ const BitSet32 ABI_ALL_CALLEE_SAVED = BuildRegSet({ | |||
|     Xbyak::util::xmm15, | ||||
| }); | ||||
| 
 | ||||
| constexpr size_t ABI_SHADOW_SPACE = 0x20; | ||||
| constexpr std::size_t ABI_SHADOW_SPACE = 0x20; | ||||
| 
 | ||||
| #else | ||||
| 
 | ||||
|  | @ -147,22 +147,23 @@ const BitSet32 ABI_ALL_CALLEE_SAVED = BuildRegSet({ | |||
|     Xbyak::util::r15, | ||||
| }); | ||||
| 
 | ||||
| constexpr size_t ABI_SHADOW_SPACE = 0; | ||||
| constexpr std::size_t ABI_SHADOW_SPACE = 0; | ||||
| 
 | ||||
| #endif | ||||
| 
 | ||||
| inline void ABI_CalculateFrameSize(BitSet32 regs, size_t rsp_alignment, size_t needed_frame_size, | ||||
|                                    s32* out_subtraction, s32* out_xmm_offset) { | ||||
| inline void ABI_CalculateFrameSize(BitSet32 regs, std::size_t rsp_alignment, | ||||
|                                    std::size_t needed_frame_size, s32* out_subtraction, | ||||
|                                    s32* out_xmm_offset) { | ||||
|     int count = (regs & ABI_ALL_GPRS).Count(); | ||||
|     rsp_alignment -= count * 8; | ||||
|     size_t subtraction = 0; | ||||
|     std::size_t subtraction = 0; | ||||
|     int xmm_count = (regs & ABI_ALL_XMMS).Count(); | ||||
|     if (xmm_count) { | ||||
|         // If we have any XMMs to save, we must align the stack here.
 | ||||
|         subtraction = rsp_alignment & 0xF; | ||||
|     } | ||||
|     subtraction += 0x10 * xmm_count; | ||||
|     size_t xmm_base_subtraction = subtraction; | ||||
|     std::size_t xmm_base_subtraction = subtraction; | ||||
|     subtraction += needed_frame_size; | ||||
|     subtraction += ABI_SHADOW_SPACE; | ||||
|     // Final alignment.
 | ||||
|  | @ -173,8 +174,9 @@ inline void ABI_CalculateFrameSize(BitSet32 regs, size_t rsp_alignment, size_t n | |||
|     *out_xmm_offset = (s32)(subtraction - xmm_base_subtraction); | ||||
| } | ||||
| 
 | ||||
| inline size_t ABI_PushRegistersAndAdjustStack(Xbyak::CodeGenerator& code, BitSet32 regs, | ||||
|                                               size_t rsp_alignment, size_t needed_frame_size = 0) { | ||||
| inline std::size_t ABI_PushRegistersAndAdjustStack(Xbyak::CodeGenerator& code, BitSet32 regs, | ||||
|                                                    std::size_t rsp_alignment, | ||||
|                                                    std::size_t needed_frame_size = 0) { | ||||
|     s32 subtraction, xmm_offset; | ||||
|     ABI_CalculateFrameSize(regs, rsp_alignment, needed_frame_size, &subtraction, &xmm_offset); | ||||
| 
 | ||||
|  | @ -195,7 +197,8 @@ inline size_t ABI_PushRegistersAndAdjustStack(Xbyak::CodeGenerator& code, BitSet | |||
| } | ||||
| 
 | ||||
| inline void ABI_PopRegistersAndAdjustStack(Xbyak::CodeGenerator& code, BitSet32 regs, | ||||
|                                            size_t rsp_alignment, size_t needed_frame_size = 0) { | ||||
|                                            std::size_t rsp_alignment, | ||||
|                                            std::size_t needed_frame_size = 0) { | ||||
|     s32 subtraction, xmm_offset; | ||||
|     ABI_CalculateFrameSize(regs, rsp_alignment, needed_frame_size, &subtraction, &xmm_offset); | ||||
| 
 | ||||
|  |  | |||
|  | @ -34,7 +34,7 @@ inline bool IsWithin2G(const Xbyak::CodeGenerator& code, uintptr_t target) { | |||
| template <typename T> | ||||
| inline void CallFarFunction(Xbyak::CodeGenerator& code, const T f) { | ||||
|     static_assert(std::is_pointer_v<T>, "Argument must be a (function) pointer."); | ||||
|     size_t addr = reinterpret_cast<size_t>(f); | ||||
|     std::size_t addr = reinterpret_cast<std::size_t>(f); | ||||
|     if (IsWithin2G(code, addr)) { | ||||
|         code.call(f); | ||||
|     } else { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue