reverse the string [start, end).
| 66 | |
| 67 | // reverse the string [start, end). |
| 68 | inline void reverse_string(__global char *start, __global char *end) |
| 69 | { |
| 70 | while(start < end){ |
| 71 | char tmp = *end; |
| 72 | *end = *start; |
| 73 | *start = tmp; |
| 74 | start++; |
| 75 | end--; |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | // second-pass kernel which copies the fizz-buzz string for each number to |
| 80 | // buffer using the previously calculated offsets. |
no outgoing calls
no test coverage detected