CV_IABS
来源:互联网 发布:网络标准检测方法 编辑:程序博客网 时间:2024/05/16 07:10
#ifndef __cplusplus //跨平台定义方法,判断__cplusplus有没有#define过
#define CV_IABS(a) ( ( (a) ^ ( (a) < 0 ? -1 : 0) ) - ( (a) < 0 ? -1 : 0) )
#else
#define CV_IABS(a) abs(a)
#endif
来源:互联网 发布:网络标准检测方法 编辑:程序博客网 时间:2024/05/16 07:10
#ifndef __cplusplus //跨平台定义方法,判断__cplusplus有没有#define过
#define CV_IABS(a) ( ( (a) ^ ( (a) < 0 ? -1 : 0) ) - ( (a) < 0 ? -1 : 0) )
#else
#define CV_IABS(a) abs(a)
#endif