ocl: fixes

This commit is contained in:
Alexander Alekhin
2014-03-14 14:01:05 +04:00
parent 755ca4b7cf
commit 9cafd50160
4 changed files with 23 additions and 7 deletions

View File

@@ -280,8 +280,13 @@
#elif defined OP_CMP
#define srcT2 srcT1
#ifndef convertToWT1
#define convertToWT1
#define PROCESS_ELEM storedst((dstT)(srcelem1 CMP_OPERATOR srcelem2 ? (dstT)(255) : (dstT)(0)))
#endif
#define PROCESS_ELEM \
workT __s1 = srcelem1; \
workT __s2 = srcelem2; \
storedst(((__s1 CMP_OPERATOR __s2) ? (dstT)(255) : (dstT)(0)))
#elif defined OP_CONVERT_SCALE_ABS
#undef EXTRA_PARAMS