copy the string 's' with length 'n' to 'result' (just like strncpy())
| 58 | |
| 59 | // copy the string 's' with length 'n' to 'result' (just like strncpy()) |
| 60 | inline void copy_string(__constant const char *s, uint n, __global char *result) |
| 61 | { |
| 62 | while(n--){ |
| 63 | result[n] = s[n]; |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | // reverse the string [start, end). |
| 68 | inline void reverse_string(__global char *start, __global char *end) |
no outgoing calls
no test coverage detected