Implement generic upsample()
authorAaron Watry <awatry@gmail.com>
Fri, 19 Jul 2013 16:44:37 +0000 (16:44 +0000)
committerAaron Watry <awatry@gmail.com>
Fri, 19 Jul 2013 16:44:37 +0000 (16:44 +0000)
commit1769b1fca9c38fd4bb0eae91effdbba89d626723
treef543e1b6c68d6bc0b445f1978acbf20dd5496c4f
parentdd170bd977b3e7aa730e6f247f000206e859d070
Implement generic upsample()

Reduces all vector upsamples down to its scalar components, so probably
not the most efficient thing in the world, but it does what the
spec says it needs to do.

Another possible implementation would be to convert/cast everything as
unsigned if necessary, upsample the input vectors, create the upsampled
value, and then cast back to signed if required.

Signed-off-by: Aaron Watry <awatry@gmail.com>
Reviewed-by: Tom Stellard <thomas.stellard at amd.com>
llvm-svn: 186691
libclc/generic/include/clc/clc.h
libclc/generic/include/clc/integer/upsample.h [new file with mode: 0644]
libclc/generic/lib/SOURCES
libclc/generic/lib/integer/upsample.cl [new file with mode: 0644]