summaryrefslogtreecommitdiff
path: root/kernels/builtin_pow.cl
blob: 17d753e6f832fd39e83479d4d16c93b21a3159b3 (plain)
1
2
3
4
5
6
7
kernel void builtin_pow(global float *dst, global float *src1, global float *src2, global int *max_func) {

  int i = get_global_id(0);
  dst[i * (*max_func) + 0] = pow(src1[i], src2[i]);
  dst[i * (*max_func) + 1] = src1[i];

}