summaryrefslogtreecommitdiffstats
path: root/pocl/fast_distance.cl
blob: c2a7e9edfaf485abfa72a40d183bbbf9ed41a41f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
__attribute__((__overloadable__))
float fast_distance(float p0, float p1)
{
  return fast_length(p0-p1);
}

__attribute__((__overloadable__))
float fast_distance(float2 p0, float2 p1)
{
  return fast_length(p0-p1);
}

__attribute__((__overloadable__))
float fast_distance(float3 p0, float3 p1)
{
  return fast_length(p0-p1);
}

__attribute__((__overloadable__))
float fast_distance(float4 p0, float4 p1)
{
  return fast_length(p0-p1);
}
OpenPOWER on IntegriCloud