diff options
author | Gil Pitney <gil.pitney@linaro.org> | 2015-04-21 23:51:28 +0000 |
---|---|---|
committer | Gil Pitney <gil.pitney@linaro.org> | 2015-04-21 23:51:28 +0000 |
commit | 6e94d7f24bf1d4c15fc21003289ad968a240d8b3 (patch) | |
tree | 2bace8189c28353e4687bfa85c1f8b37824830c4 /init_global_shared_mem | |
parent | 5a06e4bef4800fbd1d0d2625e500726587d82bc8 (diff) |
Add popcount builtin function for OpenCL v1.2
OpenCL v1.2 defines the builtin popcount, which counts the number of
one bits in the argument.
Extra care is taken to avoid sign extension in casting from the smaller
signed types (char,short) to uint, the argument of __builting_popcount().
This commit enables the Khronos conformance test to PASS:
% test_integer_ops popcount
Signed-off-by: Gil Pitney <gil.pitney@linaro.org>
Diffstat (limited to 'init_global_shared_mem')
0 files changed, 0 insertions, 0 deletions