MCPcopy Create free account
hub / github.com/KhronosGroup/OpenCL-CTS / next_power_of_two

Function next_power_of_two

test_common/harness/imageHelpers.cpp:322–332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

320}
321
322uint32_t next_power_of_two(uint32_t v)
323{
324 v--;
325 v |= v >> 1;
326 v |= v >> 2;
327 v |= v >> 4;
328 v |= v >> 8;
329 v |= v >> 16;
330 v++;
331 return v;
332}
333
334uint32_t get_pixel_alignment(const cl_image_format *format)
335{

Callers 1

get_pixel_alignmentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected