| 320 | } |
| 321 | |
| 322 | uint32_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 | |
| 334 | uint32_t get_pixel_alignment(const cl_image_format *format) |
| 335 | { |
no outgoing calls
no test coverage detected