summaryrefslogtreecommitdiff
path: root/driver
diff options
context:
space:
mode:
authorPirama Arumuga Nainar <pirama@google.com>2016-03-31 15:14:08 -0700
committerPirama Arumuga Nainar <pirama@google.com>2016-03-31 15:14:08 -0700
commit2173a9968276b2b91b7ed3d0a76d9e642710843b (patch)
tree71c51eef5f28a6cedc1dabbe4d545787e816b854 /driver
parentb87fbbf700aea11f3beb939cb08fc6b8a2fc76aa (diff)
downloadrs-2173a9968276b2b91b7ed3d0a76d9e642710843b.tar.gz
Define Float16 clamp
Bug: http://b/27366867 clamp is defined in two files: driver/runtime/arch/generic.c (used to build libclcore for most architectures) and driver/runtime/arch/clamp.c (used to build libclcore for AArch64, ARM32 with Neon). I had added Float16 clamp in clamp.c but not in generic.c. This CL adds the functions to arch/generic.c. Change-Id: I26df4f1efec6e909c786baf132d6c296b5a3468f
Diffstat (limited to 'driver')
-rw-r--r--driver/runtime/arch/generic.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/driver/runtime/arch/generic.c b/driver/runtime/arch/generic.c
index 92e7b8b1..b5e59717 100644
--- a/driver/runtime/arch/generic.c
+++ b/driver/runtime/arch/generic.c
@@ -98,6 +98,7 @@ extern float4 __attribute__((overloadable)) clamp(float4 amount, float low, floa
#endif // !defined(ARCH_X86_HAVE_SSSE3) || defined(RS_DEBUG_RUNTIME) || defined(RS_G_RUNTIME)
+_CLAMP(half);
_CLAMP(double);
_CLAMP(char);
_CLAMP(uchar);