remove min max macros (#1310)

* remove the MIN and MAX macros and use the std versions instead

* fix formatting

* fix Arm build

* remove additional MIN and MAX macros from compat.h
This commit is contained in:
Ben Ashbaugh
2021-09-13 05:25:32 -07:00
committed by GitHub
parent 1f26e1d8ba
commit 02bf24d2b1
31 changed files with 241 additions and 202 deletions

View File

@@ -18,6 +18,7 @@
#include "harness/testHarness.h"
#include "harness/typeWrappers.h"
#include <algorithm>
#include <vector>
#include "procs.h"
@@ -124,7 +125,7 @@ int test_host_queue_order(cl_device_id device, cl_context context, cl_command_qu
cl_uint num = arr_size(result);
if( gWimpyMode )
{
num = MAX(num / 16, 4);
num = std::max(num / 16, 4U);
}
clMemWrapper res_mem;