summaryrefslogtreecommitdiff
path: root/kernels/compiler_math_constants.cl
blob: 4979cf2c45fc7045f3947441dafb365d0d25a924 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* test case for OpenCL 1.1 Math Constants (section 6.11.2) */
__kernel void compiler_math_constants()
{
  float f;
  f = MAXFLOAT;
  f = HUGE_VALF;
  f = HUGE_VAL;
  f = INFINITY;
  f = NAN;
  f = M_E_F;
  f = M_LOG2E_F;
  f = M_LOG10E_F;
  f = M_LN2_F;
  f = M_LN10_F;
  f = M_PI_F;
  f = M_PI_2_F;
  f = M_PI_4_F;
  f = M_1_PI_F;
  f = M_2_PI_F;
  f = M_2_SQRTPI_F;
  f = M_SQRT2_F;
  f = M_SQRT1_2_F;
}