mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-02 21:11:25 +12:00
Replace get_thread_class with static cast for performance reasons
This commit is contained in:
parent
b8f8d09f97
commit
25ce3880c4
2 changed files with 5 additions and 16 deletions
|
@ -21,10 +21,10 @@ enum class native_core_arrangement : u32
|
|||
|
||||
enum class thread_class : u32
|
||||
{
|
||||
general,
|
||||
rsx,
|
||||
spu,
|
||||
ppu
|
||||
general = 0,
|
||||
ppu = 1,
|
||||
spu = 2,
|
||||
rsx = 0x55,
|
||||
};
|
||||
|
||||
enum class thread_state : u32
|
||||
|
@ -36,17 +36,6 @@ enum class thread_state : u32
|
|||
mask = 3
|
||||
};
|
||||
|
||||
static inline thread_class get_thread_class(u32 thread_id_type)
|
||||
{
|
||||
switch (thread_id_type)
|
||||
{
|
||||
case 1: return thread_class::ppu;
|
||||
case 2: return thread_class::spu;
|
||||
case 0x55: return thread_class::rsx;
|
||||
default: return thread_class::general;
|
||||
}
|
||||
}
|
||||
|
||||
template <class Context>
|
||||
class named_thread;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue