Skip to content
Commit 415a60f3 authored by Aaron Watry's avatar Aaron Watry
Browse files

integer: Add popcount implementation using ctpop intrinsic



Also copy/modify the unary_intrin.inc from math/ to make the
intrinsic declaration somewhat reusable.

Passes CL CTS integer_ops/test_integer_ops popcount tests for CL 1.2

Tested-by on GCN 1.0 (Pitcairn)

Signed-off-by: default avatarAaron Watry <awatry@gmail.com>
Reviewed-by: default avatarJan Vesely <jan.vesely@rutgers.edu>
llvm-svn: 312854
parent 628fbcae
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment