diff options
author | Homer Hsing <homer.xing@intel.com> | 2013-02-01 13:48:59 +0800 |
---|---|---|
committer | Zhigang Gong <zhigang.gong@linux.intel.com> | 2013-04-10 14:52:32 +0800 |
commit | a985f4e11b21bb3fd2506a4b56c7f06891dbdd16 (patch) | |
tree | 90dd7213d99e944dd78f9a75e94ea075dc2c4216 /utests/compiler_arith_shift_right.cpp | |
parent | b3e9efd931ce0aa76cdf1480d1b685a5bcae695f (diff) | |
download | beignet-a985f4e11b21bb3fd2506a4b56c7f06891dbdd16.tar.gz |
Make "logical shift right" work
Before we fix the bug, the "logical shift right" is wrong:
(0xFF000000U >> 24) == 0xFFFFFFFF
After we fix the bug, it is right.
(0xFF000000U >> 24) == 0xFF
Also add a test case, test by 128 random input.
This patch fixes "component_transfer_linear" filter.
Signed-off-by: Homer Hsing <homer.xing@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Tested-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Diffstat (limited to 'utests/compiler_arith_shift_right.cpp')
0 files changed, 0 insertions, 0 deletions