mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
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:
@@ -47,6 +47,8 @@
|
||||
#endif
|
||||
#include <time.h>
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include "Sleep.h"
|
||||
#include "basic_test_conversions.h"
|
||||
|
||||
@@ -1003,7 +1005,8 @@ static int DoTest( cl_device_id device, Type outType, Type inType, SaturationMod
|
||||
uint64_t i;
|
||||
|
||||
gTestCount++;
|
||||
size_t blockCount = BUFFER_SIZE / MAX( gTypeSizes[ inType ], gTypeSizes[ outType ] );
|
||||
size_t blockCount =
|
||||
BUFFER_SIZE / std::max(gTypeSizes[inType], gTypeSizes[outType]);
|
||||
size_t step = blockCount;
|
||||
uint64_t lastCase = 1ULL << (8*gTypeSizes[ inType ]);
|
||||
cl_event writeInputBuffer = NULL;
|
||||
@@ -1078,7 +1081,7 @@ static int DoTest( cl_device_id device, Type outType, Type inType, SaturationMod
|
||||
fflush(stdout);
|
||||
}
|
||||
|
||||
cl_uint count = (uint32_t) MIN( blockCount, lastCase - i );
|
||||
cl_uint count = (uint32_t)std::min((uint64_t)blockCount, lastCase - i);
|
||||
writeInputBufferInfo.count = count;
|
||||
|
||||
// Crate a user event to represent the status of the reference value computation completion
|
||||
|
||||
Reference in New Issue
Block a user