fix built-in function "fast_normalize"
authorHomer Hsing <homer.xing@intel.com>
Mon, 28 Oct 2013 01:02:33 +0000 (09:02 +0800)
committerZhigang Gong <zhigang.gong@linux.intel.com>
Tue, 29 Oct 2013 05:42:04 +0000 (13:42 +0800)
commit4347e620fa075baec2a5df97937adc02d63eb6f6
tree7e56cc7d3b8842a3044dae197dba970453180dd0
parent7391c63fad9f05a745b81cf21beb9d5d5278e271
fix built-in function "fast_normalize"

if the parameter is zero, then return zero
if the parameter is positive, then return 1.
for other cases, return -1.

Signed-off-by: Homer Hsing <homer.xing@intel.com>
Reviewed-by: "Lu, Guanqun" <guanqun.lu@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
backend/src/ocl_stdlib.tmpl.h