SWDEV-301289 - Treewide macro rename

ATI_OS_WIN -> _WIN32
ATI_OS_LINUX -> __linux__

We should not rely on non-standard macros for platform detections.

Change-Id: If1d06e2e1187268df62a59609ea5496ab7eb709d
Este commit está contenido en:
Vladislav Sytchenko
2021-08-30 14:04:35 -04:00
cometido por Jason Tang
padre 159f7f24cd
commit c4aa6febe5
Se han modificado 27 ficheros con 92 adiciones y 93 borrados
@@ -25,7 +25,7 @@
#include <string.h>
#include <sstream>
#ifdef ATI_OS_LINUX
#ifdef __linux__
#include <sys/sysinfo.h>
#include <unistd.h>
#endif
@@ -194,7 +194,7 @@ void OCLCreateImage::open(unsigned int test, char *units, double &conversion,
if (ImageSizeY >= max2DHeight) {
ImageSizeY = max2DHeight - 0x1000;
}
#ifdef ATI_OS_LINUX
#ifdef __linux__
// On linux, if the size of total system memory is less than 4GB,
// then, we can allocate much smaller image.
// TODO, need to find the root cause
@@ -289,7 +289,7 @@ void OCLCreateImage::open(unsigned int test, char *units, double &conversion,
float *data;
size_t ActualImageSizeY = ImageSizeY;
size_t maxImageSize = maxSize_;
#ifdef ATI_OS_LINUX
#ifdef __linux__
long pages = sysconf(_SC_PHYS_PAGES);
long page_size = sysconf(_SC_PAGE_SIZE);
if (maxImageSize > ((size_t)pages * page_size)) {
@@ -357,7 +357,7 @@ void OCLCreateImage::open(unsigned int test, char *units, double &conversion,
size_t ActualImageSizeZ = ImageSizeZ;
size_t maxImageSize = maxSize_;
#ifdef ATI_OS_LINUX
#ifdef __linux__
long pages = sysconf(_SC_PHYS_PAGES);
long page_size = sysconf(_SC_PAGE_SIZE);
if (maxImageSize > ((size_t)pages * page_size)) {