mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-20 22:05:12 +00:00
Reduce std::numeric_limits dependency
Please, stop pretending... You need these templates for generic code. In other words, in another templates. Stop increasing compilation time for no reason.
This commit is contained in:
parent
bc7acf9f7a
commit
6e05dcadb6
8 changed files with 18 additions and 19 deletions
|
|
@ -1463,7 +1463,7 @@ public:
|
|||
}
|
||||
|
||||
// Conditionally decrement
|
||||
bool try_dec(simple_type greater_than = std::numeric_limits<simple_type>::min())
|
||||
bool try_dec(simple_type greater_than)
|
||||
{
|
||||
type _new, old = atomic_storage<type>::load(m_data);
|
||||
|
||||
|
|
@ -1486,7 +1486,7 @@ public:
|
|||
}
|
||||
|
||||
// Conditionally increment
|
||||
bool try_inc(simple_type less_than = std::numeric_limits<simple_type>::max())
|
||||
bool try_inc(simple_type less_than)
|
||||
{
|
||||
type _new, old = atomic_storage<type>::load(m_data);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue