mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-21 03:55:32 +00:00
rsx/util: Warnings cleanup
This commit is contained in:
parent
0158a88c88
commit
7f7b499303
1 changed files with 7 additions and 2 deletions
|
@ -255,6 +255,11 @@ namespace rsx
|
|||
return static_cast<u32>((1ULL << 32) >> utils::cntlz32(x - 1, true));
|
||||
}
|
||||
|
||||
static inline bool fcmp(float a, float b, float epsilon = 0.000001f)
|
||||
{
|
||||
return fabsf(a - b) < epsilon;
|
||||
}
|
||||
|
||||
// Returns an ever-increasing tag value
|
||||
static inline u64 get_shared_tag()
|
||||
{
|
||||
|
@ -910,11 +915,11 @@ namespace rsx
|
|||
|
||||
if (_data)
|
||||
{
|
||||
_data = (Ty*)realloc(_data, sizeof(Ty) * size);
|
||||
verify("realloc() failed!" HERE), _data = (Ty*)realloc(_data, sizeof(Ty) * size);
|
||||
}
|
||||
else
|
||||
{
|
||||
_data = (Ty*)malloc(sizeof(Ty) * size);
|
||||
verify("malloc() failed!" HERE), _data = (Ty*)malloc(sizeof(Ty) * size);
|
||||
}
|
||||
|
||||
_capacity = size;
|
||||
|
|
Loading…
Add table
Reference in a new issue