Add convert_uchar_sat and test case
authorHomer Hsing <homer.xing@intel.com>
Wed, 30 Jan 2013 06:05:31 +0000 (14:05 +0800)
committerZhigang Gong <zhigang.gong@linux.intel.com>
Wed, 10 Apr 2013 06:52:32 +0000 (14:52 +0800)
commitb3e9efd931ce0aa76cdf1480d1b685a5bcae695f
tree7ed56109e2ff87ba204656bb055da1d0a74f4e45
parente4325621280ce9d3150e28602aba0fa563857e0e
Add convert_uchar_sat and test case

'convert_uchar_sat' converts float to uchar saturately.
'convert_uchar_sat' simply calls add_sat.
by 'convert_uchar_sat' function we don't need to clamp(value, 0, 255).
we also add a test case.

Signed-off-by: Homer Hsing <homer.xing@intel.com>
Reviewed-by: Lu Guanqun <guanqun.lu@intel.com>
backend/src/ocl_stdlib.h
kernels/compiler_convert_uchar_sat.cl [new file with mode: 0644]
utests/CMakeLists.txt
utests/compiler_convert_uchar_sat.cpp [new file with mode: 0644]