diff options
author | Gil Pitney <gil.pitney@linaro.org> | 2014-12-08 14:23:47 -0800 |
---|---|---|
committer | Gil Pitney <gil.pitney@linaro.org> | 2014-12-08 14:23:47 -0800 |
commit | 76bd0a080cd23ea52bd88d0520b2f450ad33a6c5 (patch) | |
tree | da1acc6a3bdaaacb2b08ece028e5eb45e387b0b2 /src | |
parent | 5d2eb9a1fc2ea97f717f1f819a088364412c9ddc (diff) |
builtins: Fixed nextafter builtin; updated INFINITY definition.
Redefined nextafter to use __builtin_nextafterf(), and INFINITY to
use __builtin_inff().
This enables the Khronos basic test kernel_limit_constants to pass.
Signed-off-by: Gil Pitney <gil.pitney@linaro.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/builtins/math.cl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/builtins/math.cl b/src/builtins/math.cl index 02db08b..060b92c 100644 --- a/src/builtins/math.cl +++ b/src/builtins/math.cl @@ -116,7 +116,7 @@ BINARY_NO_BUILTIN(minmag) UNARY_VEC_DEF(uint, float, nan, nan) UNARY_VEC_DEF(ulong, double, nan, nan) -BINARY(nextafter) +BINARY_NO_BUILTIN(nextafter) BINARY(pow) BINARY_VEC_DEF_ALT(float, float, int, pown, powf) |