refactor(src/common): remove unused imports (#19506)

* refactor(src/common): remove unused imports

* fix: build

* chore: fix build

* chore: size_t -> std::size_t

* chore: fix fuckup from previous commit

* chore: fix build

* chore: fix build

* chore: fix build

* chore: fix build with std::size_t

* chore: fix build

* chore: fix build

* chore: fix build

* chore: fix build

* chore: fix build

* chore: fix build

* chore: fix build

* chore: fix build

* chore: fix build

* chore: fix build

* chore: fix build

* chore: fix build
This commit is contained in:
Francesco Borzì
2024-07-31 01:06:46 +02:00
committed by GitHub
parent 06a608d244
commit 02a05fbd4c
200 changed files with 522 additions and 581 deletions

View File

@@ -26,7 +26,7 @@
#include <mm_malloc.h>
#elif defined(__GNUC__)
static __inline__ void *__attribute__((__always_inline__, __nodebug__, __malloc__))
_mm_malloc(size_t __size, size_t __align)
_mm_malloc(std::size_t __size, std::size_t __align)
{
if (__align == 1)
{
@@ -78,7 +78,7 @@ uint32 SFMTRand::RandomUInt32() // Output random bits
return sfmt_genrand_uint32(&_state);
}
void* SFMTRand::operator new(size_t size, std::nothrow_t const&)
void* SFMTRand::operator new(std::size_t size, std::nothrow_t const&)
{
return _mm_malloc(size, 16);
}
@@ -88,7 +88,7 @@ void SFMTRand::operator delete(void* ptr, std::nothrow_t const&)
_mm_free(ptr);
}
void* SFMTRand::operator new(size_t size)
void* SFMTRand::operator new(std::size_t size)
{
return _mm_malloc(size, 16);
}
@@ -98,7 +98,7 @@ void SFMTRand::operator delete(void* ptr)
_mm_free(ptr);
}
void* SFMTRand::operator new[](size_t size, std::nothrow_t const&)
void* SFMTRand::operator new[](std::size_t size, std::nothrow_t const&)
{
return _mm_malloc(size, 16);
}
@@ -108,7 +108,7 @@ void SFMTRand::operator delete[](void* ptr, std::nothrow_t const&)
_mm_free(ptr);
}
void* SFMTRand::operator new[](size_t size)
void* SFMTRand::operator new[](std::size_t size)
{
return _mm_malloc(size, 16);
}