summaryrefslogtreecommitdiff
path: root/kernels/builtin_acos_asin.cl
blob: bba2d217833b044da0e61b329252c14d8bde58c2 (plain)
1
2
3
4
5
6
7
8
9
10
__kernel void builtin_acos_asin(__global float *dst, __global float *src, __global int *max_func) {
  int i = get_global_id(0);
  float x = src[i];

  dst[i * (*max_func) + 0] = acos(x);
  dst[i * (*max_func) + 1] = acosh(x);
  dst[i * (*max_func) + 2] = asin(x);
  dst[i * (*max_func) + 3] = asinh(x);
  dst[i * (*max_func) + 4] = x;
};